public override void OnCast()
        {
            if (CheckSequence())
            {
                Caster.Send(new SetNewSpell(SpellNumber, 1));

                Caster.SendLocalizedMessage(1063115);                   // You exude confidence.

                Caster.FixedParticles(0x375A, 1, 17, 0x7DA, 0x960, 0x3, EffectLayer.Waist);

                Timer t = (Timer)m_Table[Caster];

                if (t != null)
                {
                    t.Stop();
                }

                m_Table[Caster] = t = Timer.DelayCall(TimeSpan.FromSeconds(30.0), new TimerStateCallback(Expire_Callback), Caster);

                Timer regen = (Timer)m_Table2[Caster];

                if (regen != null)
                {
                    regen.Stop();
                }

                m_Table2[Caster] = regen = new RegenTimer(Caster);

                regen.Start();
            }

            FinishSequence();
        }
Beispiel #2
0
        public static void BeginRegenerating(Mobile m)
        {
            m_RegenTable.TryGetValue(m, out var timer);
            timer?.Stop();

            m_RegenTable[m] = timer = new RegenTimer(m);

            timer.Start();
        }
Beispiel #3
0
        public static void BeginRegenerating( Mobile m )
        {
            Timer t = (Timer)m_RegenTable[m];

            if ( t != null )
                t.Stop();

            t = new RegenTimer( m );

            m_RegenTable[m] = t;

            t.Start();
        }
Beispiel #4
0
        public static void BeginRegenerating(Mobile m)
        {
            Timer t = (Timer)m_RegenTable[m];

            if (t != null)
            {
                t.Stop();
            }

            t = new RegenTimer(m);

            m_RegenTable[m] = t;

            t.Start();
        }
Beispiel #5
0
        public static void BeginRegenerating(Mobile m)
        {
            Timer t;

            if (m_RegenTable.TryGetValue(m, out t))
            {
                t.Stop();
            }

            t = new RegenTimer(m);

            m_RegenTable[m] = t;

            t.Start();
        }
        public static void BeginRegenerating( Mobile m, int intensity, Mobile source )
        {
            RegenTimer t = (RegenTimer)m_RegenTable[m];

            if ( t != null )
            {
                t.Update( intensity );
                return;
            }

            t = new RegenTimer( m, intensity );

            m_RegenTable[m] = t;

            t.Start();
        }
Beispiel #7
0
        public override void OnCast()
        {
            if (CheckSequence())
            {
                Caster.SendLocalizedMessage(1063115);                   // You exude confidence.

                Caster.FixedParticles(0x375A, 1, 17, 0x7DA, 0x960, 0x3, EffectLayer.Waist);
                Caster.PlaySound(0x51A);

                OnCastSuccessful(Caster);

                // BeginConfidence
                Timer t = (Timer)m_Table[Caster];

                if (t != null)
                {
                    t.Stop();
                }

                m_Table[Caster] = t = Timer.DelayCall(TimeSpan.FromSeconds(15.0), new TimerStateCallback(Expire_Callback), Caster);

                // BeginRegenerating
                Timer regen = (Timer)m_RegenTable[Caster];

                if (regen != null)
                {
                    regen.Stop();
                }

                m_RegenTable[Caster] = regen = new RegenTimer(Caster);

                regen.Start();
            }

            FinishSequence();
        }
Beispiel #8
0
        public override void OnCast()
        {
            if ( CheckSequence() )
            {
                Caster.SendLocalizedMessage( 1063115 ); // You exude confidence.

                Caster.FixedParticles( 0x375A, 1, 17, 0x7DA, 0x960, 0x3, EffectLayer.Waist );
                Caster.PlaySound( 0x51A );

                OnCastSuccessful( Caster );

                // BeginConfidence
                Timer t = (Timer) m_Table[Caster];

                if ( t != null )
                    t.Stop();

                m_Table[Caster] = t = Timer.DelayCall( TimeSpan.FromSeconds( 15.0 ), new TimerStateCallback( Expire_Callback ), Caster );

                // BeginRegenerating
                Timer regen = (Timer) m_RegenTable[Caster];

                if ( regen != null )
                    regen.Stop();

                m_RegenTable[Caster] = regen = new RegenTimer( Caster );

                regen.Start();
            }

            FinishSequence();
        }