protected override void OnTarget( Mobile from, object targeted )
{
if ( m_Item.Deleted )
return;
if ( targeted is ILockpickable )
{
Item item = (Item)targeted;
from.Direction = from.GetDirectionTo( item );
if ( ((ILockpickable)targeted).Locked )
{
from.PlaySound( 0x241 );
new InternalTimer( from, (ILockpickable)targeted, m_Item ).Start();
}
else
{
// The door is not locked
from.SendLocalizedMessage( 502069 ); // This does not appear to be locked
}
}
else
{
from.SendLocalizedMessage( 501666 ); // You can't unlock that!
}
}