public override void OnDoubleClick( Mobile from )
{
if ( !m_Active || !from.CheckAlive() )
return;
if ( !from.InRange( GetWorldLocation(), 2 ) )
{
from.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1019045 ); // I can't reach that.
return;
}
if ( HasEntered( from ) )
{
from.SendMessage( MessageHue, "You have already entered this plot's raffle." );
}
else if ( IsAtIPLimit( from ) )
{
from.SendMessage( MessageHue, "You may not enter this plot's raffle." );
}
else
{
from.SendGump( new WarningGump( 1150470, 0x7F00, String.Format( "You are about to purchase a raffle ticket for the house plot located at {0}. The ticket price is {1}. Tickets are non-refundable and you can only purchase one ticket per account. Do you wish to continue?", FormatLocation(), FormatPrice() ), 0xFFFFFF, 420, 280, new WarningGumpCallback( Purchase_Callback ), null ) ); // CONFIRM TICKET PURCHASE
}
}