ÄÚµå : |
public override void OnDoubleClick( Mobile from )
{
if ( !Movable )
return;
if ( from.InRange( this.GetWorldLocation(), 1 ) )
{
if ( !RequireFreeHand || HasFreeHand( from ) )
Drink( from );
else
from.SendLocalizedMessage( 502172 ); // You must have a free hand to drink a potion.
}
else
{
from.SendLocalizedMessage( 502138 ); // That is too far away for you to use
}
}
|
ÄÚµå : |
// if ( !RequireFreeHand || HasFreeHand( from ) )
Drink( from );
// else
// from.SendLocalizedMessage( 502172 ); // You must have a free hand to drink a potion.
|