public override void OnResponse(NetState sender, RelayInfo info)
        {
            if (m_Instance.Removed)
            {
                return;
            }

            switch (info.ButtonID)
            {
            case 7:                     // Okay
            {
                if (info.IsSwitched(2))
                {
                    m_Instance.Cancel(true);
                }
                else if (info.IsSwitched(1))
                {
                    m_Instance.Cancel(false);
                }

                sender.Mobile.SendGump(new QuestLogGump(m_Instance.Player, m_CloseGumps));
                break;
            }
            }
        }
Esempio n. 2
0
        public void Abandon()
        {
            StopTimer();

            MLQuestInstance instance = Instance;
            PlayerMobile    pm       = instance.Player;

            if (m_Escort != null && !m_Escort.Deleted)
            {
                if (!pm.Alive)
                {
                    m_Escort.Say(500901);                       // Ack!  My escort has come to haunt me!
                }
                else
                {
                    m_Escort.Say(500902);                       // My escort seems to have abandoned me!
                }
                EndFollow(m_Escort);
            }

            // Note: this sound is sent twice on OSI (once here and once in Cancel())
            //m_Player.SendSound( 0x5B3 ); // private sound
            pm.SendLocalizedMessage(1071194);               // You have failed your escort quest...

            if (!instance.Removed)
            {
                instance.Cancel();
            }
        }