Example #1
0
        public override void OnResponse(NetState state, RelayInfo info)
        {
            state.Mobile.CloseGump(typeof(TopicGump));
            int topic, subtopic;
            int m_Choice = info.ButtonID;

            if (m_Choice > 499)
            {
                topic    = (m_Choice - 500) / 1000;
                subtopic = (m_Choice % 1000) - 500;
                m_Bible.SetPassage(TopicReader.GetTopicVerse((Topic)topic, subtopic));
                state.Mobile.SendGump(new BibleGump(m_GM, m_Bible));
            }
            else if (m_Choice < 400)
            {
                state.Mobile.SendGump(new TopicGump(m_GM, m_Bible, m_Choice));
            }
            else if (m_Choice == 400)
            {
                state.Mobile.SendGump(new BibleGump(m_GM, m_Bible));
            }
        }