عرض مشاركة واحدة
قديم 2020-03-09, 01:34 PM
المشاركة 7
Rider
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة في عمود الوار
سيرش

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

جواه ضيف

كود:
 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;
                        }
                    }
                }
            }