CheckExpiredWars() public méthode

public CheckExpiredWars ( ) : void
Résultat void
Exemple #1
0
        public static void HandleDeath(Mobile victim, Mobile killer)
        {
            if (killer == null)
            {
                killer = victim.FindMostRecentDamager(false);
            }

            if (killer == null || victim.Guild == null || killer.Guild == null)
            {
                return;
            }

            Guild victimGuild = GetAllianceLeader(victim.Guild as Guild);
            Guild killerGuild = GetAllianceLeader(killer.Guild as Guild);

            WarDeclaration war = killerGuild.FindActiveWar(victimGuild);

            if (war == null)
            {
                return;
            }

            war.Kills++;

            if (war.Opponent == victimGuild)
            {
                killerGuild.CheckExpiredWars();
            }
            else
            {
                victimGuild.CheckExpiredWars();
            }
        }
		public OtherGuildInfo( PlayerMobile pm, Guild g, Guild otherGuild ) : base( pm, g, 10, 40 )
		{
			m_Other = otherGuild;

			g.CheckExpiredWars();
			
			PopulateGump();
		}
Exemple #3
0
        public OtherGuildInfo(PlayerMobile pm, Guild g, Guild otherGuild) : base(pm, g, 10, 40)
        {
            m_Other = otherGuild;

            g.CheckExpiredWars();

            PopulateGump();
        }