Exemplo n.º 1
0
        public override void OnResponse(Server.Network.NetState sender, RelayInfo info)
        {
            switch (info.ButtonID)
            {
            case 1:                     // Validate

                AuctionSystem.VerifyAuctions();
                AuctionSystem.VerifyPendencies();

                sender.Mobile.SendGump(new AuctionAdminGump(sender.Mobile));
                break;

            case 2:                     // Profile

                AuctionSystem.ProfileAuctions();

                sender.Mobile.SendGump(new AuctionAdminGump(sender.Mobile));
                break;

            case 3:                     // Disable

                AuctionSystem.Disable();
                sender.Mobile.SendMessage(AuctionConfig.MessageHue, "The system has been stopped. It will be restored with the next reboot.");
                break;

            case 4:                     // Delete

                sender.Mobile.SendGump(new DeleteAuctionGump(sender.Mobile));
                break;
            }
        }
Exemplo n.º 2
0
        public override void OnResponse(Server.Network.NetState sender, RelayInfo info)
        {
            if (!m_Buttons.Contains(info.ButtonID))
            {
                Console.WriteLine(@"The auction system located a potential exploit. 
					Player {0} (Acc. {1}) tried to press an unregistered button in a gump of type: {2}"                    ,
                                  sender.Mobile != null ? sender.Mobile.ToString() : "Unkown",
                                  sender.Mobile != null && sender.Mobile.Account != null ? (sender.Mobile.Account as Server.Accounting.Account).Username : "******",
                                  this.GetType().Name);

                return;
            }

            switch (info.ButtonID)
            {
            case 1:                     // Validate

                AuctionSystem.VerifyAuctions();
                AuctionSystem.VerifyPendencies();

                sender.Mobile.SendGump(new AuctionAdminGump(sender.Mobile));
                break;

            case 2:                     // Profile

                AuctionSystem.ProfileAuctions();

                sender.Mobile.SendGump(new AuctionAdminGump(sender.Mobile));
                break;

            case 3:                     // Disable

                AuctionSystem.Disable();
                sender.Mobile.SendMessage(AuctionSystem.MessageHue, "The system has been stopped. It will be restored with the next reboot.");
                break;

            case 4:                     // Delete

                sender.Mobile.SendGump(new DeleteAuctionGump(sender.Mobile));
                break;
            }
        }