Example #1
0
        /// <summary>
        /// Turn in Wraith Change Model and Start Timer for Reverting.
        /// If Already in Wraith Form Restart Timer Only.
        /// </summary>
        public virtual void TurnInWraith()
        {
            if (Player == null)
            {
                return;
            }

            if (m_WraithTimerAction.IsAlive)
            {
                m_WraithTimerAction.Stop();
            }
            else
            {
                switch (Player.Race)
                {
                case 11: Player.Model = 1885; break;                         //Elf

                case 12: Player.Model = 1884; break;                         //Lurikeen

                case 9:
                default: Player.Model = 1883; break;                         //Celt
                }

                GameEventMgr.AddHandler(Player, GamePlayerEvent.RemoveFromWorld, m_WraithTriggerEvent);
            }

            m_WraithTimerAction.Start(WRAITH_FORM_RESET_DELAY);
        }
Example #2
0
        /// <summary>
        /// Turn in Wraith Change Model and Start Timer for Reverting.
        /// If Already in Wraith Form Restart Timer Only.
        /// </summary>
        public virtual void TurnInWraith()
        {
            if (Player == null)
            {
                return;
            }

            if (_wraithTimerAction.IsAlive)
            {
                _wraithTimerAction.Stop();
            }
            else
            {
                switch (Player.Race)
                {
                case 11: Player.Model = 1885; break;     // Elf

                case 12: Player.Model = 1884; break;     // Lurikeen

                default: Player.Model = 1883; break;     // Celt
                }

                GameEventMgr.AddHandler(Player, GameObjectEvent.RemoveFromWorld, _wraithTriggerEvent);
            }

            _wraithTimerAction.Start(WraithFormResetDelay);
        }