Server.Engines.PartySystem.Party.OnAccept C# (CSharp) Méthode

OnAccept() public méthode

public OnAccept ( Server.Mobile from ) : void
from Server.Mobile
Résultat void
		public void OnAccept( Mobile from )
		{
			OnAccept( from, false );
		}

Same methods

Party::OnAccept ( Server.Mobile from, bool force ) : void

Usage Example

Exemple #1
0
        public override void OnAccept(Mobile from, Mobile sentLeader)
        {
            Mobile leader = from.Party as Mobile;

            from.Party = null;

            Party p = Party.Get(leader);

            if (leader == null || p == null || !p.Candidates.Contains(from))
            {
                from.SendLocalizedMessage(3000222);                 // No one has invited you to be in a party.
            }
            else if ((p.Members.Count + p.Candidates.Count) <= Party.Capacity)
            {
                p.OnAccept(from);
            }
        }
All Usage Examples Of Server.Engines.PartySystem.Party::OnAccept