Пример #1
0
            protected override void OnTick()
            {
                if (m_Item.Deleted)
                {
                    return;
                }

                Mobile spawn;

                spawn = new Hatchling();

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

                m_Item.Delete();
            }
Пример #2
0
            protected override void OnTick()
            {
                if (m_Item.Deleted)
                {
                    return;
                }

                Mobile spawn;
                Mobile spawn2;
                Mobile spawn3;

                switch (Utility.Random(1))
                {
                default:
                case 0: spawn = new Hatchling(); spawn2 = new Hatchling(); spawn3 = new Hatchling(); break;
                }

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

                m_Item.Delete();
            }