Exemplo n.º 1
0
        public void BeginSavageDance()
        {
            if (Map == null)
            {
                return;
            }

            ArrayList         list  = new ArrayList();
            IPooledEnumerable eable = GetMobilesInRange(8);

            foreach (Mobile m in eable)
            {
                if (m != this && m is SavageShaman)
                {
                    list.Add(m);
                }
            }
            eable.Free();

            Animate(111, 5, 1, true, false, 0); // Do a little dance...

            if (AIObject != null)
            {
                AIObject.NextMove = Core.TickCount + 1000;
            }

            if (list.Count >= 3)
            {
                for (int i = 0; i < list.Count; ++i)
                {
                    SavageShaman dancer = (SavageShaman)list[i];

                    dancer.Animate(111, 5, 1, true, false, 0); // Get down tonight...

                    if (dancer.AIObject != null)
                    {
                        dancer.AIObject.NextMove = Core.TickCount + 1000;
                    }
                }

                Timer.DelayCall(TimeSpan.FromSeconds(1.0), EndSavageDance);
            }
        }
Exemplo n.º 2
0
        public void BeginSavageDance()
        {
            if (this.Map == null)
            {
                return;
            }

            ArrayList list = new ArrayList();

            foreach (Mobile m in this.GetMobilesInRange(8))
            {
                if (m != this && m is SavageShaman)
                {
                    list.Add(m);
                }
            }

            Animate(111, 5, 1, true, false, 0);               // Do a little dance...

            if (AIObject != null)
            {
                AIObject.NextMove = DateTime.Now + TimeSpan.FromSeconds(1.0);
            }

            if (list.Count >= 3)
            {
                for (int i = 0; i < list.Count; ++i)
                {
                    SavageShaman dancer = (SavageShaman)list[i];

                    dancer.Animate(111, 5, 1, true, false, 0);                       // Get down tonight...

                    if (dancer.AIObject != null)
                    {
                        dancer.AIObject.NextMove = DateTime.Now + TimeSpan.FromSeconds(1.0);
                    }
                }

                Timer.DelayCall(TimeSpan.FromSeconds(1.0), new TimerCallback(EndSavageDance));
            }
        }
Exemplo n.º 3
0
        public void BeginSavageDance()
        {
            if (Map == null)
            {
                return;
            }

            List <SavageShaman> list = new List <SavageShaman>();

            foreach (Mobile m in GetMobilesInRange(8))
            {
                if (m != this && m is SavageShaman ss)
                {
                    list.Add(ss);
                }
            }

            Animate(111, 5, 1, true, false, 0); // Do a little dance...

            if (AIObject != null)
            {
                AIObject.NextMove = Core.TickCount + 1000;
            }

            if (list.Count >= 3)
            {
                for (int i = 0; i < list.Count; ++i)
                {
                    SavageShaman dancer = list[i];

                    dancer.Animate(111, 5, 1, true, false, 0); // Get down tonight...

                    if (dancer.AIObject != null)
                    {
                        dancer.AIObject.NextMove = Core.TickCount + 1000;
                    }
                }

                Timer.DelayCall(TimeSpan.FromSeconds(1.0), EndSavageDance);
            }
        }
Exemplo n.º 4
0
 public BandageTimer( SavageShaman o )
     : base(TimeSpan.FromSeconds( 15 ))
 {
     savage = o;
        Priority = TimerPriority.OneSecond;
 }
Exemplo n.º 5
0
 public BandageTimer(SavageShaman o) : base(TimeSpan.FromSeconds(15))
 {
     savage   = o;
     Priority = TimerPriority.OneSecond;
 }