public void Target(NaturalFire item)
        {
            if (!Caster.CanSee(item))
            {
                Caster.SendLocalizedMessage(500237); // Target can not be seen.
            }

            else if (CheckSequence())
            {
                SpellHelper.Turn(Caster, item);

                Point3D loc = item.GetWorldLocation();


                Effects.PlaySound(loc, item.Map, 0x11);
                IEntity to   = new Entity(Serial.Zero, new Point3D(Caster.X, Caster.Y, Caster.Z), Caster.Map);
                IEntity from = new Entity(Serial.Zero, new Point3D(Caster.X, Caster.Y, Caster.Z + 50), Caster.Map);
                Effects.SendMovingParticles(from, to, 0x376A, 1, 0, false, false, 33, 3, 1263, 1, 0, EffectLayer.Head, 0x100);


                item.Delete();
                Caster.SendMessage("You douse the flames!");
            }

            FinishSequence();
        }
        public void Target(IPoint3D p)
        {
            if (!Caster.CanSee(p))
            {
                Caster.SendLocalizedMessage(500237); // Target can not be seen.
            }
            else if (SpellHelper.CheckTown(p, Caster) && CheckSequence())
            {
                SpellHelper.Turn(Caster, p);

                SpellHelper.GetSurfaceTop(ref p);

                Effects.PlaySound(p, Caster.Map, 0x1DD);

                IEntity to = new Entity(Serial.Zero, new Point3D(p), Caster.Map);
                Effects.SendMovingParticles(Caster, to, 0xf53, 1, 0, false, false, 33, 3, 1260, 1, 0, EffectLayer.Head, 0x100);

                Point3D loc = new Point3D(p.X, p.Y, p.Z);

                NaturalFire fire = new NaturalFire(Caster.Location, Caster.Map, Caster);
                fire.MoveToWorld(loc, Caster.Map);
            }

            FinishSequence();
        }
Example #3
0
        public void Target(NaturalFire item)
        {
            if (!Caster.CanSee(item))
            {
                Caster.SendLocalizedMessage(500237); // Target can not be seen.
            }

            else if (CheckSequence())
            {
                SpellHelper.Turn(Caster, item);

                Point3D loc = item.GetWorldLocation();

                Effects.PlaySound(loc, item.Map, 0x11);
                IEntity to = new Entity(Serial.Zero, new Point3D(Caster.X, Caster.Y, Caster.Z), Caster.Map);
                IEntity from = new Entity(Serial.Zero, new Point3D(Caster.X, Caster.Y, Caster.Z + 50), Caster.Map);
                Effects.SendMovingParticles(from, to, 0x376A, 1, 0, false, false, 33, 3, 1263, 1, 0, EffectLayer.Head, 0x100);

                item.Delete();
                Caster.SendMessage("You douse the flames!");
            }

            FinishSequence();
        }
Example #4
0
 public InternalTimer(NaturalFire item, TimeSpan duration)
     : base(duration)
 {
     m_Item = item;
 }
Example #5
0
        public void Target(IPoint3D p)
        {
            if (!Caster.CanSee(p))
            {
                Caster.SendLocalizedMessage(500237); // Target can not be seen.
            }
            else if (SpellHelper.CheckTown(p, Caster) && CheckSequence())
            {

                SpellHelper.Turn(Caster, p);

                SpellHelper.GetSurfaceTop(ref p);

                Effects.PlaySound(p, Caster.Map, 0x1DD);

                IEntity to = new Entity(Serial.Zero, new Point3D(p), Caster.Map);
                Effects.SendMovingParticles(Caster, to, 0xf53, 1, 0, false, false, 33, 3, 1260, 1, 0, EffectLayer.Head, 0x100);

                Point3D loc = new Point3D(p.X, p.Y, p.Z);

                NaturalFire fire = new NaturalFire(Caster.Location, Caster.Map, Caster);
                fire.MoveToWorld(loc, Caster.Map);
            }

            FinishSequence();
        }
 public InternalTimer(NaturalFire item, TimeSpan duration)
     : base(duration)
 {
     m_Item = item;
 }