عرض مشاركة واحدة
قديم 2019-11-01, 10:41 PM
المشاركة 2
Hassan Emprator
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: حل مشكلة باب الوار
بسم الله الرحمن الرحيم

ابحث عن الكود دا


كود:
 public static bool CanAttack(Game.Entity attackerSobNpcSpawn 

هتلاقي فيه دا


كود:
 if (attacker.MapID == 1038

بدله كله بي دا


كود:
if (attacker.MapID == 1038)
            {
                if (
attacker.GuildID == || !Game.GuildWar.IsWar)
                {
                    if (
attacked.UID == 810)
                    {
                        return 
false;
                    }
                }
                if (
Game.GuildWar.PoleKeeper != null)
                {
                    if (
Game.GuildWar.PoleKeeper == attacker.Owner.Guild)
                    {
                        if (
attacked.UID == 810)
                        {
                            return 
false;
                        }
                    }
                    else if (
attacked.UID == 516075 || attacked.UID == 516074)
                    {
                        if (
Game.GuildWar.PoleKeeper == attacker.Owner.Guild)
                        {
                            if (
attacker.PKMode == Enums.PKMode.Team)
                                if (
attacker.PKMode == Enums.PKMode.PK)
                                return 
false;
                        }
                    }
                }
            } 

ابحث عن الكود دا


كود:
if (attacked.UID == 516075 || attacked.UID == 516074

بدله بي د


كود:
 if (attacked.UID == 516075 || attacked.UID == 516074)
                {
                    if (
Game.EliteGuildWar.PoleKeeper == attacker.Owner.Guild)
                    {
                        if (
attacker.PKMode == Enums.PKMode.Team)
                         if (
attacker.PKMode == Enums.PKMode.PK)
                            return 
false;
                    }
                }
            } 

جرب