SendBoltEffect() публичный статический Метод

public static SendBoltEffect ( IEntity e ) : void
e IEntity
Результат void
Пример #1
0
        /* Echo Strike
         * The Dark Knight teleports to one of the platforms in
         * the room, and calls down lightning several times to
         * strike you or your pets. The lightning is slightly
         * displaced, allowing you a chance to escape, or even
         * give him a taste of his own medicine.
         */

        public static void EchoStrike(Mobile from, int min, int max)
        {
            from.Paralyze(TimeSpan.FromSeconds(1));
            from.Animate(17, 5, 1, true, false, 0);

            List <Mobile>     mobiles = new List <Mobile>();
            Point3D           point;
            IPooledEnumerable eable = from.GetMobilesInRange(14);

            foreach (Mobile m in eable)
            {
                if (m != from && CanTarget(from, m, true, false, false))
                {
                    mobiles.Add(m);
                }
            }
            eable.Free();

            for (int i = 0; i < mobiles.Count; i++)
            {
                Mobile m = mobiles[i];

                if (Utility.Random(5) == 0)
                {
                    Effects.SendBoltEffect(m);
                    AOS.Damage(m, from, Utility.RandomMinMax(min, max), 0, 0, 0, 0, 100);
                    m.SendMessage("You get hit by a lightning bolt");
                }
                else
                {
                    point = RandomCloseLocation(from, 1);

                    if (from.Location == point)
                    {
                        AOS.Damage(from, from, Utility.RandomMinMax(min, max), 0, 0, 0, 0, 100);
                        Effects.SendBoltEffect(from);
                    }
                    else
                    {
                        Effects.SendBoltEffect(new Entity(Serial.Zero, point, from.Map));
                    }
                }
            }
        }
Пример #2
0
 public static void SendBoltEffect(IEntity e, bool sound)
 {
     Effects.SendBoltEffect(e, sound, 0);
 }
Пример #3
0
 public static void SendBoltEffect(IEntity e)
 {
     Effects.SendBoltEffect(e, true, 0);
 }