Exemplo n.º 1
0
            public override void OnClick()
            {
                //Cancel Trade Order
                //Are you sure you wish to cancel this trade order?  All contents of the trade crate will be placed in your backpack.
                Player.SendGump(new WarningGump(1151727, 30720, 1151728, 32512, 300, 200, (m, ok, obj) =>
                {
                    if (ok)
                    {
                        TradeOrderCrate crate = obj as TradeOrderCrate;

                        if (crate != null && crate.IsChildOf(Player.Backpack))
                        {
                            CityTradeSystem.CancelTradeOrder(Player, crate);
                        }
                    }
                }, Crate, true));
            }