public override void OnClick()
 {
     if (backpack == null || !backpack.IsOwner(player))
     {
         return;
     }
     MasterStorageLedgerGump.SendGump(player, backpack);
 }
Exemple #2
0
 protected override void OnTarget(Mobile from, object targeted)
 {
     if (!(from is PlayerMobile))
     {
         return;
     }
     if (targeted is Item && backpack.AddCurrency(targeted as Item))
     {
         from.SendMessage("You added the currency.");
         MasterStorageLedgerGump.SendGump(from, backpack);
         from.Target = new MasterStorageAddCurrencyTarget(from, backpack);
     }
     else
     {
         from.SendMessage("Unable to add that.");
     }
 }