public override void OnResponse(NetState state, RelayInfo info) { base.OnResponse(state, info); Mobile from = state.Mobile; switch (info.ButtonID) { case 1: { if (Auction.CheckModifyAuction(User, true)) { if (Auction.AuctionItem != null) { if (Auction.AuctionItem.LabelNumber != 0) { from.SendLocalizedMessage(1152339, string.Format("#{0}", Auction.AuctionItem.LabelNumber)); // A reward of ~1_ITEM~ has been placed in your backpack. } else { from.SendLocalizedMessage(1152339, Auction.AuctionItem.Name); // A reward of ~1_ITEM~ has been placed in your backpack. } Auction.AuctionItem.Movable = true; from.AddToBackpack(Auction.AuctionItem); Auction.AuctionItem = null; } from.Target = new InternalTarget(Auction, this); } else { Refresh(); } break; } case 2: { if (Auction.CheckModifyAuction(User)) { TextRelay relay = info.GetTextEntry(1); string str = null; if (relay != null) { str = relay.Text; } if (str != null || Guilds.BaseGuildGump.CheckProfanity(str, 140)) { Auction.Description = Utility.FixHtml(str.Trim()); } else { from.SendLocalizedMessage(1150315); // That text is unacceptable. } } Refresh(); break; } case 3: { if (Auction.CheckModifyAuction(User)) { Auction.Duration = 60; } Refresh(); break; } case 4: { if (Auction.CheckModifyAuction(User)) { Auction.Duration = 4320; } Refresh(); break; } case 5: { if (Auction.CheckModifyAuction(User)) { Auction.Duration = 7200; } Refresh(); break; } case 6: { if (Auction.CheckModifyAuction(User)) { Auction.Duration = 10080; } Refresh(); break; } case 7: { if (Auction.CheckModifyAuction(User)) { TextRelay relay1 = info.GetTextEntry(2); string plat1 = null; string gold1 = null; if (relay1 != null) { plat1 = relay1.Text; } relay1 = info.GetTextEntry(3); if (relay1 != null) { gold1 = relay1.Text; } long platAmnt = Utility.ToInt64(plat1); long goldAmnt = Utility.ToInt64(gold1); if (platAmnt >= 0 && goldAmnt >= 0) { _TempBid += platAmnt * Account.CurrencyThreshold; _TempBid += goldAmnt; } else { from.SendLocalizedMessage(1150315); // That text is unacceptable. _NoBid = true; } if (!_NoBid) { if (Auction.OnGoing && Auction.BidHistory == null) { Auction.CurrentBid = _TempBid; } Auction.StartBid = _TempBid; } } Refresh(); break; } case 8: { if (Auction.CheckModifyAuction(User)) { TextRelay relay2 = info.GetTextEntry(4); string plat2 = null; string gold2 = null; if (relay2 != null) { plat2 = relay2.Text; } relay2 = info.GetTextEntry(5); if (relay2 != null) { gold2 = relay2.Text; } long platAmnt2 = Utility.ToInt64(plat2); long goldAmnt2 = Utility.ToInt64(gold2); if (platAmnt2 >= 0 && goldAmnt2 >= 0) { _TempBuyout += platAmnt2 * Account.CurrencyThreshold; _TempBuyout += goldAmnt2; } else { from.SendLocalizedMessage(1150315); // That text is unacceptable. } Auction.Buyout = _TempBuyout; } Refresh(); break; } case 9: { if (Auction.StartBid <= 0) { User.SendLocalizedMessage(1156434); // You must set a starting bid. } else { Auction.OnBegin(); } Refresh(); break; } case 23: { if (Auction.OnGoing && Auction.HighestBid == null) { Auction.ClaimPrize(User); } break; } } }
public override void AddGumpLayout() { base.AddGumpLayout(); _TempBid = 0; _TempBuyout = 0; _NoBid = false; if (Auction == null) { if (Safe.Auction != null) { Auction = Safe.Auction; } else { Safe.Auction = Auction = new Auction(User, Safe); } } int y = 166; // Add Auction Item AddHtmlLocalized(200, y, 175, 22, 1156421, Yellow, false, false); // Select New Auction Item AddButton(160, y, 4005, 4007, 1, GumpButtonType.Reply, 0); y += 24; // Description AddHtmlLocalized(15, y, 175, 110, 1114514, "#1156400", Yellow, false, false); // Description: AddButton(345, y, 4014, 4016, 2, GumpButtonType.Reply, 0); AddBackground(200, y, 140, 110, 9350); AddTextEntry(202, y + 2, 136, 106, 0, 1, Auction.Description, 140); // Display Item if (Auction.AuctionItem != null) { Item i = Auction.AuctionItem; AddImageTiledButton(102, 212, 0x918, 0x918, 0x0, GumpButtonType.Page, 0, i.ItemID, i.Hue, 23, 5); AddItemProperty(i.Serial); } y += 112; AddHtmlLocalized(15, y, 175, 18, 1114514, "#1156404", Yellow, false, false); // Time Remaining: if (Auction.HasBegun) { TimeSpan left = Auction.EndTime - DateTime.Now; int cliloc; double v; if (left.TotalSeconds < 0 || Auction.InClaimPeriod) { AddHtmlLocalized(200, y, 175, 18, 1114513, "#1156438", Gray, false, false); // Auction Ended } else { if (left.TotalDays >= 1) { cliloc = 1153091; // Lifespan: ~1_val~ days v = left.TotalDays; } else if (left.TotalHours >= 1) { cliloc = 1153090; // Lifespan: ~1_val~ hours v = left.TotalHours; } else { cliloc = 1153089; // Lifespan: ~1_val~ minutes v = left.TotalMinutes; } AddHtmlLocalized(200, y, 175, 18, cliloc, ((int)v).ToString(), Gray, false, false); } } else { TimeSpan ts = TimeSpan.FromMinutes(Auction.Duration); if (ts.TotalMinutes > 60) { AddHtmlLocalized(200, y, 175, 18, 1153091, string.Format("{0}", ts.TotalDays), Gray, false, false); // Lifespan: ~1_val~ days } else { AddHtmlLocalized(200, y, 175, 18, 1153089, string.Format("{0}", ts.TotalMinutes), Gray, false, false); // Lifespan: ~1_val~ minutes } } y += 20; AddHtmlLocalized(200, y, 140, 20, 1114514, "#1156455", Yellow, false, false); // One Hour AddButton(345, y, 4014, 4016, 3, GumpButtonType.Reply, 0); y += 20; AddHtmlLocalized(200, y, 140, 20, 1114514, "#1156418", Yellow, false, false); // Three Days AddButton(345, y, 4014, 4016, 4, GumpButtonType.Reply, 0); y += 20; AddHtmlLocalized(Length / 2, y, 140, 20, 1114514, "#1156419", Yellow, false, false); // Five Days AddButton(345, y, 4014, 4016, 5, GumpButtonType.Reply, 0); y += 20; AddHtmlLocalized(200, y, 140, 20, 1114514, "#1156420", Yellow, false, false); // Seven Days AddButton(Length - 55, y, 4014, 4016, 6, GumpButtonType.Reply, 0); y += 24; int[] startbid = GetPlatGold(Auction.StartBid); // Start Bid Plat/Gold AddHtmlLocalized(15, y, 175, 22, 1114514, "#1156410", Yellow, false, false); // Item Starting Bid Plat: AddBackground(200, y, 175, 22, 9350); AddTextEntry(202, y, 171, 18, 0, 2, startbid[0] > 0 ? startbid[0].ToString() : "", 9); y += 24; AddHtmlLocalized(15, y, 175, 22, 1114514, "#1156411", Yellow, false, false); // Item Starting Bid Gold: AddBackground(200, y, 175, 22, 9350); AddTextEntry(202, y, 171, 18, 0, 3, startbid[1] > 0 ? startbid[1].ToString() : "", 9); y += 24; AddHtmlLocalized(200, y, 175, 22, 1156416, Yellow, false, false); // Set Starting Bids AddButton(160, y, 4005, 4007, 7, GumpButtonType.Reply, 0); y += 26; // Buy Now AddHtmlLocalized(15, y, 175, 22, 1114514, "#1156413", Yellow, false, false); // Buy Now Plat Price: AddBackground(200, y, 175, 22, 9350); AddTextEntry(202, y + 2, 171, 18, 0, 4, Auction.BuyoutPlat > 0 ? Auction.BuyoutPlat.ToString() : "", 9); y += 26; AddHtmlLocalized(15, y, 175, 22, 1114514, "#1156412", Yellow, false, false); // Buy Now Gold Price: AddBackground(200, y, 175, 22, 9350); AddTextEntry(202, y, 171, 18, 0, 5, Auction.BuyoutGold > 0 ? Auction.BuyoutGold.ToString() : "", 9); y += 24; AddHtmlLocalized(200, y, 175, 22, 1156417, Yellow, false, false); // Set Buy Now Price AddButton(160, y, 4005, 4007, 8, GumpButtonType.Reply, 0); y += 24; if (Auction.AuctionItemOnDisplay() && !Auction.OnGoing) { AddHtmlLocalized(200, y, 175, 22, 1156414, Yellow, false, false); // Start Auction AddButton(160, y, 4005, 4007, 9, GumpButtonType.Reply, 0); } if (Auction.OnGoing && Auction.HighestBid == null) { AddHtmlLocalized(200, y, 175, 22, 1156415, Yellow, false, false); // Stop Auction AddButton(160, y, 4005, 4007, 23, GumpButtonType.Reply, 0); } }
public InternalTarget(Auction auction, BaseAuctionGump g) : base(-1, false, TargetFlags.None) { Auction = auction; Gump = g; }
public static void Buyout(Auction auction, Mobile buyout, long amount) { LogAuctionEvent(auction, string.Format("{0} payed {1} buyout to win the auction.", buyout, amount)); }
public static void WinAuction(Auction auction, Mobile winner, long bid, long reserveBid) { LogAuctionEvent(auction, string.Format("{0} has won the auction with a winning bid of {1} [{2} reserve refunded].", winner, bid, reserveBid - bid)); }
public static void LogRefund(Auction auction, Mobile from, long refund) { LogAuctionEvent(auction, string.Format("Refund of {0} to {1}", refund, from)); }
public override void OnResponse(NetState state, RelayInfo info) { base.OnResponse(state, info); switch (info.ButtonID) { case 1: TextRelay relay = info.GetTextEntry(1); string gold = null; string plat = null; if (relay != null) { plat = relay.Text; } relay = info.GetTextEntry(2); if (relay != null) { gold = relay.Text; } long val = Utility.ToInt64(plat); if (val > long.MaxValue) { val = long.MaxValue; } if (val < 0) { val = 0; } TempBid += val * Account.CurrencyThreshold; val = Utility.ToInt64(gold); if (val > long.MaxValue) { val = long.MaxValue; } if (val < 0) { val = 0; } TempBid += val; Auction.TryPlaceBid(User, TempBid); Refresh(); Auction.ResendGumps(User); break; case 2: Auction.TryBuyout(User); Refresh(); Auction.ResendGumps(User); break; } }
public override void AddGumpLayout() { base.AddGumpLayout(); TempBid = 0; // Display Item if (Auction.AuctionItem != null) { Item i = Auction.AuctionItem; AddImage((Length / 2) + 3, 160, 2329); Rectangle2D b = ItemBounds.Table[i.ItemID]; AddItem(((Length / 2) + (50 / 2)) + b.Width / 2 - b.X, (160 + 60 / 2) - b.Height / 2 - b.Y, i.ItemID, i.Hue); AddItemProperty(i.Serial); } // Description AddHtmlLocalized(0, 230, (Length / 2) - 3, 16, 1114514, "#1156400", Yellow, false, false); // Description: AddHtml((Length / 2) + 5, 230, 145, 130, Auction.Description, true, false); // Time AddHtmlLocalized(0, 370, (Length / 2) - 3, 16, 1114514, "#1156404", Yellow, false, false); // Time Remaining: TimeSpan left = Auction.EndTime - DateTime.Now; int cliloc; double v; if (left.TotalDays >= 7) { cliloc = 1153092; // Lifespan: ~1_val~ weeks v = left.TotalDays / 7; } else if (left.TotalDays >= 1) { cliloc = 1153091; // Lifespan: ~1_val~ days v = left.TotalDays; } else if (left.TotalHours >= 1) { cliloc = 1153090; // Lifespan: ~1_val~ hours v = left.TotalHours; } else { cliloc = 1153089; // Lifespan: ~1_val~ minutes v = left.TotalMinutes; } BidEntry entry = Auction.GetBidEntry(User, false); int platBid = entry == null ? 0 : entry.TotalPlatBid; int goldBid = entry == null ? 0 : entry.TotalGoldBid; AddHtmlLocalized((Length / 2) + 3, 370, 200, 16, cliloc, ((int)v).ToString(), C32216(Gray), false, false); AddHtmlLocalized(0, 395, (Length / 2) - 3, 16, 1114514, "#1156436", Yellow, false, false); // Current Platinum Bid: AddLabel((Length / 2) + 3, 395, 1149, Auction.CurrentPlatBid.ToString("N0", CultureInfo.GetCultureInfo("en-US"))); AddHtmlLocalized(0, 420, (Length / 2) - 3, 16, 1114514, "#1156435", Yellow, false, false); // Current Gold Bid: AddLabel((Length / 2) + 3, 420, 1149, Auction.CurrentGoldBid.ToString("N0", CultureInfo.GetCultureInfo("en-US"))); AddHtmlLocalized(0, 445, (Length / 2) - 3, 16, 1114514, "#1156406", Yellow, false, false); // Your Current Platinum Bid: AddBackground((Length / 2) + 3, 445, 200, 20, 9350); AddTextEntry((Length / 2) + 5, 445, 198, 20, 0, 1, platBid.ToString("N0", CultureInfo.GetCultureInfo("en-US"))); AddHtmlLocalized(0, 470, (Length / 2) - 3, 16, 1114514, "#1156405", Yellow, false, false); // Your Current Gold Bid: AddBackground((Length / 2) + 3, 470, 200, 20, 9350); AddTextEntry((Length / 2) + 5, 470, 198, 20, 0, 2, goldBid.ToString("N0", CultureInfo.GetCultureInfo("en-US"))); AddHtmlLocalized((Length / 2) + 3, 495, 200, 16, 1156407, Yellow, false, false); // Place Bid AddButton((Length / 2) - 33, 495, 4005, 4007, 1, GumpButtonType.Reply, 0); AddHtmlLocalized(0, 520, (Length / 2) - 3, 16, 1114514, "#1156413", Yellow, false, false); // Buy Now Plat Price: AddLabel((Length / 2) + 3, 520, 1149, Auction.BuyoutPlat.ToString("N0", CultureInfo.GetCultureInfo("en-US"))); AddHtmlLocalized(0, 545, (Length / 2) - 3, 16, 1114514, "#1156412", Yellow, false, false); // Buy Now Gold Price: AddLabel((Length / 2) + 3, 545, 1149, Auction.BuyoutGold.ToString("N0", CultureInfo.GetCultureInfo("en-US"))); if (Auction.Buyout > 0) { AddHtmlLocalized((Length / 2) + 3, 570, 200, 16, 1156409, Yellow, false, false); // Buy Now AddButton((Length / 2) - 33, 570, 4005, 4007, 2, GumpButtonType.Reply, 0); } }
public override void OnResponse(NetState state, RelayInfo info) { base.OnResponse(state, info); switch (info.ButtonID) { case 1: if (Auction.CheckModifyAuction(User, true)) { User.BeginTarget(-1, false, TargetFlags.None, (from, targeted) => { Item item = targeted as Item; if (!IsBadItem(item)) { if (item == Auction.AuctionItem) { User.SendMessage("You have removed the item from the auction."); Auction.AuctionItem = null; item.Movable = true; User.AddToBackpack(item); } else if (item.IsChildOf(User.Backpack)) { if (Auction.AuctionItem != null) { Auction.AuctionItem.Movable = true; User.AddToBackpack(Auction.AuctionItem); Auction.AuctionItem = null; User.SendMessage("You swap out auction items."); } else { User.SendMessage("You have selected an auction item."); } Auction.AuctionItem = item; item.Movable = false; item.MoveToWorld(new Point3D(Safe.X, Safe.Y, Safe.Z + Safe.Components[0].ItemData.CalcHeight), Safe.Map); } } else { User.SendMessage("You cannot add that to your auction."); } Refresh(); }); } break; case 2: TextRelay relay = info.GetTextEntry(1); string str = null; if (relay != null) { str = relay.Text; } if (str == null || str.Trim().Length > 150 || !Server.Guilds.BaseGuildGump.CheckProfanity(str)) { User.SendMessage(0x22, "Invalid description."); } else { Auction.Description = Utility.FixHtml(str.Trim()); } Refresh(); break; case 3: if (Auction.CheckModifyAuction(User)) { Auction.Duration = 3; } Refresh(); break; case 4: if (Auction.CheckModifyAuction(User)) { Auction.Duration = 5; } Refresh(); break; case 5: if (Auction.CheckModifyAuction(User)) { Auction.Duration = 7; } Refresh(); break; case 6: TextRelay relay1 = info.GetTextEntry(2); string plat1 = null; string gold1 = null; if (relay1 != null) { plat1 = relay1.Text; } relay1 = info.GetTextEntry(3); if (relay1 != null) { gold1 = relay1.Text; } long platAmnt = Utility.ToInt64(plat1); long goldAmnt = Utility.ToInt64(gold1); if (Auction.CheckModifyAuction(User) && platAmnt >= 0 && goldAmnt >= 0) { if (platAmnt > long.MaxValue) { User.SendMessage("Who in Sosaria has that much gold? Try a lower amount."); break; } _TempBid += platAmnt * Account.CurrencyThreshold; if (goldAmnt > long.MaxValue) { User.SendMessage("That bid is too high. Try converting some of your gold bid into a plat bid."); return; } _TempBid += goldAmnt; } else { _NoBid = true; } if (!_NoBid) { Auction.CurrentBid = _TempBid; } Refresh(); break; case 7: TextRelay relay2 = info.GetTextEntry(4); string plat2 = null; string gold2 = null; if (relay2 != null) { plat2 = relay2.Text; } relay2 = info.GetTextEntry(5); if (relay2 != null) { gold2 = relay2.Text; } long platAmnt2 = Utility.ToInt64(plat2); long goldAmnt2 = Utility.ToInt64(gold2); if (Auction.CheckModifyAuction(User) && platAmnt2 >= 0 && goldAmnt2 >= 0) { if (platAmnt2 > long.MaxValue) { User.SendMessage("Who in Sosaria has that much gold? Try a lower amount."); return; } _TempBuyout += platAmnt2 * Account.CurrencyThreshold; if (goldAmnt2 > long.MaxValue) { User.SendMessage("That bid is too high. Try converting some of your gold bid into a plat bid."); return; } _TempBuyout += goldAmnt2; } Auction.Buyout = _TempBuyout; Refresh(); break; case 8: if (Auction.CurrentBid <= 0) { User.SendLocalizedMessage(1156434); // You must set a starting bid. } else { Auction.OnBegin(); } Refresh(); break; case 23: if (Auction.OnGoing && Auction.HighestBid == null) { Auction.Cancel(); } break; } }
public override void AddGumpLayout() { base.AddGumpLayout(); _TempBid = 0; _TempBuyout = 0; _NoBid = false; if (Auction == null) { if (Safe.Auction != null) { this.Auction = Safe.Auction; } else { Safe.Auction = this.Auction = new Auction(User, Safe); } } int y = 160; // Add Auction Item AddHtmlLocalized((Length / 2) + 3, y, 200, 16, 1156421, Yellow, false, false); // Select New Auction Item AddButton((Length / 2) - 33, y, 4005, 4007, 1, GumpButtonType.Reply, 0); y += 25; // Description AddHtmlLocalized(0, y, (Length / 2) - 3, 16, 1114514, "#1156400", Yellow, false, false); // Description: AddButton(Length - 60, y, 4014, 4016, 2, GumpButtonType.Reply, 0); AddBackground((Length / 2) + 3, y, 150, 130, 9350); AddTextEntry((Length / 2) + 5, y, 145, 129, 0, 1, Auction.Description); y += 25; // Display Item if (Auction.AuctionItem != null) { Item i = Auction.AuctionItem; AddImage((Length / 2) - 83, y, 2329); Rectangle2D b = ItemBounds.Table[i.ItemID]; AddItem(((Length / 2) - (83 / 2)) - b.Width / 2 - b.X, (y + 60 / 2) - b.Height / 2 - b.Y, i.ItemID, i.Hue); AddItemProperty(i.Serial); } y = 320; AddHtmlLocalized(0, y, (Length / 2) - 3, 16, 1114514, "#1156404", Yellow, false, false); // Time Remaining: if (Auction.HasBegun) { TimeSpan left = Auction.EndTime - DateTime.Now; int cliloc; double v; if (left.TotalDays >= 7) { cliloc = 1153092; // Lifespan: ~1_val~ weeks v = left.TotalDays / 7; } else if (left.TotalDays >= 1) { cliloc = 1153091; // Lifespan: ~1_val~ days v = left.TotalDays; } else if (left.TotalHours >= 1) { cliloc = 1153090; // Lifespan: ~1_val~ hours v = left.TotalHours; } else { cliloc = 1153089; // Lifespan: ~1_val~ minutes v = left.TotalMinutes; } AddHtmlLocalized((Length / 2) + 3, y, 200, 16, cliloc, ((int)v).ToString(), C32216(Gray), false, false); } else { AddHtmlLocalized((Length / 2) + 3, y, 200, 16, 1153091, Auction.Duration.ToString(), C32216(Gray), false, false); } y += 20; AddHtmlLocalized(Length / 2, y, (Length / 2) - 65, 16, 1114514, "#1156418", Yellow, false, false); // Three Days; AddButton(Length - 60, y, 4014, 4016, 3, GumpButtonType.Reply, 0); y += 20; AddHtmlLocalized(Length / 2, y, (Length / 2) - 65, 16, 1114514, "#1156419", Yellow, false, false); // Five Days; AddButton(Length - 60, y, 4014, 4016, 4, GumpButtonType.Reply, 0); y += 20; AddHtmlLocalized(Length / 2, y, (Length / 2) - 65, 16, 1114514, "#1156420", Yellow, false, false); // Seven Days; AddButton(Length - 60, y, 4014, 4016, 5, GumpButtonType.Reply, 0); y += 22; // Start Bid Plat/Gold AddHtmlLocalized(0, y, (Length / 2) - 3, 16, 1114514, "#1156410", Yellow, false, false); // Item Starting Bid Plat: AddBackground((Length / 2) + 3, y, (Length / 2) - 68, 20, 9350); AddTextEntry((Length / 2) + 5, y, (Length / 2) - 65, 20, 0, 2, Auction.CurrentPlatBid.ToString("N0", CultureInfo.GetCultureInfo("en-US"))); y += 25; AddHtmlLocalized(0, y, (Length / 2) - 3, 16, 1114514, "#1156411", Yellow, false, false); // Item Starting Bid Gold: AddBackground((Length / 2) + 3, y, (Length / 2) - 68, 20, 9350); AddTextEntry((Length / 2) + 5, y, (Length / 2) - 63, 20, 0, 3, Auction.CurrentGoldBid.ToString("N0", CultureInfo.GetCultureInfo("en-US"))); y += 25; AddHtmlLocalized((Length / 2) + 3, y, Length / 2, 16, 1156416, Yellow, false, false); // Set Starting Bids AddButton((Length / 2) - 33, y, 4005, 4007, 6, GumpButtonType.Reply, 0); y += 25; // Buy Now AddHtmlLocalized(0, y, (Length / 2) - 3, 16, 1114514, "#1156413", Yellow, false, false); // Buy Now Plat Price: AddBackground((Length / 2) + 3, y, (Length / 2) - 68, 20, 9350); AddTextEntry((Length / 2) + 5, y, (Length / 2) - 63, 20, 0, 4, Auction.BuyoutPlat.ToString("N0", CultureInfo.GetCultureInfo("en-US"))); y += 25; AddHtmlLocalized(0, y, (Length / 2) - 3, 16, 1114514, "#1156412", Yellow, false, false); // Buy Now Gold Price: AddBackground((Length / 2) + 3, y, (Length / 2) - 68, 20, 9350); AddTextEntry((Length / 2) + 5, y, (Length / 2) - 63, 20, 0, 5, Auction.BuyoutGold.ToString("N0", CultureInfo.GetCultureInfo("en-US"))); y += 25; AddHtmlLocalized((Length / 2) + 3, y, Length / 2, 16, 1156417, Yellow, false, false); // Set Buy Now Price AddButton((Length / 2) - 33, y, 4005, 4007, 7, GumpButtonType.Reply, 0); y += 25; if (Auction.AuctionItemOnDisplay() && !Auction.OnGoing) { AddHtmlLocalized((Length / 2) + 3, y, 200, 16, 1156414, Yellow, false, false); // Start Auction AddButton((Length / 2) - 33, y, 4005, 4007, 8, GumpButtonType.Reply, 0); } if (Auction.OnGoing && Auction.HighestBid == null) { AddHtmlLocalized((Length / 2) + 3, y, 200, 16, 1114057, "Cancel Auction", Yellow, false, false); AddButton((Length / 2) - 33, y, 4005, 4007, 23, GumpButtonType.Reply, 0); } }