Пример #1
0
 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);
     }
 }
Пример #2
0
        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!");
            }
        }
Пример #3
0
        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!" );

        }
Пример #4
0
 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;
     }
 }