public static void ReceiveAttack(Game.Entity attacker, SobNpcSpawn attacked, Attack attack, uint damage, Database.SpellInformation spell)
#region CW if (attacker.MapID == 1509) { if (attacked.UID == 812) { Clan clan = attacker.GetClan; if (Game.ClanWar.PoleKeeper == clan) return; if (attacked.Hitpoints <= damage) attacked.Hitpoints = 0; Game.ClanWar.AddScore(damage, clan); } } #endregion
1509 ده رقم مابه لو مختلف عندك غيره و كذلك الوضع بالنسبه لايدي البوله
public static bool CanAttack(Game.Entity attacker, SobNpcSpawn attacked, Database.SpellInformation spell)
#region CWcan atk if (attacker.MapID == 1509) { if (attacker.ClanId == 0 || !Game.ClanWar.IsWar) { if (attacked.UID == 812) { return false; } } if (Game.ClanWar.PoleKeeper != null) { if (Game.ClanWar.PoleKeeper == attacker.GetClan) { if (attacked.UID == 812) { return false; } } } } #endregion
public static bool CanAttack(Game.Entity attacker, Game.Entity attacked, Database.SpellInformation spell, bool melee)
if (attacker.MapID == 1507) { if (!Game.ClanWarArena.Tournaments[4].Open) { if (!attacker.AllowToAttack) return false; } }
public static void Initiate()