public bool CanOpenBank(Mobile from, BankToken bt) { if (bt.Charges > 0) { return(true); } else { from.SendLocalizedMessage(502412); // There are no charges left on that item. return(false); } }
public void DoOpenBank(Mobile from, BankToken bt) { BankBox box = from.BankBox; if (box != null) { box.Open(); bt.Charges--; bt.Name = "A bank token. Charges: " + Charges + " Recharges left: " + (MaxCharges - Recharges); } else { from.SendMessage("Please page a gm immediately... you seem to have misplaced your bankbox....Boggle!"); } }
public void DoOpenBank( Mobile from, BankToken bt ) { BankBox box = from.BankBox; if ( box != null ) { box.Open(); bt.Charges--; bt.Name = "A bank token. Charges: " + Charges + " Recharges left: " + ( MaxCharges - Recharges ); } else from.SendMessage( "Please page a gm immediately... you seem to have misplaced your bankbox....Boggle!" ); }
public bool CanOpenBank( Mobile from, BankToken bt ) { if ( bt.Charges > 0 ) { return true; } else { from.SendLocalizedMessage( 502412 ); // There are no charges left on that item. return false; } }