Beispiel #1
0
            protected override void OnTick()
            {
                if (m_Item.Deleted)
                {
                    return;
                }

                if (m_Item.Summoner != null && !m_Item.Summoner.Deleted)
                {
                    EarthElemental spawn = new EarthElemental();
                    spawn.MoveToWorld(m_Item.Location, m_Item.Map);
                    m_Item.Summoner.Summons.Add(spawn);
                }

                m_Item.Delete();
            }
Beispiel #2
0
            protected override void OnTick()
            {
                if (m_Item.Deleted)
                {
                    return;
                }

                Mobile spawn;

                switch (Utility.Random(2))
                {
                default:
                case 0: spawn = new EarthElemental(); break;

                case 1: spawn = new EarthElemental(); break;
                }

                spawn.MoveToWorld(m_Item.Location, m_Item.Map);

                m_Item.Delete();
            }