public override void OnSingleClickContained( Mobile from, Item item )
{
if ( RootParent is PlayerVendor )
{
PlayerVendor vendor = (PlayerVendor)RootParent;
VendorItem vi = vendor.GetVendorItem( item );
if ( vi != null )
{
if ( !vi.IsForSale )
item.LabelTo( from, 1043307 ); // Price: Not for sale.
else if ( vi.IsForFree )
item.LabelTo( from, 1043306 ); // Price: FREE!
else
item.LabelTo( from, 1043304, vi.FormattedPrice ); // Price: ~1_COST~
if ( !String.IsNullOrEmpty( vi.Description ) )
{
// The localized message (1043305) is no longer valid - <br>Seller's Description:<br>"~1_DESC~"
item.LabelTo( from, "Description: {0}", vi.Description );
}
}
}
base.OnSingleClickContained( from, item );
}