public void SpawnOphidians()
        {
            BaseCreature spawna = new OphidianEnforcer();

            spawna.MoveToWorld(Location, Map);

            BaseCreature spawnb = new OphidianShaman();

            spawnb.MoveToWorld(Location, Map);

            BaseCreature spawnc = new OphidianWarrior();

            spawnc.MoveToWorld(Location, Map);

            BaseCreature spawnd = new OphidianZealot();

            spawnd.MoveToWorld(Location, Map);
        }
예제 #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 OphidianShaman)
                {
                    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)
                {
                    OphidianShaman dancer = (OphidianShaman)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));
            }
        }