Server.Items.TreasureMapChest.EndRemove C# (CSharp) Method

EndRemove() public method

public EndRemove ( Mobile from ) : void
from Mobile
return void
		public void EndRemove( Mobile from )
		{
			if ( Deleted || from != m_Owner || !from.InRange( GetWorldLocation(), 3 ) )
				return;

			from.SendLocalizedMessage( 1048124, "", 0x8A5 ); // The old, rusted chest crumbles when you hit it.
			this.Delete();
		}

Usage Example

Ejemplo n.º 1
0
 public override void OnResponse(NetState sender, RelayInfo info)
 {
     if (info.ButtonID == 1)
     {
         m_Chest.EndRemove(m_From);
     }
 }