Example #1
0
        public override void OnResponse(Server.Network.NetState sender, RelayInfo info)
        {
            if (info.ButtonID == 0)
            {
                _from.SendLocalizedMessage(501235, "", 0x35);                   //Help request aborted.
                return;
            }

            PageType type = (PageType)info.ButtonID;

            if (((int)type) > -1 && PageQueue.AllowedToPage(_from))
            {
                _from.SendGump(new PagePromptGump(_from, type));
            }
        }
Example #2
0
        private static void EventSink_HelpRequest(HelpRequestEventArgs args)
        {
            Mobile m = args.Mobile;

            if (m.HasGump(typeof(HelpGump)) || !PageQueue.AllowedToPage(m))
            {
                return;
            }

            if (PageQueue.Contains(m))
            {
                m.SendMenu(new ContainedMenu(m));
            }
            else
            {
                m.SendGump(new HelpGump(m));
            }
        }