منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   أسكلة الوارث أوف أمبرور كاملة 100% (https://code.vpscairo.com/showthread.php?t=316)

محمد ياسر 2019-05-12 07:45 PM

أسكلة الوارث أوف أمبرور كاملة 100%
 

الموضوع ده لسورسات ال 2D
وعنده مشكله في اسكلة الامبروا بتاعت ابيك المونك
الاضافه كامله
في كلاس الهاندل
بدل اسكلة الامبروا بده
كود PHP:

#region Wrath Of Emperor[Reparado 100%] 
                                
case 12570
                                    { 
                                        if (
CanUseSpell(spellattacker.Owner)) 
                                        { 
                                            
PrepareSpell(spellattacker.Owner); 
                                            
SpellUse suse = new SpellUse(true); 
                                            
suse.Attacker attacker.UID
                                            
suse.SpellID SpellID
                                            
suse.SpellLevel attacker.Owner.Spells[SpellID].Level
                                            
suse.X
                                            
suse.Y
                                            
suse.SpellEffect 1
                                            foreach (
Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects
                                            { 
                                                if (
_obj == null) continue; 
                                                if (
_obj.MapObjType == MapObjectType.Monster || _obj.MapObjType == MapObjectType.Player
                                                { 
                                                    
attacked _obj as Entity
                                                    if (
Kernel.GetDistance(attacker.Xattacker.Yattacked.Xattacked.Y) <= 2
                                                    { 
                                                        if (
CanAttack(attackerattackedspellattack.AttackType == Attack.Melee)) 
                                                        { 
                                                            
uint damage Game.Attacking.Calculate.Melee(attackerattackedref attack); 
                                                            
suse.Effect1 attack.Effect1
                                                            
attack.Effect1 Attack.AttackEffects1.None
                                                            
ReceiveAttack(attackerattackedattackref damagespell); 
                                                            
suse.AddTarget(attackeddamageattack); 
                                                        } 
                                                    } 
                                                } 
                                                else if (
_obj.MapObjType == MapObjectType.SobNpc
                                                { 
                                                    
attackedsob _obj as SobNpcSpawn
                                                    if (
Kernel.GetDistance(attacker.Xattacker.Yattackedsob.Xattackedsob.Y) <= 2
                                                    { 
                                                        if (
CanAttack(attackerattackedsobspell)) 
                                                        { 
                                                            
uint damage Game.Attacking.Calculate.Melee(attackerattackedsobref attack); 
                                                            
suse.Effect1 attack.Effect1
                                                            
attack.Effect1 Attack.AttackEffects1.None
                                                            
ReceiveAttack(attackerattackedsobattackdamagespell); 
                                                            
suse.AddTarget(attackedsobdamageattack); 
                                                        } 
                                                    } 
                                                } 
                                            } 
                                            
attacker.Owner.SendScreen(susetrue); 
                                        } 
                                        break; 
                                    } 
                                
#endregion 

و بعدين هتبحث علي ده
كود PHP:

#region Melee 

اقفله من السالب و بدله كله بده
كود PHP:

#region Melee 
                    
else if (attack.AttackType == Attack.Melee
                    { 
                        if (
attacker.Assassin() || attacker.IsBowEquipped
                        { 
                            
attack.AttackType Attack.Ranged
                            new 
Game.Attacking.Handle(attackattackerattacked); 
                            return; 
                        } 

                        if (
attacker.MapID == DeathMatch.MAPID
                        { 
                            
attacker.Owner.Send(new Message("You have to use manual linear skills(FastBlade/ScentSword)"System.Drawing.Color.RedMessage.Talk)); 
                            return; 
                        } 
                        if (
attacker.MapID == DeathMatch2.MAPID
                        { 
                            
attacker.Owner.Send(new Message("You have to use manual linear skills(FastBlade/ScentSword)"System.Drawing.Color.RedMessage.Talk)); 
                            return; 
                        } 
                        if (
attacker.Owner.Screen.TryGetValue(attack.Attackedout attacked)) 
                        { 



                            
CheckForExtraWeaponPowers(attacker.Ownerattacked); 
                            if (!
CanAttack(attackerattackednullattack.AttackType == Attack.Melee)) return; 
                            
pass false
                            if (
attacker.OnFatalStrike()) 
                            { 
                                if (
attacked.EntityFlag == EntityFlag.Monster
                                { 
                                    
pass true
                                } 
                            } 
                            
ushort range attacker.AttackRange
                            if (
attacker.Transformed
                                
range = (ushort)attacker.TransformationAttackRange
                            if (
Kernel.GetDistance(attacker.Xattacker.Yattacked.Xattacked.Y) <= range || pass
                            { 
                                
#region EpicMonk 
                                
if (Kernel.Rate(50)) 
                                { 
                                    if (
attack.SpellID == 12580 || attack.SpellID == 12590 || attack.SpellID == 12600
                                    { 
                                        
SpellUse suse = new SpellUse(true); 
                                        
suse.Attacker attacker.UID
                                        
suse.SpellID 0
                                        
suse.SpellLevel 0
                                        
suse.attacker.X
                                        
suse.attacker.Y
                                        
Fan fan = new Fan(attacker.Xattacker.Yattacked.Xattacked.Y7240); 
                                        foreach (
Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects
                                        { 
                                            if (
_obj == null) continue; 
                                            if (
_obj.MapObjType == MapObjectType.Monster || _obj.MapObjType == MapObjectType.Player
                                            { 
                                                
attacked _obj as Entity
                                                if (
Kernel.GetDistance(attacker.Xattacker.Yattacked.Xattacked.Y) <= 7
                                                { 
                                                    if (
CanAttack(attackerattackednullattack.AttackType == Attack.Melee)) 
                                                    { 
                                                        
attack.Effect1 Attack.AttackEffects1.None
                                                        
uint damages Game.Attacking.Calculate.Melee(attackerattackedref attack); 
                                                        
attack.Attacked attacked.UID
                                                        
attack.Damage damages
                                                        
suse.Effect1 attack.Effect1
                                                        
ReceiveAttack(attackerattackedattackref damagesnull); 
                                                    } 
                                                } 
                                            } 
                                        } 

                                        
attacker.AttackPacket null
                                        
attack null
                                        return; 
                                    } 
                                } 
                                
#endregion 
                                
attack.Effect1 Attack.AttackEffects1.None
                                
uint damage Game.Attacking.Calculate.Melee(attackerattackedref attack); 
                                
attack.Damage damage
                                if (
attacker.OnFatalStrike()) 
                                { 
                                    if (
attacked.EntityFlag == EntityFlag.Monster
                                    { 
                                        var 
weaps attacker.Owner.Weapons
                                        
bool can false
                                        if (
weaps.Item1 != null
                                            if (
weaps.Item1 != null) if (weaps.Item1.ID 1000 == 601 || weaps.Item1.ID 1000 == 616can true; if (weaps.Item2 != null) if (weaps.Item2.ID 1000 == 601 || weaps.Item2.ID 1000 == 616can true
                                        
can true
                                        if (
weaps.Item2 != null
                                            if (
weaps.Item1 != null) if (weaps.Item1.ID 1000 == 601 || weaps.Item1.ID 1000 == 616can true; if (weaps.Item2 != null) if (weaps.Item2.ID 1000 == 601 || weaps.Item2.ID 1000 == 616can true
                                        
can true
                                        if (!
can
                                            return; 
                                        
ushort x attacked.X
                                        
ushort y attacked.Y
                                        
Map.UpdateCoordonatesForAngle(ref xref yKernel.GetAngle(attacked.Xattacked.Yattacker.Xattacker.Y)); 
                                        
attacker.Shift(xy); 
                                        
attack.x
                                        
attack.y
                                        
//double dmg = (double)damage * 3.5;  
                                        //damage = (uint)dmg;  
                                        
damage damage 8
                                        
attack.Damage damage

                                        
attack.AttackType Attack.FatalStrike
                                    } 
                                } 
                                
//over:  

                                
var weapons attacker.Owner.Weapons
                                if (
weapons.Item1 != null
                                { 
                                    
ConquerItem rightweapon weapons.Item1
                                    
ushort wep1subyte = (ushort)(rightweapon.ID 1000), wep2subyte 0
                                    
bool wep1bs falsewep2bs false
                                    if (
wep1subyte == 421
                                    { 
                                        
wep1bs true
                                        
wep1subyte--; 
                                    } 
                                    
ushort wep1spellid 0wep2spellid 0
                                    
Database.SpellInformation wep1spell nullwep2spell null
                                     
                                    if (
Database.SpellTable.WeaponSpells.ContainsKey(wep1subyte)) 
                                    { 
                                        var 
weaponskill Database.SpellTable.WeaponSpells[wep1subyte]; 
                                        for (
int i 0weaponskill.Counti++) 
                                        { 
                                            if (!
doWep1Spell
                                            { 
                                                
wep1spellid weaponskill[i]; 
                                                if (
wep1subyte == 622
                                                { 
                                                    if (
attacker.WrathoftheEmperor == true
                                                    { 
                                                        if (
attacker.WrathoftheEmperorStamp <= DateTime.Now.AddMilliseconds(1500)) 
                                                        { 
                                                            
wep1spellid 12570
                                                        } 
                                                        
attacker.WrathoftheEmperor false
                                                    } 
                                                } 
                                                if (
attacker.Owner.Spells.ContainsKey(wep1spellid) && Database.SpellTable.SpellInformations.ContainsKey(wep1spellid)) 
                                                { 
                                                    
wep1spell Database.SpellTable.SpellInformations[wep1spellid][attacker.Owner.Spells[wep1spellid].Level]; 
                                                    
doWep1Spell Kernel.Rate(wep1spell.Percent); 
                                                    if (
attacked.EntityFlag == EntityFlag.Player && wep1spellid == 10490
                                                        
doWep1Spell Kernel.Rate(15); 
                                                } 
                                            } 
                                        } 
                                    } 
                                    if (!
doWep1Spell
                                    { 
                                        if (
weapons.Item2 != null
                                        { 
                                            
ConquerItem leftweapon weapons.Item2
                                            
wep2subyte = (ushort)(leftweapon.ID 1000); 
                                            if (
wep2subyte == 421
                                            { 
                                                
wep2bs true
                                                
wep2subyte--; 
                                            } 
                                            
                                            if (
Database.SpellTable.WeaponSpells.ContainsKey(wep2subyte)) 
                                            { 
                                                var 
weaponskill2 Database.SpellTable.WeaponSpells[wep2subyte]; 
                                                for (
int i 0weaponskill2.Counti++) 
                                                { 
                                                    if (!
doWep2Spell
                                                    { 
                                                        
wep2spellid weaponskill2[i]; 
                                                        if (
wep2subyte == 622
                                                        { 
                                                            if (
attacker.WrathoftheEmperor == true
                                                            { 
                                                                if (
attacker.WrathoftheEmperorStamp <= DateTime.Now.AddMilliseconds(1500)) 
                                                                { 
                                                                    
wep2spellid 12570
                                                                } 
                                                                
attacker.WrathoftheEmperor false
                                                            } 
                                                        } 
                                                        if (
attacker.Owner.Spells.ContainsKey(wep2spellid) && Database.SpellTable.SpellInformations.ContainsKey(wep2spellid)) 
                                                        { 
                                                            
wep2spell Database.SpellTable.SpellInformations[wep2spellid][attacker.Owner.Spells[wep2spellid].Level]; 
                                                            
doWep2Spell Kernel.Rate(wep2spell.Percent); 
                                                            if (
attacked.EntityFlag == EntityFlag.Player && wep2spellid == 10490
                                                                
doWep2Spell Kernel.Rate(15); 
                                                        } 
                                                    } 
                                                } 
                                            } 
                                        } 
                                    } 

                                    if (!
attacker.Transformed
                                    { 
                                        if (
doWep1Spell
                                        { 
                                            
attack.AttackType Attack.Magic
                                            
attack.Decoded true
                                            
attack.weaponspell true
                                            
attack.attacked.X
                                            
attack.attacked.Y
                                            
attack.Attacked attacked.UID
                                            
attack.Damage wep1spell.ID
                                            goto 
restart
                                        } 
                                        if (
doWep2Spell
                                        { 
                                            
attack.AttackType Attack.Magic
                                            
attack.Decoded true
                                            
attack.weaponspell true
                                            
attack.attacked.X
                                            
attack.attacked.Y
                                            
attack.Attacked attacked.UID
                                            
attack.Damage wep2spell.ID
                                            goto 
restart
                                        } 
                                        if (
wep1bs
                                            
wep1subyte++; 
                                        if (
attacker.EntityFlag == EntityFlag.Player && attacked.EntityFlag != EntityFlag.Player
                                            if (
damage attacked.Hitpoints
                                            { 
                                                
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattacked.Hitpoints), wep1subyte); 
                                                if (
wep2subyte != 0
                                                { 
                                                    if (
wep2bs
                                                        
wep2subyte++; 
                                                    
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattacked.Hitpoints), wep2subyte); 
                                                } 
                                            } 
                                            else 
                                            { 
                                                
attacker.Owner.IncreaseProficiencyExperience(damagewep1subyte); 
                                                if (
wep2subyte != 0
                                                { 
                                                    if (
wep2bs
                                                        
wep2subyte++; 
                                                    
attacker.Owner.IncreaseProficiencyExperience(damagewep2subyte); 
                                                } 
                                            } 
                                    } 
                                } 
                                else 
                                { 
                                    if (!
attacker.Transformed
                                    { 
                                        if (
attacker.EntityFlag == EntityFlag.Player && attacked.EntityFlag != EntityFlag.Player
                                            if (
damage attacked.Hitpoints
                                            { 
                                                
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattacked.Hitpoints), 0); 
                                            } 
                                            else 
                                            { 
                                                
attacker.Owner.IncreaseProficiencyExperience(damage0); 
                                            } 
                                    } 
                                } 
                                
ReceiveAttack(attackerattackedattackref damagenull); 
                                
attack.AttackType Attack.Melee
                            } 
                            else 
                            { 
                                
attacker.AttackPacket null
                            } 
                        } 
                        else if (
attacker.Owner.Screen.TryGetSob(attack.Attackedout attackedsob)) 
                        { 
                            
CheckForExtraWeaponPowers(attacker.Ownernull); 
                            if (
CanAttack(attackerattackedsobnull)) 
                            { 
                                
ushort range attacker.AttackRange
                                if (
attacker.Transformed
                                    
range = (ushort)attacker.TransformationAttackRange
                                if (
Kernel.GetDistance(attacker.Xattacker.Yattackedsob.Xattackedsob.Y) <= range
                                { 
                                    
attack.Effect1 Attack.AttackEffects1.None
                                    
uint damage Game.Attacking.Calculate.Melee(attackerattackedsobref attack); 

                                    var 
weapons attacker.Owner.Weapons
                                    if (
weapons.Item1 != null
                                    { 
                                        
ConquerItem rightweapon weapons.Item1
                                        
ushort wep1subyte = (ushort)(rightweapon.ID 1000), wep2subyte 0
                                        
bool wep1bs falsewep2bs false
                                        if (
wep1subyte == 421
                                        { 
                                            
wep1bs true
                                            
wep1subyte--; 
                                        } 
                                        
ushort wep1spellid 0wep2spellid 0
                                        
Database.SpellInformation wep1spell nullwep2spell null
                                        if (
Database.SpellTable.WeaponSpells.ContainsKey(wep1subyte)) 
                                        { 
                                            var 
wep1 Database.SpellTable.WeaponSpells[wep1subyte]; 
                                            for (
int i 0wep1.Counti++) 
                                            { 
                                                if (!
doWep1Spell
                                                { 
                                                    
wep1spellid wep1[i]; 
                                                    if (
attacker.Owner.Spells.ContainsKey(wep1spellid) && Database.SpellTable.SpellInformations.ContainsKey(wep1spellid)) 
                                                    { 
                                                        
wep1spell Database.SpellTable.SpellInformations[wep1spellid][attacker.Owner.Spells[wep1spellid].Level]; 
                                                        
doWep1Spell Kernel.Rate(10); 
                                                    } 
                                                } 
                                            } 
                                        } 
                                        if (!
doWep1Spell
                                        { 
                                            if (
weapons.Item2 != null
                                            { 
                                                
ConquerItem leftweapon weapons.Item2
                                                
wep2subyte = (ushort)(leftweapon.ID 1000); 
                                                if (
wep2subyte == 421
                                                { 
                                                    
wep2bs true
                                                    
wep2subyte--; 
                                                } 
                                                if (
Database.SpellTable.WeaponSpells.ContainsKey(wep2subyte)) 
                                                { 
                                                    var 
wep2 Database.SpellTable.WeaponSpells[wep2subyte]; 
                                                    for (
int i 0wep2.Counti++) 
                                                    { 
                                                        
wep2spellid wep2[i]; 
                                                        if (
attacker.Owner.Spells.ContainsKey(wep2spellid) && Database.SpellTable.SpellInformations.ContainsKey(wep2spellid)) 
                                                        { 
                                                            
wep2spell Database.SpellTable.SpellInformations[wep2spellid][attacker.Owner.Spells[wep2spellid].Level]; 
                                                            
doWep2Spell Kernel.Rate(10); 
                                                        } 
                                                    } 
                                                } 
                                            } 
                                        } 

                                        if (!
attacker.Transformed
                                        { 
                                            if (
doWep1Spell
                                            { 
                                                
attack.AttackType Attack.Magic
                                                
attack.Decoded true
                                                
attack.weaponspell true
                                                
attack.attackedsob.X
                                                
attack.attackedsob.Y
                                                
attack.Attacked attackedsob.UID
                                                
attack.Damage wep1spell.ID
                                                goto 
restart
                                            } 
                                            if (
doWep2Spell
                                            { 
                                                
attack.AttackType Attack.Magic
                                                
attack.Decoded true
                                                
attack.weaponspell true
                                                
attack.attackedsob.X
                                                
attack.attackedsob.Y
                                                
attack.Attacked attackedsob.UID
                                                
attack.Damage wep2spell.ID
                                                goto 
restart
                                            } 
                                            if (
attacker.MapID == 1039
                                            { 
                                                if (
wep1bs
                                                    
wep1subyte++; 
                                                if (
attacker.EntityFlag == EntityFlag.Player
                                                    if (
damage attackedsob.Hitpoints
                                                    { 
                                                        
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattackedsob.Hitpoints), wep1subyte); 
                                                        if (
wep2subyte != 0
                                                        { 
                                                            if (
wep2bs
                                                                
wep2subyte++; 
                                                            
attacker.Owner.IncreaseProficiencyExperience(Math.Min(damageattackedsob.Hitpoints), wep2subyte); 
                                                        } 
                                                    } 
                                                    else 
                                                    { 
                                                        
attacker.Owner.IncreaseProficiencyExperience(damagewep1subyte); 
                                                        if (
wep2subyte != 0
                                                        { 
                                                            if (
wep2bs
                                                                
wep2subyte++; 
                                                            
attacker.Owner.IncreaseProficiencyExperience(damagewep2subyte); 
                                                        } 
                                                    } 
                                            } 
                                        } 
                                    } 
                                    
attack.Damage damage
                                    
ReceiveAttack(attackerattackedsobattackdamagenull); 
                                } 
                                else 
                                { 
                                    
attacker.AttackPacket null
                                } 
                            } 
                        } 
                        else 
                        { 
                            
attacker.AttackPacket null
                        } 
                    } 
                    
#endregion 

انت فاكر كده خلصت لا طبعا لسه فيها اضافة تانية خش علي ملف World.cs و ابحث علي ده
كود PHP:

private void CharactersCallback(GameState clientint time

لو لقيت الاكواد دية عندك
كود PHP:

if (!Valid(client)) return; 
            
Time32 Now32 = new Time32(time); 
            
DateTime Now64 DateTime.Now
            if (
client.Spells != null

حط دول مكانها
كود PHP:

if (!Valid(client)) return; 
            
Time32 Now32 = new Time32(time); 
            
DateTime Now64 DateTime.Now
            if (
client.Spells != null
            { 
                if (
client.Spells.ContainsKey(12550) || 
                    
client.Spells.ContainsKey(12560) || 
                    
client.Spells.ContainsKey(12570)) 
                { 
                    if (!
DataHolder.IsMonk(client.Entity.Class)) 
                    { 

                        
client.RemoveSpell(client.Spells[12550]); 
                        
client.RemoveSpell(client.Spells[12560]); 
                        
client.RemoveSpell(client.Spells[12570]); 
                    } 
                } 
            } 

هتبحث علي الكود ده في ملف Entity
كود PHP:

public bool EpicMonk() 

بدله بده
كود PHP:

public bool EpicMonk() 
        { 
            if (
EntityFlag == Game.EntityFlag.Player
            { 
                var 
weapons Owner.Weapons
                if (
weapons.Item1 != null
                    if (
weapons.Item1.ID 1000 == 622
                        return 
true
                if (
weapons.Item2 != null
                    if (
weapons.Item2.ID 1000 == 622
                        return 
true
            } 
            return 
false
        } 

        public 
bool WrathoftheEmperor getset; } 

        public 
DateTime WrathoftheEmperorStamp getset; } 

كده الاسكلة 100 % شغالة و صورة للتأكيد
عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع
عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع

uncelsam 2019-11-02 11:13 PM

رد: أسكلة الوارث أوف أمبرور كاملة 100%
 
الله ينور يحازم

مايكل جا 2019-11-03 09:01 AM

رد: أسكلة الوارث أوف أمبرور كاملة 100%
 
الله عليا بجد
لسه موضوعي بيتنشر لحد النهاردة

abdocoder 2020-03-21 03:29 AM

رد: أسكلة الوارث أوف أمبرور كاملة 100%
 
شكرا

MRonlineGvrix 2023-05-28 12:32 PM

رد: أسكلة الوارث أوف أمبرور كاملة 100%
 
عاش


الساعة الآن 07:04 PM

مرحبا بكم في منتدي اكواد لتطوير الالعاب