Esempio n. 1
0
        public void Target(Mobile m)
        {
            if (!Caster.CanSee(m))
            {
                Caster.SendLocalizedMessage(500237); // Target can not be seen.
            }
            else if (Caster == m)
            {
                Caster.SendMessage("Vous ne pouvez pas vous cibler !");
            }
            else if (CheckSequence())
            {
                SpellHelper.Turn(Caster, m);

                StopTimer(m);

                TimeSpan duration = TimeSpan.FromSeconds(0);

                m_SauvegardeTable[m] = Caster;

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

                ReligiousSpell.MiracleEffet(Caster, m, 14138, 10, 15, 5013, 0, 0, EffectLayer.CenterFeet);

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

            FinishSequence();
        }
        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_FortificationDivineTable[m] = Caster;

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

                ReligiousSpell.MiracleEffet(m, m, 14186, 10, 15, 5014, 0, 0, EffectLayer.Waist);
                m.PlaySound(490);
            }

            FinishSequence();
        }
Esempio n. 3
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_FougueCelesteTable[m] = 0.02 + ((Caster.Skills[CastSkill].Value + Caster.Skills[DamageSkill].Value) / 4000); //2 à 7% par joueur.

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

                ReligiousSpell.MiracleEffet(m, m, 14154, 10, 15, 5013, 0, 0, EffectLayer.CenterFeet);
                m.PlaySound(501);
            }

            FinishSequence();
        }
            protected override void OnTick()
            {
                if ((DateTime.Now >= endtime && BouclierSpell.m_BouclierTable.Contains(m_target)) || m_target == null || m_target.Deleted || !m_target.Alive)
                {
                    BouclierSpell.m_BouclierTable.Remove(m_target);
                    BouclierSpell.m_Timers.Remove(m_target);

                    ReligiousSpell.MiracleEffet(m_target, m_target, 14186, 10, 15, 5014, 0, 0, EffectLayer.Waist);
                    m_target.PlaySound(490);

                    Stop();
                }
            }
Esempio n. 5
0
            protected override void OnTick()
            {
                if ((DateTime.Now >= endtime && HautePrecisionSpell.m_HautePrecisionTable.Contains(m_target)) || m_target == null || m_target.Deleted || !m_target.Alive)
                {
                    HautePrecisionSpell.m_HautePrecisionTable.Remove(m_target);
                    HautePrecisionSpell.m_Timers.Remove(m_target);

                    ReligiousSpell.MiracleEffet(m_target, m_target, 14154, 10, 15, 5013, 0, 0, EffectLayer.CenterFeet);
                    m_target.PlaySound(501);

                    Stop();
                }
            }
Esempio n. 6
0
        public void StopTimer(Mobile m)
        {
            Timer t = (Timer)m_Timers[m];

            if (t != null)
            {
                t.Stop();
                m_Timers.Remove(m);
                m_FougueCelesteTable.Remove(m);

                ReligiousSpell.MiracleEffet(m, m, 14154, 10, 15, 5013, 0, 0, EffectLayer.CenterFeet);
                m.PlaySound(501);
            }
        }
Esempio n. 7
0
        public static void Heal(Mobile from, int amount, bool message, bool miracle)
        {
            int toheal = amount;

            toheal = (int)(toheal * (double)RegenerescenceSpell.m_RegenerescenceTable[from]);

            if (miracle)
            {
                ReligiousSpell.MiracleEffet(from, from, 14217, 10, 20, 5013, 0, 0, EffectLayer.CenterFeet);
            }
            else
            {
                Effects.SendTargetParticles(from, 14217, 10, 20, 5013, 2042, 0, EffectLayer.CenterFeet); //ID, speed, dura, effect, hue, render, layer
            }
            from.PlaySound(508);

            from.Heal(toheal);
        }