Server.Mobiles.BaseEscortable.SayDestinationTo C# (CSharp) Method

SayDestinationTo() public method

public SayDestinationTo ( Mobile m ) : bool
m Mobile
return bool
		public virtual bool SayDestinationTo(Mobile m)
		{
			EDI dest = GetDestination();

			if (dest == null || !m.Alive)
				return false;

			Mobile escorter = GetEscorter();

			if (escorter == null)
			{
				Say("I am looking to go to {0}, will you take me?", dest.Name);
				return true;
			}
			else if (escorter == m)
			{
				Say("Lead on! Payment will be made when we arrive in {0}.", dest.Name);
				return true;
			}

			return false;
		}

Usage Example

Ejemplo n.º 1
0
 public override void OnClick()
 {
     m_Mobile.SayDestinationTo(m_From);
 }