public override void OnResponse( Mobile from, string text ) { if ( !m_Vendor.CanInteractWith( from, true ) ) return; text = text.Trim(); int amount; if ( !int.TryParse( text, out amount ) ) amount = 0; GiveGold( from, amount ); }