Ejemplo n.º 1
0
        /// <summary>
        /// Sends the confirmation request for the reserve not met to the auction owner
        /// </summary>
        /// <param name="item">The auction</param>
        public static void SendReserveMessageToOwner(AuctionItem item)
        {
            if (item.Owner == null || item.Owner.Account == null || item.Owner.NetState == null)
            {
                return;
            }

            AuctionMessageGump gump = new AuctionMessageGump(item, false, true, true);
            string             msg  = string.Format(
                AuctionSystem.ST[180],
                item.HighestBid.Amount, item.Reserve);

            if (!item.IsValid())
            {
                msg += AuctionSystem.ST[181];
            }

            gump.Message    = msg;
            gump.OkText     = AuctionSystem.ST[182];
            gump.CancelText = AuctionSystem.ST[183];

            item.Owner.SendGump(new AuctionNoticeGump(gump));
        }