Server.Items.TreasureMap.DisplayTo C# (CSharp) Method

DisplayTo() public method

public DisplayTo ( Server.Mobile from ) : void
from Server.Mobile
return void
		public override void DisplayTo( Mobile from )
		{
			if ( m_Completed )
			{
				SendLocalizedMessageTo( from, 503014 ); // This treasure hunt has already been completed.
			}
			else if ( m_Decoder != from && !HasRequiredSkill( from ) )
			{
				from.SendLocalizedMessage( 503031 ); // You did not decode this map and have no clue where to look for the treasure.
				return;
			}
			else
			{
				SendLocalizedMessageTo( from, 503017 ); // The treasure is marked by the red pin. Grab a shovel and go dig it up!
			}

			from.PlaySound( 0x249 );
			base.DisplayTo( from );
		}

Usage Example

Esempio n. 1
0
 public override void OnClick()
 {
     if (!m_Map.Deleted)
     {
         m_Map.DisplayTo(Owner.From);
     }
 }
All Usage Examples Of Server.Items.TreasureMap::DisplayTo