Ejemplo n.º 1
0
        public void Target(Mobile m)
        {
            if (!Caster.CanSee(m))
            {
                Caster.SendLocalizedMessage(500237); // Target can not be seen.
            }
            else if (CheckSequence())
            {
                SpellHelper.Turn(Caster, m);

                StopTimer(m);

                TimeSpan duration = TimeSpan.FromSeconds(0);

                m_ExaltationTable[m] = (int)(10 + ((Caster.Skills[CastSkill].Value + Caster.Skills[DamageSkill].Value) / 6) + Utility.Random(1, 12));

                Timer t = new ExaltationTimer(m, DateTime.Now + duration);
                m_Timers[m] = t;
                t.Start();

                Effects.SendTargetParticles(m, 14265, 10, 15, 5013, 0, 0, EffectLayer.CenterFeet); //ID, speed, dura, effect, hue, render, layer
                m.PlaySound(534);
            }

            FinishSequence();
        }
Ejemplo n.º 2
0
        public void Target(Mobile m)
        {
            if (!Caster.CanSee(m))
            {
                Caster.SendLocalizedMessage(500237); // Target can not be seen.
            }
            else if (Caster == m)
            {
                Caster.SendMessage("La cible ne peut pas etre l'utilisateur du miracle !");
            }
            else if (CheckSequence())
            {
                SpellHelper.Turn(Caster, m);

                Timer a = (Timer)m_Timers[m];

                if (a != null)
                {
                    StopTimer(m);
                }
                else
                {
                    TimeSpan duration = TimeSpan.FromSeconds(0);

                    StopTimer(m);

                    ExaltationInfo info = new ExaltationInfo(Caster, 0.1 + (double)((Caster.Skills[CastSkill].Value + Caster.Skills[DamageSkill].Value) / 400));

                    m_ExaltationTable[m] = info;

                    Timer t = new ExaltationTimer(m, DateTime.Now + duration);
                    m_Timers[m] = t;
                    t.Start();
                }

                Effects.SendTargetParticles(m, 8902, 10, 15, 5013, 1437, 0, EffectLayer.CenterFeet); //ID, speed, dura, effect, hue, render, layer
                m.PlaySound(493);
            }

            FinishSequence();
        }