public override void OnClick() { if (backpack == null || !backpack.IsOwner(player)) { return; } MasterStorageLedgerGump.SendGump(player, backpack); }
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."); } }