public AmountSellOrderPrompt(PlayerMobile from, MarketDatabase.SellOrder target, String market) { m_from = from; m_theOrder = target; m_theMarket = market; from.SendMessage(53, "Please enter how many of the " + target.amount + " available " + target.itemType.Name + " would you like to purchase."); }
public PurchaseSellOrderGump(PlayerMobile from, MarketDatabase.SellOrder order, String market, int amount) : base(20, 30) { m_From = from; m_Order = order; m_Market = market; m_amountToBuy = amount; AddBackground(0, 0, 270, 150, 5054); AddBackground(10, 10, 250, 130, 3000); CancelAllGumpsAndPrompts.Run(from); int totalCost = m_amountToBuy * order.unitPrice; AddHtml(20, 15, 240, 90, "Are you sure you wish to purchase (" + m_amountToBuy + ") " + order.itemType.Name + " for the sum of " + totalCost + " gold?", true, true); AddHtmlLocalized(55, 110, 75, 20, 1011011, false, false); // CONTINUE AddButton(20, 110, 4005, 4007, 1, GumpButtonType.Reply, 0); AddHtmlLocalized(170, 110, 75, 20, 1011012, false, false); // CANCEL AddButton(135, 110, 4005, 4007, 2, GumpButtonType.Reply, 0); }