public override bool OnDragDrop( Mobile from, Item dropped )
{
if ( dropped is HouseDeed )
{
HouseDeed deed = (HouseDeed)dropped;
int price = ComputePriceFor( deed );
if ( price > 0 )
{
if ( Banker.Deposit( from, price ) )
{
// For the deed I have placed gold in your bankbox :
PublicOverheadMessage( MessageType.Regular, 0x3B2, 1008000, AffixType.Append, price.ToString(), "" );
deed.Delete();
return true;
}
else
{
PublicOverheadMessage( MessageType.Regular, 0x3B2, 500390 ); // Your bank box is full.
return false;
}
}
else
{
PublicOverheadMessage( MessageType.Regular, 0x3B2, 500607 ); // I'm not interested in that.
return false;
}
}
return base.OnDragDrop (from, dropped);
}