Server.Guilds.Guild.InvalidateWarNotoriety C# (CSharp) Méthode

InvalidateWarNotoriety() public méthode

public InvalidateWarNotoriety ( ) : void
Résultat void
		public void InvalidateWarNotoriety()
		{
			Guild g = GetAllianceLeader( this );

			if ( g.Alliance != null )
				g.Alliance.InvalidateMemberNotoriety();
			else
				g.InvalidateMemberNotoriety();
		
			if ( g.AcceptedWars == null )
				return;

			foreach ( WarDeclaration warDec in g.AcceptedWars )
			{
				Guild opponent = warDec.Opponent;
						
				if ( opponent.Alliance != null )
					opponent.Alliance.InvalidateMemberNotoriety();
				else
					opponent.InvalidateMemberNotoriety();
			}
		}

Usage Example

Exemple #1
0
        public void AddMember(Mobile m)
        {
            if (!Members.Contains(m))
            {
                if (m.Guild != null && m.Guild != this)
                {
                    ((Guild)m.Guild).RemoveMember(m);
                }

                Members.Add(m);
                m.Guild = this;

                EventSink.InvokeJoinGuild(new JoinGuildEventArgs(m, this));

                m.GuildFealty = null;

                if (m is PlayerMobile)
                {
                    ((PlayerMobile)m).GuildRank = RankDefinition.Lowest;
                }

                Guild guild = m.Guild as Guild;

                if (guild != null)
                {
                    guild.InvalidateWarNotoriety();
                }
            }
        }
All Usage Examples Of Server.Guilds.Guild::InvalidateWarNotoriety