Esempio n. 1
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;
            }

            if (!AuctionSystem.Running)
            {
                sender.Mobile.SendMessage(AuctionSystem.MessageHue, AuctionSystem.ST[15]);
                return;
            }

            if (info.ButtonID == 1)
            {
                if (m_Message != null)
                {
                    m_Message.SendTo(sender.Mobile);
                }
            }
        }
Esempio n. 2
0
        public override void OnResponse(Server.Network.NetState sender, RelayInfo info)
        {
            if (!AuctionSystem.Running)
            {
                sender.Mobile.SendMessage(AuctionConfig.MessageHue, AuctionSystem.ST[15]);
                return;
            }

            if (info.ButtonID == 1)
            {
                if (m_Message != null)
                {
                    m_Message.SendTo(sender.Mobile);
                }
            }
        }
        public override void OnResponse(Server.Network.NetState sender, RelayInfo info)
        {
            if (!AuctionSystem.Running)
            {
                sender.Mobile.SendMessage(AuctionConfig.MessageHue, AuctionSystem.ST[15]);
                return;
            }

            if (info.ButtonID == 1)
            {
                if (m_Message != null)
                {
                    m_Message.SendTo(sender.Mobile);
                }
            }
            int buttonid = info.ButtonID;

            if (buttonid < 1 || buttonid > 1)
            {
                sender.Mobile.SendMessage("Invalid option.  Please try again.");
                return;
            }
        }