Ejemplo n.º 1
0
        public void CreateVendor(TownIDValue town, Point3D location, Map map, TownVendorType vendorType, int vendorCount, int spawnRange, int homeRange)
        {
            XmlSpawner xmlSpawner = null;

            switch (vendorType)
            {
            case TownVendorType.Banker: xmlSpawner = new XmlSpawner(new List <string> {
                    "Banker"
                }, new List <int> {
                    vendorCount
                }); break;
            }

            if (xmlSpawner == null)
            {
                return;
            }

            xmlSpawner.MoveToWorld(location, map);
            xmlSpawner.SpawnRange = spawnRange;
            xmlSpawner.HomeRange  = homeRange;
            xmlSpawner.MaxCount   = vendorCount;

            xmlSpawner.SmartRespawn();
        }
Ejemplo n.º 2
0
        private static void GenQuest_Command(CommandEventArgs e)
        {
            e.Mobile.SendMessage("Creating Mad Scientist Quest...");

            foreach (SutekIngredientInfo def in m_Ingredients)
            {
                WeakEntityCollection.Add("sa", new SutekIngredientItem(def));
            }

            XmlSpawner sp = new XmlSpawner("Sutek");

            sp.SpawnRange = 5;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(917, 594, -14), Map.TerMur);
            sp.Respawn();
            WeakEntityCollection.Add("sa", sp);

            List <Item> toDelete = new List <Item>(World.Items.Values.Where(i => i is XmlSpawner && (i.Name == "PerfectTimingSpawner" || i.Name == "PerfectTimingSpawner2")));

            foreach (var item in toDelete)
            {
                item.Delete();
            }

            e.Mobile.SendMessage("Generation completed, deleted {0} spawners!", toDelete.Count);
            ColUtility.Free(toDelete);
        }
Ejemplo n.º 3
0
            public XmlSpawner CreateSpawner()
            {
                XmlSpawner spawner = new XmlSpawner(m_Amount, (int)m_MinDelay.TotalSeconds, (int)m_MaxDelay.TotalSeconds, 0, 20, 10, m_Creature);

                spawner.MoveToWorld(this.Location, this.Map);

                return(spawner);
            }
Ejemplo n.º 4
0
        public static void Generate(CommandEventArgs e)
        {
            Delete(e);

            Point3D[] list = Siege.SiegeShard ? GetMalasPoints() : GetTramPoints();
            Map       map  = Siege.SiegeShard ? Map.Malas : Map.Trammel;

            Item item = new tent_whiteAddon();

            WeakEntityCollection.Add(EntityName, item);
            item.MoveToWorld(list[0], map);

            item = new tent_brownAddon();
            WeakEntityCollection.Add(EntityName, item);
            item.MoveToWorld(list[1], map);

            Mobile mob = new CasinoCashier();

            WeakEntityCollection.Add(EntityName, mob);
            mob.MoveToWorld(list[2], map);

            mob = new CasinoCashier();
            WeakEntityCollection.Add(EntityName, mob);
            mob.MoveToWorld(list[3], map);

            mob = new CasinoCashier();
            WeakEntityCollection.Add(EntityName, mob);
            mob.MoveToWorld(list[4], map);

            mob = new ChucklesLuckDealer();
            WeakEntityCollection.Add(EntityName, mob);
            mob.MoveToWorld(list[5], map);

            mob = new HiMiddleLowDealer();
            WeakEntityCollection.Add(EntityName, mob);
            mob.MoveToWorld(list[6], map);

            mob = new DiceRiderDealer();
            WeakEntityCollection.Add(EntityName, mob);
            mob.MoveToWorld(list[7], map);

            var xmlspawner = new XmlSpawner(8, 1, 2, 0, 25, "CasinoWaitress");

            WeakEntityCollection.Add(EntityName, xmlspawner);
            xmlspawner.MoveToWorld(list[8], map);
            xmlspawner.MaxCount   = 8;
            xmlspawner.SpawnRange = 25;
            xmlspawner.SpawnRange = 25;
            xmlspawner.DoRespawn  = true;

            e.Mobile.SendMessage("Fortune Fire Casino Generated in {0}!", map);
        }
Ejemplo n.º 5
0
        public static void Generate(Mobile m)
        {
            if (Map.Malas.FindItem <XmlSpawner>(new Point3D(1821, 1797, -110)) == null)
            {
                XmlSpawner sp = new XmlSpawner("Sphynx");
                sp.SpawnRange = 10;
                sp.HomeRange  = 15;
                sp.MoveToWorld(new Point3D(1821, 1797, -110), Map.Malas);
                sp.Respawn();
            }

            if (Map.Malas.FindItem <AncientWall>(new Point3D(1824, 1783, -110)) == null)
            {
                Item item = new AncientWall();
                item.MoveToWorld(new Point3D(1824, 1783, -110), Map.Malas);
            }

            if (m != null)
            {
                m.SendMessage("Forgotten Pyramid generation complete.");
            }
        }
Ejemplo n.º 6
0
        private static void AddRegSpawner(int x, int y, int z)
        {
            if (0.00174 < Utility.RandomDouble())
            {
                return;
            }

            if (!m_Map.CanFit(x, y, z, 1, false, false))
            {
                return;
            }

            XmlSpawner spawner = new XmlSpawner(MaxSpawnsPerReagent, 3, 7, 0, 0, 50, "Nightshade");

            spawner.SpawnObjects[0].SpawnsPerTick = RegSpawnsPerTick;

            spawner.StackAmount  = Utility.Random(MinRegStackAmount, MaxRegStackAmount);
            spawner.SpawnObjects = spawnRegs;
            spawner.Name         = "Eni's Reagent Spawner #" + m_Count;
            spawner.MoveToWorld(new Point3D(x, y, z), Map.Felucca);
            spawner.MaxCount = MaxRegNodeSpawns;

            ++m_Count;
        }
Ejemplo n.º 7
0
        private void Setup()
        {
            Static s;

            for (int i = 0; i < 9; i++)
            {
                s = new Static(2931);
                s.MoveToWorld(new Point3D(748 + i, 2136, 0), Map.Trammel);

                s = new Static(2928);
                s.MoveToWorld(new Point3D(748 + i, 2137, 0), Map.Trammel);

                s = new Static(2931);
                s.MoveToWorld(new Point3D(748 + i, 2136, 0), Map.Felucca);

                s = new Static(2928);
                s.MoveToWorld(new Point3D(748 + i, 2137, 0), Map.Felucca);
            }

            HuntingDisplayTrophy trophy = new HuntingDisplayTrophy(HuntType.GrizzlyBear);

            trophy.MoveToWorld(new Point3D(748, 2137, 6), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.GrizzlyBear);
            trophy.MoveToWorld(new Point3D(748, 2137, 6), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.GrayWolf);
            trophy.MoveToWorld(new Point3D(751, 2137, 6), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.GrayWolf);
            trophy.MoveToWorld(new Point3D(751, 2137, 6), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Cougar);
            trophy.MoveToWorld(new Point3D(753, 2137, 6), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Cougar);
            trophy.MoveToWorld(new Point3D(753, 2137, 6), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Turkey);
            trophy.MoveToWorld(new Point3D(756, 2137, 6), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Turkey);
            trophy.MoveToWorld(new Point3D(756, 2137, 6), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Bull);
            trophy.MoveToWorld(new Point3D(748, 2136, 2), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Bull);
            trophy.MoveToWorld(new Point3D(748, 2136, 2), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Boar);
            trophy.MoveToWorld(new Point3D(750, 2136, 2), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Boar);
            trophy.MoveToWorld(new Point3D(750, 2136, 2), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Walrus);
            trophy.MoveToWorld(new Point3D(752, 2136, 2), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Walrus);
            trophy.MoveToWorld(new Point3D(752, 2136, 2), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Alligator);
            trophy.MoveToWorld(new Point3D(754, 2136, 2), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Alligator);
            trophy.MoveToWorld(new Point3D(754, 2136, 2), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Eagle);
            trophy.MoveToWorld(new Point3D(756, 2136, 3), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Eagle);
            trophy.MoveToWorld(new Point3D(756, 2136, 3), Map.Trammel);

            XmlSpawner spawner = new XmlSpawner("HuntMaster");

            spawner.MoveToWorld(new Point3D(747, 2148, 0), Map.Felucca);
            spawner.DoRespawn = true;

            spawner = new XmlSpawner("HuntMaster");
            spawner.MoveToWorld(new Point3D(747, 2148, 0), Map.Trammel);
            spawner.DoRespawn = true;
        }
Ejemplo n.º 8
0
        public static void GenerateDeco(CommandEventArgs e)
        {
            string name = "highseas";

            CharydbisSpawner.GenerateCharydbisSpawner();
            BountyQuestSpawner.GenerateShipSpawner();

            CorgulAltar altar;

            altar = new CorgulAltar();
            altar.MoveToWorld(new Point3D(2453, 865, 0), Map.Felucca);
            WeakEntityCollection.Add(name, altar);

            altar = new CorgulAltar();
            altar.MoveToWorld(new Point3D(2453, 865, 0), Map.Trammel);
            WeakEntityCollection.Add(name, altar);

            ProfessionalBountyBoard board;

            board = new ProfessionalBountyBoard();
            board.MoveToWorld(new Point3D(4544, 2298, -1), Map.Trammel);
            WeakEntityCollection.Add(name, board);

            board = new ProfessionalBountyBoard();
            board.MoveToWorld(new Point3D(4544, 2298, -1), Map.Felucca);
            WeakEntityCollection.Add(name, board);

            LocalizedSign sign;

            sign = new LocalizedSign(3025, 1152653); //The port of Zento Parking Area
            sign.MoveToWorld(new Point3D(713, 1359, 53), Map.Tokuno);
            WeakEntityCollection.Add(name, sign);

            sign = new LocalizedSign(3023, 1149821); //Winds Tavern
            sign.MoveToWorld(new Point3D(4548, 2300, -6), Map.Trammel);
            WeakEntityCollection.Add(name, sign);

            sign = new LocalizedSign(3023, 1149821); //Winds Tavern
            sign.MoveToWorld(new Point3D(4548, 2300, -6), Map.Felucca);
            WeakEntityCollection.Add(name, sign);

            sign = new LocalizedSign(3023, 1149820); //General Store
            sign.MoveToWorld(new Point3D(4543, 2317, -3), Map.Trammel);
            WeakEntityCollection.Add(name, sign);

            sign = new LocalizedSign(3023, 1149820); //General Store
            sign.MoveToWorld(new Point3D(4543, 2317, -3), Map.Felucca);
            WeakEntityCollection.Add(name, sign);

            XmlSpawner sp;
            string     toSpawn = "FishMonger";

            //Britain
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(1482, 1754, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(1482, 1754, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Moonglow
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(4406, 1049, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(4406, 1049, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Trinsic
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(2061, 2855, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(2061, 2855, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Vesper
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(3009, 826, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(3009, 826, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Jhelom
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(1373, 3885, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(1373, 3885, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Skara Brae
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(641, 2234, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn);
            sp.MoveToWorld(new Point3D(641, 2234, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Papua
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(5827, 3258, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(5827, 3258, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Floating Eproriam
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 0,
                HomeRange  = 0
            };
            sp.MoveToWorld(new Point3D(4552, 2299, -1), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 0,
                HomeRange  = 0
            };
            sp.MoveToWorld(new Point3D(4540, 2321, -1), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            toSpawn = "DocksAlchemist";

            //Britain
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(1482, 1754, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(1482, 1754, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Moonglow
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(4406, 1049, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(4406, 1049, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Trinsic
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(2061, 2855, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(2061, 2855, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Vesper
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(3009, 826, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(3009, 826, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Jhelom
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(1373, 3885, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(1373, 3885, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Skara Brae
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(641, 2234, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn);
            sp.MoveToWorld(new Point3D(641, 2234, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Papua
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(5827, 3258, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(5827, 3258, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            //Floating Eproriam
            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(4552, 2299, -1), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(4540, 2321, -1), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            toSpawn = "GBBigglesby";

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(4544, 2302, -1), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(4544, 2302, -1), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            toSpawn = "GBBigglesby/Name/Mitsubishi/Title/the fleet officer";

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 10
            };
            sp.MoveToWorld(new Point3D(713, 1370, 6), Map.Tokuno);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            toSpawn = "BoatPainter";

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 15
            };
            sp.MoveToWorld(new Point3D(4552, 2337, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 15
            };
            sp.MoveToWorld(new Point3D(4552, 2337, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            toSpawn = "Banker";

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(4554, 2315, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(4554, 2315, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            toSpawn = "CrabFisher";

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 15
            };
            sp.MoveToWorld(new Point3D(4552, 2336, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 15
            };
            sp.MoveToWorld(new Point3D(4552, 2336, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 15
            };
            sp.MoveToWorld(new Point3D(4552, 2378, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 15
            };
            sp.MoveToWorld(new Point3D(4552, 2378, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            toSpawn = "DockMaster";

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 10
            };
            sp.MoveToWorld(new Point3D(4565, 2307, -2), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 10
            };
            sp.MoveToWorld(new Point3D(4565, 2307, -2), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            toSpawn = "SeaMarketTavernKeeper";

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(4544, 2302, -1), Map.Trammel);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            sp = new XmlSpawner(toSpawn)
            {
                SpawnRange = 1,
                HomeRange  = 5
            };
            sp.MoveToWorld(new Point3D(4544, 2302, -1), Map.Felucca);
            sp.Respawn();
            WeakEntityCollection.Add(name, sp);

            SeaMarketBuoy bouy1 = new SeaMarketBuoy();
            SeaMarketBuoy bouy2 = new SeaMarketBuoy();
            SeaMarketBuoy bouy3 = new SeaMarketBuoy();
            SeaMarketBuoy bouy4 = new SeaMarketBuoy();
            SeaMarketBuoy bouy5 = new SeaMarketBuoy();
            SeaMarketBuoy bouy6 = new SeaMarketBuoy();
            SeaMarketBuoy bouy7 = new SeaMarketBuoy();
            SeaMarketBuoy bouy8 = new SeaMarketBuoy();

            Rectangle2D bound = Regions.SeaMarketRegion.Bounds[0];

            bouy1.MoveToWorld(new Point3D(bound.X, bound.Y, -5), Map.Felucca);
            bouy2.MoveToWorld(new Point3D(bound.X, bound.Y, -5), Map.Trammel);
            WeakEntityCollection.Add(name, bouy1);
            WeakEntityCollection.Add(name, bouy2);

            bouy3.MoveToWorld(new Point3D(bound.X + bound.Width, bound.Y, -5), Map.Felucca);
            bouy4.MoveToWorld(new Point3D(bound.X + bound.Width, bound.Y, -5), Map.Trammel);
            WeakEntityCollection.Add(name, bouy3);
            WeakEntityCollection.Add(name, bouy4);

            bouy5.MoveToWorld(new Point3D(bound.X + bound.Width, bound.Y + bound.Height, -5), Map.Felucca);
            bouy6.MoveToWorld(new Point3D(bound.X + bound.Width, bound.Y + bound.Height, -5), Map.Trammel);
            WeakEntityCollection.Add(name, bouy5);
            WeakEntityCollection.Add(name, bouy6);

            bouy7.MoveToWorld(new Point3D(bound.X, bound.Y + bound.Height, -5), Map.Felucca);
            bouy8.MoveToWorld(new Point3D(bound.X, bound.Y + bound.Height, -5), Map.Trammel);
            WeakEntityCollection.Add(name, bouy7);
            WeakEntityCollection.Add(name, bouy8);

            Console.WriteLine("High Seas Content generated.");
        }
Ejemplo n.º 9
0
        public static void Generate()
        {
            Map map = Map.TerMur;
            int z   = -19;

            Static s = new Static(40142);

            s.MoveToWorld(new Point3D(888, 2303, z), map);

            s = new Static(40142);
            s.MoveToWorld(new Point3D(889, 2304, z), map);

            s = new Static(40142);
            s.MoveToWorld(new Point3D(896, 2295, z), map);

            s = new Static(40142);
            s.MoveToWorld(new Point3D(897, 2296, z), map);

            s = new Static(40142);
            s.MoveToWorld(new Point3D(904, 2303, z), map);

            s = new Static(40142);
            s.MoveToWorld(new Point3D(905, 2304, z), map);

            s = new Static(40142);
            s.MoveToWorld(new Point3D(896, 2311, z), map);

            s = new Static(40142);
            s.MoveToWorld(new Point3D(897, 2312, z), map);

            s = new Static(40169);
            s.MoveToWorld(new Point3D(887, 2304, z), map);

            s = new Static(40169);
            s.MoveToWorld(new Point3D(888, 2305, z), map);

            s = new Static(40169);
            s.MoveToWorld(new Point3D(895, 2296, z), map);

            s = new Static(40169);
            s.MoveToWorld(new Point3D(896, 2297, z), map);

            s = new Static(40169);
            s.MoveToWorld(new Point3D(903, 2304, z), map);

            s = new Static(40169);
            s.MoveToWorld(new Point3D(904, 2305, z), map);

            s = new Static(40169);
            s.MoveToWorld(new Point3D(895, 2312, z), map);

            s = new Static(40169);
            s.MoveToWorld(new Point3D(896, 2313, z), map);

            z = -20;

            s = new Static(40161);
            s.MoveToWorld(new Point3D(897, 2305, z), map);

            s = new Static(40165);
            s.MoveToWorld(new Point3D(894, 2306, z), map);

            MoonstonePowerGeneratorAddon addon = new MoonstonePowerGeneratorAddon(true);

            addon.MoveToWorld(new Point3D(884, 2292, z), map);

            addon = new MoonstonePowerGeneratorAddon(true);
            addon.MoveToWorld(new Point3D(896, 2286, z), map);

            addon = new MoonstonePowerGeneratorAddon(true);
            addon.MoveToWorld(new Point3D(909, 2291, z), map);

            addon = new MoonstonePowerGeneratorAddon(true);
            addon.MoveToWorld(new Point3D(914, 2305, z), map);

            addon = new MoonstonePowerGeneratorAddon(true);
            addon.MoveToWorld(new Point3D(909, 2318, z), map);

            addon = new MoonstonePowerGeneratorAddon(true);
            addon.MoveToWorld(new Point3D(896, 2323, z), map);

            addon = new MoonstonePowerGeneratorAddon(true);
            addon.MoveToWorld(new Point3D(884, 2316, z), map);

            addon = new MoonstonePowerGeneratorAddon(true);
            addon.MoveToWorld(new Point3D(878, 2304, z), map);

            MyrmidexIdol idol = new MyrmidexIdol();

            idol.MoveToWorld(new Point3D(488, 1856, 111), map);

            Teleporter teleporter = new Teleporter(new Point3D(487, 1857, 95), map);

            teleporter.MoveToWorld(new Point3D(896, 2304, 45), map);

            teleporter = new MyrmidexQueenTeleporter(new Point3D(711, 2302, 0), map);
            teleporter.MoveToWorld(new Point3D(121, 1682, -3), map);

            teleporter = new MyrmidexQueenTeleporter(new Point3D(711, 2303, 0), Map.TerMur);
            teleporter.MoveToWorld(new Point3D(121, 1683, -2), map);

            teleporter = new MyrmidexQueenTeleporter(new Point3D(711, 2304, 0), Map.TerMur);
            teleporter.MoveToWorld(new Point3D(121, 1684, -1), map);

            teleporter = new Teleporter(new Point3D(120, 1682, -1), map);
            teleporter.MoveToWorld(new Point3D(711, 2302, 0), map);

            teleporter = new Teleporter(new Point3D(120, 1683, 1), map);
            teleporter.MoveToWorld(new Point3D(711, 2303, 0), map);

            teleporter = new Teleporter(new Point3D(120, 1684, 2), map);
            teleporter.MoveToWorld(new Point3D(711, 2304, 0), map);

            teleporter = new Teleporter(new Point3D(120, 1684, 2), map);
            teleporter.MoveToWorld(new Point3D(711, 2305, 0), map);

            teleporter = new MyrmidexPitTeleporter(Allegiance.Myrmidex, new Point3D(985, 1883, 0), map);
            teleporter.MoveToWorld(new Point3D(176, 1835, 90), map);

            teleporter = new MyrmidexPitTeleporter(Allegiance.Myrmidex, new Point3D(986, 1883, 0), map);
            teleporter.MoveToWorld(new Point3D(177, 1835, 90), map);

            teleporter = new Teleporter(new Point3D(176, 1834, 90), map);
            teleporter.MoveToWorld(new Point3D(985, 1887, 0), map);

            teleporter = new Teleporter(new Point3D(177, 1834, 90), map);
            teleporter.MoveToWorld(new Point3D(986, 1887, 0), map);

            teleporter = new MyrmidexPitTeleporter(Allegiance.Tribes, new Point3D(853, 1777, 0), map);
            teleporter.MoveToWorld(new Point3D(224, 1724, 6), map);

            teleporter = new MyrmidexPitTeleporter(Allegiance.Tribes, new Point3D(854, 1777, 0), map);
            teleporter.MoveToWorld(new Point3D(224, 1725, 6), map);

            teleporter = new Teleporter(new Point3D(225, 1724, 6), map);
            teleporter.MoveToWorld(new Point3D(853, 1776, 11), map);

            teleporter = new Teleporter(new Point3D(225, 1725, 6), map);
            teleporter.MoveToWorld(new Point3D(854, 1776, 11), map);

            teleporter = new Teleporter(new Point3D(225, 1725, 6), map);
            teleporter.MoveToWorld(new Point3D(855, 1776, 11), map);

            LOSBlocker los = new LOSBlocker();

            los.MoveToWorld(new Point3D(121, 1682, -3), map);

            los = new LOSBlocker();
            los.MoveToWorld(new Point3D(121, 1683, -3), map);

            los = new LOSBlocker();
            los.MoveToWorld(new Point3D(121, 1684, -3), map);

            AllegianceIdol allegianceIdol = new AllegianceIdol(Allegiance.Tribes);

            allegianceIdol.MoveToWorld(new Point3D(267, 1741, 85), map);

            allegianceIdol = new AllegianceIdol(Allegiance.Myrmidex);
            allegianceIdol.MoveToWorld(new Point3D(176, 1813, 91), map);

            HealerCamp camp = new HealerCamp();

            camp.Map      = Map.TerMur;
            camp.Location = new Point3D(262, 1716, 80);

            GeoffreyCampAddon gcamp = new GeoffreyCampAddon();

            gcamp.MoveToWorld(new Point3D(264, 1732, 80), Map.TerMur);

            BattleSpawner spawner = new BattleSpawner();

            spawner.MoveToWorld(new Point3D(851, 1776, 0), Map.TerMur);

            Item st = new Static(0xA1F);

            st.MoveToWorld(new Point3D(913, 1871, 0), Map.TerMur);

            st = new Static(0xA1F);
            st.MoveToWorld(new Point3D(914, 1871, 0), Map.TerMur);

            BattleFlag bflag = new BattleFlag(0x42CB, 0);

            bflag.MoveToWorld(new Point3D(914, 1872, 5), Map.TerMur);

            st = new Static(0xA1F);
            st.MoveToWorld(new Point3D(913, 1792, 0), Map.TerMur);

            bflag = new BattleFlag(0x42C, 2520);
            bflag.MoveToWorld(new Point3D(914, 1793, 6), Map.TerMur);

            st = new Static(0x42D);
            st.MoveToWorld(new Point3D(913, 1793, 6), Map.TerMur);

            XmlSpawner sp = new XmlSpawner("Yar");

            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(169, 1813, 80), map);
            sp.Respawn();

            sp            = new XmlSpawner("Bront");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(1448, 3774, 0), Map.Trammel);
            sp.Respawn();

            sp            = new XmlSpawner("CollectorOfOddities");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(4305, 1003, 0), Map.Trammel);
            sp.Respawn();

            sp            = new XmlSpawner("Carroll");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(2878, 723, 0), Map.Trammel);
            sp.Respawn();

            sp            = new XmlSpawner("Eriathwen");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(1426, 1653, 0), Map.Trammel);
            sp.Respawn();

            sp            = new XmlSpawner("EllieRafkin");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(261, 1742, 80), map);
            sp.Respawn();

            sp            = new XmlSpawner("Yero");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(3692, 2252, 26), Map.Trammel);
            sp.Respawn();

            sp            = new XmlSpawner("Alida");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(5257, 4012, 40), Map.Trammel);
            sp.Respawn();

            sp            = new XmlSpawner("Foxx");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(269, 1727, 80), map);
            sp.Respawn();

            sp            = new XmlSpawner("MyrmidexQueen/Cantwalk/true");
            sp.SpawnRange = 0;
            sp.HomeRange  = 1;
            sp.MoveToWorld(new Point3D(768, 2303, 0), map);
            sp.Respawn();
        }
Ejemplo n.º 10
0
        public static void Generate(Mobile m)
        {
            #region Gravewater Lake Finish

            CommandSystem.Handle(m, Server.Commands.CommandSystem.Prefix + "XmlLoad Spawns/GravewaterLake.xml");

            CommandSystem.Handle(m, Server.Commands.CommandSystem.Prefix + "GenWinchAssembly");

            // StorageLocker

            StorageLocker storagelocker = new StorageLocker(Parts.Flywheel);
            storagelocker.MoveToWorld(new Point3D(6421, 1753, 0), Map.Trammel);
            storagelocker.Active = true;

            storagelocker = new StorageLocker(Parts.BearingAssembly);
            storagelocker.MoveToWorld(new Point3D(6441, 1753, 0), Map.Trammel);
            storagelocker.Active = true;

            storagelocker = new StorageLocker(Parts.PowerCore);
            storagelocker.MoveToWorld(new Point3D(6441, 1733, 0), Map.Trammel);
            storagelocker.Active = true;

            storagelocker = new StorageLocker(Parts.WireSpool);
            storagelocker.MoveToWorld(new Point3D(6421, 1733, 0), Map.Trammel);
            storagelocker.Active = true;

            Item door = new LightWoodDoor(DoorFacing.SouthCW);
            door.Hue = 2952;
            door.MoveToWorld(new Point3D(6427, 1735, 0), Map.Trammel);

            door     = new LightWoodDoor(DoorFacing.SouthCW);
            door.Hue = 2952;
            door.MoveToWorld(new Point3D(6427, 1752, 0), Map.Trammel);

            door     = new LightWoodDoor(DoorFacing.SouthCCW);
            door.Hue = 2952;
            door.MoveToWorld(new Point3D(6435, 1735, 0), Map.Trammel);

            door     = new LightWoodDoor(DoorFacing.SouthCCW);
            door.Hue = 2952;
            door.MoveToWorld(new Point3D(6435, 1752, 0), Map.Trammel);

            door     = new LightWoodDoor(DoorFacing.WestCW);
            door.Hue = 2952;
            door.MoveToWorld(new Point3D(6431, 1727, 0), Map.Trammel);

            door     = new LightWoodDoor(DoorFacing.EastCCW);
            door.Hue = 2952;
            door.MoveToWorld(new Point3D(6432, 1727, 0), Map.Trammel);

            Static decor = new Static(0x1EAF);
            decor.MoveToWorld(new Point3D(6310, 1704, 11), Map.Trammel);

            decor = new Static(0x1ED5);
            decor.MoveToWorld(new Point3D(6310, 1705, -5), Map.Trammel);

            decor = new Static(0x10A4);
            decor.MoveToWorld(new Point3D(6310, 1703, 8), Map.Trammel);

            decor = new Static(0x2E3D);
            decor.MoveToWorld(new Point3D(6311, 1703, 19), Map.Trammel);

            decor = new Static(0x3A8);
            decor.MoveToWorld(new Point3D(6309, 1704, 20), Map.Trammel);

            decor = new Static(0x3A8);
            decor.MoveToWorld(new Point3D(6310, 1704, 20), Map.Trammel);

            decor = new Static(0x3A6);
            decor.MoveToWorld(new Point3D(6309, 1703, 24), Map.Trammel);

            decor = new Static(0x3A6);
            decor.MoveToWorld(new Point3D(6310, 1703, 24), Map.Trammel);

            Item ladder = new ShipLadder(new Point3D(6302, 1672, 0), Map.Trammel, 0x08A6);
            ladder.MoveToWorld(new Point3D(6431, 1699, 0), Map.Trammel);

            ladder = new ShipLadder(new Point3D(6432, 1699, 0), Map.Trammel, 0x08A6);
            ladder.MoveToWorld(new Point3D(6304, 1672, -5), Map.Trammel);

            ladder = new ShipLadder(new Point3D(6292, 1720, 0), Map.Trammel, 0x08A1);
            ladder.MoveToWorld(new Point3D(6400, 1656, 0), Map.Trammel);

            ladder = new ShipLadder(new Point3D(1699, 1646, -115), Map.Malas, 0x14FA);
            ladder.MoveToWorld(new Point3D(6278, 1773, 0), Map.Trammel);

            Item sign = new ShipSign(0xBD2, 1154461); // Use Ladder to Return to Foredeck
            sign.MoveToWorld(new Point3D(6400, 1658, 0), Map.Trammel);

            sign = new ShipSign(0xBCF, 1154492); // Use the rope to return to the surface
            sign.MoveToWorld(new Point3D(6278, 1773, 0), Map.Trammel);

            sign = new ShipSign(0xBD1, 1154463); // Warning! Only those with proper gear may enter the lake for salvage operations! Enter at your own risk! No Pets!
            sign.MoveToWorld(new Point3D(1698, 1566, -110), Map.Malas);

            // CaptainsLogScroll
            Item scroll = new CaptainsLogScroll();
            scroll.MoveToWorld(new Point3D(6430, 1743, 0), Map.Trammel);

            Item tele = new Teleporter(new Point3D(6445, 1743, 0), Map.Trammel);
            tele.MoveToWorld(new Point3D(6321, 1710, -35), Map.Trammel);

            tele = new Teleporter(new Point3D(6445, 1743, 0), Map.Trammel);
            tele.MoveToWorld(new Point3D(6321, 1711, -35), Map.Trammel);

            tele = new Teleporter(new Point3D(6322, 1710, -35), Map.Trammel);
            tele.MoveToWorld(new Point3D(6447, 1741, 1), Map.Trammel);

            tele = new Teleporter(new Point3D(6322, 1710, -35), Map.Trammel);
            tele.MoveToWorld(new Point3D(6447, 1742, 1), Map.Trammel);

            tele = new Teleporter(new Point3D(6322, 1710, -35), Map.Trammel);
            tele.MoveToWorld(new Point3D(6447, 1743, 1), Map.Trammel);

            tele = new Teleporter(new Point3D(6322, 1710, -35), Map.Trammel);
            tele.MoveToWorld(new Point3D(6447, 1744, 1), Map.Trammel);

            tele = new Teleporter(new Point3D(6322, 1710, -35), Map.Trammel);
            tele.MoveToWorld(new Point3D(6447, 1745, 1), Map.Trammel);

            tele = new Whirlpool(new Point3D(6274, 1787, 0), Map.Trammel);
            tele.MoveToWorld(new Point3D(1700, 1638, -115), Map.Malas);

            Item item = new AnkhWest();
            item.MoveToWorld(new Point3D(1694, 1562, -109), Map.Malas);

            item = new DungeonHitchingPost();
            item.MoveToWorld(new Point3D(1702, 1552, -109), Map.Malas);

            #endregion

            #region Quester Spawns

            XmlSpawner sp;

            sp            = new XmlSpawner("GipsyGemologist");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(1509, 618, -16), Map.Ilshenar);
            sp.Respawn();

            sp            = new XmlSpawner("ChampHuthwait");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(2995, 635, 0), Map.Trammel);
            sp.Respawn();

            sp            = new XmlSpawner("JosefSkimmons");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(2630, 2092, 10), Map.Trammel);
            sp.Respawn();

            sp            = new XmlSpawner("MadelineHarte");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(1364, 3780, 0), Map.Trammel);
            sp.Respawn();

            sp            = new XmlSpawner("CousteauPerron");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(5212, 2314, 28), Map.Trammel);
            sp.Respawn();

            sp            = new XmlSpawner("HeplerPaulson");
            sp.SpawnRange = 1;
            sp.HomeRange  = 5;
            sp.MoveToWorld(new Point3D(2039, 2842, 0), Map.Trammel);
            sp.Respawn();

            #endregion

            #region Custeau Perron House
            door = new CusteauPerronHouseDoor();
            door.MoveToWorld(new Point3D(1651, 1551, 25), Map.Trammel);

            scroll = new MasterThinkerSchematics();
            scroll.MoveToWorld(new Point3D(1649, 1547, 54), Map.Trammel);

            decor = new Static(0xB7F);
            decor.MoveToWorld(new Point3D(1651, 1549, 45), Map.Trammel);

            decor = new Static(0xB80);
            decor.MoveToWorld(new Point3D(1652, 1549, 45), Map.Trammel);

            decor = new Static(0xB7E);
            decor.MoveToWorld(new Point3D(1653, 1549, 45), Map.Trammel);

            item = new MasterThinkerContoller();
            item.MoveToWorld(new Point3D(1652, 1547, 45), Map.Trammel);
            #endregion

            #region Ice Dungeon
            Item addon = new CousteauPerronAddon();
            addon.MoveToWorld(new Point3D(5211, 2312, 28), Map.Trammel);

            item = new IceCrystals();
            item.MoveToWorld(new Point3D(5799, 234, -5), Map.Trammel);

            item = new IceCrystals();
            item.MoveToWorld(new Point3D(5799, 235, -4), Map.Trammel);

            item = new IceCrystals();
            item.MoveToWorld(new Point3D(5800, 236, -8), Map.Trammel);

            item = new IceCrystals();
            item.MoveToWorld(new Point3D(5802, 234, -4), Map.Trammel);

            item = new IceCrystals();
            item.MoveToWorld(new Point3D(5801, 239, -7), Map.Trammel);

            item = new IceCrystals();
            item.MoveToWorld(new Point3D(5801, 240, -4), Map.Trammel);

            item = new IceCrystals();
            item.MoveToWorld(new Point3D(5803, 243, -2), Map.Trammel);

            item = new IceCrystals();
            item.MoveToWorld(new Point3D(5806, 244, -6), Map.Trammel);

            item = new IceCrystals();
            item.MoveToWorld(new Point3D(5807, 240, -2), Map.Trammel);

            item = new IceCrystals();
            item.MoveToWorld(new Point3D(5808, 237, -3), Map.Trammel);

            #endregion

            #region Sorcerers Dungeon

            sp = new XmlSpawner(2, 5, 5, 0, 5, 1, "RockMite");
            sp.MoveToWorld(new Point3D(122, 10, -28), Map.Ilshenar);
            sp.Respawn();

            CommandSystem.Handle(m, Server.Commands.CommandSystem.Prefix + "GenSorcerersPlate");

            #endregion

            #region Scroll
            scroll = new WillemHarteScroll();
            scroll.MoveToWorld(new Point3D(1359, 3779, 7), Map.Trammel);

            scroll = new MadelineHarteScroll();
            scroll.MoveToWorld(new Point3D(1359, 3780, 7), Map.Trammel);

            scroll = new LiamDeFoeScroll();
            scroll.MoveToWorld(new Point3D(1364, 3778, 1), Map.Trammel);

            scroll = new CalculationsScroll();
            scroll.MoveToWorld(new Point3D(2997, 632, 9), Map.Trammel);

            scroll = new SuspicionsScroll();
            scroll.MoveToWorld(new Point3D(2993, 632, 14), Map.Trammel);

            scroll = new SealedLettersScroll();
            scroll.MoveToWorld(new Point3D(2992, 636, 5), Map.Trammel);

            scroll = new LedgerScroll();
            scroll.MoveToWorld(new Point3D(2580, 1118, 5), Map.Trammel);

            scroll = new JournalScroll();
            scroll.MoveToWorld(new Point3D(2578, 1120, 0), Map.Trammel);

            scroll = new SorcerersScroll();
            scroll.MoveToWorld(new Point3D(101, 42, -22), Map.Ilshenar);
            #endregion
        }
Ejemplo n.º 11
0
        private static void GenToK_Command(CommandEventArgs e)
        {
            e.Mobile.SendMessage("Creating Tomb of Kings...");

            // Bridge
            Static st = new Static(16880);

            WeakEntityCollection.Add("sa", st);
            st.MoveToWorld(new Point3D(36, 36, 0), Map.TerMur);

            st = new Static(16882);
            WeakEntityCollection.Add("sa", st);
            st.MoveToWorld(new Point3D(37, 36, 0), Map.TerMur);

            st = new Static(16883);
            st.MoveToWorld(new Point3D(38, 36, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16878);
            st.MoveToWorld(new Point3D(36, 35, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16884);
            st.MoveToWorld(new Point3D(37, 35, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16884);
            st.MoveToWorld(new Point3D(38, 35, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16878);
            st.MoveToWorld(new Point3D(36, 34, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16884);
            st.MoveToWorld(new Point3D(37, 34, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16884);
            st.MoveToWorld(new Point3D(38, 34, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16878);
            st.MoveToWorld(new Point3D(36, 33, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16884);
            st.MoveToWorld(new Point3D(37, 33, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16884);
            st.MoveToWorld(new Point3D(38, 33, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16878);
            st.MoveToWorld(new Point3D(36, 32, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16884);
            st.MoveToWorld(new Point3D(37, 32, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16884);
            st.MoveToWorld(new Point3D(38, 32, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16872);
            st.MoveToWorld(new Point3D(36, 31, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16873);
            st.MoveToWorld(new Point3D(37, 31, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(16874);
            st.MoveToWorld(new Point3D(38, 31, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            //Sacred Quest Blocker
            SacredQuestBlocker sq = new SacredQuestBlocker();

            sq.MoveToWorld(new Point3D(35, 38, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", sq);

            sq = new SacredQuestBlocker();
            sq.MoveToWorld(new Point3D(36, 38, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", sq);

            sq = new SacredQuestBlocker();
            sq.MoveToWorld(new Point3D(37, 38, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", sq);

            sq = new SacredQuestBlocker();
            sq.MoveToWorld(new Point3D(38, 38, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", sq);

            sq = new SacredQuestBlocker();
            sq.MoveToWorld(new Point3D(39, 38, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", sq);

            // Guardian
            XmlSpawner spawner = new XmlSpawner(1, 300, 600, 0, 0, 0, "GargoyleDestroyer, /blessed/true/Frozen/true/Direction/West/Paralyzed/true/Hue/2401/Name/Guardian");

            spawner.SmartSpawning = true;
            spawner.MoveToWorld(new Point3D(42, 38, 13), Map.TerMur);
            WeakEntityCollection.Add("sa", spawner);

            spawner = new XmlSpawner(1, 300, 600, 0, 0, 0, "GargoyleDestroyer, /blessed/true/Frozen/true/Direction/East/Paralyzed/true/Hue/2401/Name/Guardian");
            spawner.SmartSpawning = true;
            spawner.MoveToWorld(new Point3D(33, 38, 13), Map.TerMur);
            WeakEntityCollection.Add("sa", spawner);

            // Teleporter
            ToKTeleporter t = new ToKTeleporter();

            t.MoveToWorld(new Point3D(21, 99, 1), Map.TerMur);
            WeakEntityCollection.Add("sa", t);

            st = new Static(14186); // sparkle
            st.MoveToWorld(new Point3D(21, 99, 1), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st = new Static(18304); // door
            st.MoveToWorld(new Point3D(18, 99, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            TombOfKingsSecretDoor door = new TombOfKingsSecretDoor(18304);

            door.MoveToWorld(new Point3D(52, 99, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", door);

            // Serpent's Breath
            Item flame = new FlameOfOrder(new Point3D(28, 212, 3), Map.TerMur);

            WeakEntityCollection.Add("sa", flame);

            flame = new FlameOfChaos(new Point3D(43, 212, 3), Map.TerMur);
            WeakEntityCollection.Add("sa", flame);

            st      = new Static(3025);
            st.Name = "Order Shall Steal The Serpent's Strength";
            st.MoveToWorld(new Point3D(28, 208, 4), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            st      = new Static(3025);
            st.Name = "Chaos Shall Quell The Serpent's Wrath";
            st.MoveToWorld(new Point3D(28, 208, 4), Map.TerMur);
            WeakEntityCollection.Add("sa", st);

            // Kings' Chambers
            ChamberLever.Generate();
            Chamber.Generate();
            ChamberSpawner.Generate();

            CommandSystem.Handle(e.Mobile, Server.Commands.CommandSystem.Prefix + "ArisenGenerate");

            e.Mobile.SendMessage("Generation completed!");
        }
Ejemplo n.º 12
0
        private static void AddAnimalSpawner(int x, int y, int z)
        {
            if (Utility.RandomDouble() < 0.9750)
            {
                return;
            }

            Map map = Map.Trammel;
            IPooledEnumerable eable = map.GetItemsInRange(new Point3D(x, y, z), 20);

            foreach (Item item in eable)
            {
                if (item is XmlSpawner)
                {
                    if (item.Hue == 346)
                    {
                        return;
                    }
                }
            }

            if (!m_Map.CanFit(x, y, z, 1, false, false))
            {
                return;
            }

            //XmlSpawner(int amount, int minDelay, int maxDelay, int team, int homeRange, int spawnrange, string creatureName)
            XmlSpawner spawner  = null;
            int        MaxSpawn = 0;
            int        Counter  = 0;

            switch (Utility.Random(6))
            {
            case 0:
                spawner = new XmlSpawner(10, 1, 3, 0, 10, Utility.RandomMinMax(22, 30), "Bird");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Chicken", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Eagle", 2));
                MaxSpawn = 12;
                Counter  = 3;
                break;

            case 1:
                spawner = new XmlSpawner(4, 2, 5, 0, 10, Utility.RandomMinMax(8, 10), "BrownBear");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("BlackBear", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("GrizzlyBear", 2));
                MaxSpawn = 6;
                Counter  = 3;
                break;

            case 2:
                spawner = new XmlSpawner(4, 1, 3, 0, 10, Utility.RandomMinMax(18, 24), "Dog");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Cat", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Amish", 3));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("SewerRat", 0));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("JackRabbit", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Rabbit", 4));
                MaxSpawn = 10;
                Counter  = 6;
                break;

            case 3:
                spawner = new XmlSpawner(2, 1, 3, 0, 10, Utility.RandomMinMax(26, 30), "Bull");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Cow", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Goat", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("MountainGoat", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Boar", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Pig", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("GreatHart", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Hind", 6));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Sheep", 6));
                MaxSpawn = 14;
                Counter  = 8;
                break;

            case 4:
                spawner = new XmlSpawner(2, 2, 5, 0, 10, Utility.RandomMinMax(8, 10), "DireWolf");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("GreyWolf", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("TimberWolf", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Panther", 2));
                MaxSpawn = 6;
                Counter  = 4;
                break;

            case 5:
                spawner = new XmlSpawner(6, 3, 7, 0, 10, Utility.RandomMinMax(8, 10), "Gorilla");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Alligator", 0));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Vegan", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Raptor", 0));
                MaxSpawn = 6;
                Counter  = 4;
                break;
            }

            //Spawn Orcs ( 10% )
            if (spawner != null)
            {
                switch (Utility.Random(30))
                {
                case 0:
                case 1: // 20/3%
                    spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Orc", 2));
                    break;

                case 2: // 10/3%
                    spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("OrcChopper", 2));
                    break;

                default:
                    break;
                }
            }

            if (spawner != null)
            {
                for (int i = 0; i < Counter; i++)
                {
                    spawner.SpawnObjects[i].SpawnsPerTick = 1;
                }

                spawner.Name = "Animal Spawner #" + m_Count;
                spawner.MoveToWorld(new Point3D(x, y, z), Map.Trammel);
                spawner.MaxCount = MaxSpawn;
                spawner.Hue      = 346;
            }

            ++m_Count;
        }
        private static void AddWaterSpawner(int x, int y, int z)
        {
            if (Utility.RandomDouble() < 0.9750)
            {
                return;
            }

            Map map = Map.Felucca;
            IPooledEnumerable eable = map.GetItemsInRange(new Point3D(x, y, z), 20);

            foreach (Item item in eable)
            {
                if (item is XmlSpawner)
                {
                    if (item.Hue == 346)
                    {
                        return;
                    }
                }
            }

            if (!m_Map.CanFit(x, y, z, 1, false, false))
            {
                return;
            }

            //XmlSpawner(int amount, int minDelay, int maxDelay, int team, int homeRange, int spawnrange, string creatureName)
            XmlSpawner spawner  = null;
            int        MaxSpawn = 0;
            int        Counter  = 0;

            switch (Utility.Random(6))
            {
            case 0:
                spawner = new XmlSpawner(10, 1, 3, 0, 0, Utility.RandomMinMax(1, 6), "SeaSerpent");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("DeepSeaSerpent", 3));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Kraken", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WaterElemental", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 9));
                MaxSpawn = 12;
                Counter  = 3;
                break;

            case 1:
                spawner = new XmlSpawner(4, 2, 5, 0, 0, Utility.RandomMinMax(1, 5), "PirateCaptain");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                MaxSpawn = 6;
                Counter  = 3;
                break;

            case 2:
                spawner = new XmlSpawner(4, 1, 3, 0, 0, Utility.RandomMinMax(1, 2), "PirateCaptain");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("DeepSeaSerpent", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Kraken", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                MaxSpawn = 10;
                Counter  = 6;
                break;

            case 3:
                spawner = new XmlSpawner(2, 1, 3, 0, 0, Utility.RandomMinMax(1, 3), "PirateCaptain");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WaterElemental", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                MaxSpawn = 14;
                Counter  = 8;
                break;

            case 4:
                spawner = new XmlSpawner(10, 1, 3, 0, 0, Utility.RandomMinMax(1, 6), "SeaSerpent");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("DeepSeaSerpent", 3));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Kraken", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WaterElemental", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 9));
                MaxSpawn = 6;
                Counter  = 4;
                break;

            case 5:
                spawner = new XmlSpawner(6, 3, 7, 0, 0, Utility.RandomMinMax(8, 10), "Dolphin");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Dolphin", 1));
                MaxSpawn = 6;
                Counter  = 4;
                break;
            }

            //Spawn Orcs ( 30% )
            if (spawner != null)
            {
                switch (Utility.Random(10))
                {
                case 0:
                case 1: // 20%
                    spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("DeepSeaSerpent", 2));
                    break;

                case 2: // 10%
                    spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Kraken", 2));
                    break;

                default:
                    break;
                }
            }

            if (spawner != null)
            {
                for (int i = 0; i < Counter; i++)
                {
                    spawner.SpawnObjects[i].SpawnsPerTick = 1;
                }

                spawner.Name = "Water Spawner #" + m_Count;
                spawner.MoveToWorld(new Point3D(x, y, z), Map.Felucca);
                spawner.MaxCount = MaxSpawn;
                spawner.Hue      = 346;
            }

            ++m_Count;
        }
Ejemplo n.º 14
0
        public static void Setup(CommandEventArgs e)
        {
            if (VoidPoolController.InstanceTram != null || VoidPoolController.InstanceFel != null)
            {
                e.Mobile.SendMessage("This has already been setup!");
            }
            else
            {
                VoidPoolController one = new VoidPoolController(Map.Trammel);
                WeakEntityCollection.Add("newcovetous", one);
                one.MoveToWorld(new Point3D(5605, 1998, 10), Map.Trammel);

                VoidPoolController two = new VoidPoolController(Map.Felucca);
                WeakEntityCollection.Add("newcovetous", two);
                two.MoveToWorld(new Point3D(5605, 1998, 10), Map.Felucca);

                int id  = 0;
                int hue = 0;

                for (int x = 5497; x <= 5503; x++)
                {
                    for (int y = 1995; y <= 2001; y++)
                    {
                        if (x == 5497 && y == 1995)
                        {
                            id = 1886;
                        }
                        else if (x == 5497 && y == 2001)
                        {
                            id = 1887;
                        }
                        else if (x == 5503 && y == 1995)
                        {
                            id = 1888;
                        }
                        else if (x == 5503 && y == 2001)
                        {
                            id = 1885;
                        }
                        else if (x == 5497)
                        {
                            id = 1874;
                        }
                        else if (x == 5503)
                        {
                            id = 1876;
                        }
                        else if (y == 1995)
                        {
                            id = 1873;
                        }
                        else if (y == 2001)
                        {
                            id = 1875;
                        }
                        else
                        {
                            //id = 1168;
                            id = Utility.Random(8511, 6);
                        }

                        hue = id >= 8511 ? 0 : 1954;

                        Static item = new Static(id);
                        item.Name = "Void Pool";
                        item.Hue  = hue;
                        WeakEntityCollection.Add("newcovetous", item);
                        item.MoveToWorld(new Point3D(x, y, 5), Map.Trammel);

                        item      = new Static(id);
                        item.Name = "Void Pool";
                        item.Hue  = hue;
                        WeakEntityCollection.Add("newcovetous", item);
                        item.MoveToWorld(new Point3D(x, y, 5), Map.Felucca);
                    }
                }

                XmlSpawner spawner = new XmlSpawner("corathesorceress");
                WeakEntityCollection.Add("newcovetous", spawner);
                spawner.MoveToWorld(new Point3D(5457, 1808, 0), Map.Trammel);
                spawner.SpawnRange = 5;
                spawner.MinDelay   = TimeSpan.FromHours(1);
                spawner.MaxDelay   = TimeSpan.FromHours(1.5);
                spawner.DoRespawn  = true;

                spawner = new XmlSpawner("corathesorceress");
                WeakEntityCollection.Add("newcovetous", spawner);
                spawner.MoveToWorld(new Point3D(5457, 1808, 0), Map.Felucca);
                spawner.SpawnRange = 5;
                spawner.MinDelay   = TimeSpan.FromHours(1);
                spawner.MaxDelay   = TimeSpan.FromHours(1.5);
                spawner.DoRespawn  = true;

                spawner = new XmlSpawner("velathesorceress");
                WeakEntityCollection.Add("newcovetous", spawner);
                spawner.MoveToWorld(new Point3D(2254, 1207, 0), Map.Trammel);
                spawner.SpawnRange = 0;
                spawner.DoRespawn  = true;

                spawner = new XmlSpawner("velathesorceress");
                WeakEntityCollection.Add("newcovetous", spawner);
                spawner.MoveToWorld(new Point3D(2254, 1207, 0), Map.Felucca);
                spawner.SpawnRange = 0;
                spawner.DoRespawn  = true;

                AddWaypoints();
                ConvertSpawners();
            }
        }
Ejemplo n.º 15
0
        private void Setup()
        {
            Static s;

            for (int i = 0; i < 9; i++)
            {
                s = new Static(2931);
                s.MoveToWorld(new Point3D(748 + i, 2136, 0), Map.Trammel);

                s = new Static(2928);
                s.MoveToWorld(new Point3D(748 + i, 2137, 0), Map.Trammel);

                s = new Static(2931);
                s.MoveToWorld(new Point3D(748 + i, 2136, 0), Map.Felucca);

                s = new Static(2928);
                s.MoveToWorld(new Point3D(748 + i, 2137, 0), Map.Felucca);
            }

            s = new Static(2923);
            s.MoveToWorld(new Point3D(736, 2150, 0), Map.Trammel);

            s = new Static(2925);
            s.MoveToWorld(new Point3D(736, 2149, 0), Map.Trammel);

            s = new Static(2924);
            s.MoveToWorld(new Point3D(736, 2148, 0), Map.Trammel);

            s = new Static(2923);
            s.MoveToWorld(new Point3D(736, 2146, 0), Map.Trammel);

            s = new Static(2925);
            s.MoveToWorld(new Point3D(736, 2145, 0), Map.Trammel);

            s = new Static(2924);
            s.MoveToWorld(new Point3D(736, 2144, 0), Map.Trammel);

            s = new Static(2923);
            s.MoveToWorld(new Point3D(736, 2150, 0), Map.Felucca);

            s = new Static(2925);
            s.MoveToWorld(new Point3D(736, 2149, 0), Map.Felucca);

            s = new Static(2924);
            s.MoveToWorld(new Point3D(736, 2148, 0), Map.Felucca);

            s = new Static(2923);
            s.MoveToWorld(new Point3D(736, 2146, 0), Map.Felucca);

            s = new Static(2925);
            s.MoveToWorld(new Point3D(736, 2145, 0), Map.Felucca);

            s = new Static(2924);
            s.MoveToWorld(new Point3D(736, 2144, 0), Map.Felucca);

            HuntingDisplayTrophy trophy = new HuntingDisplayTrophy(HuntType.GrizzlyBear);

            trophy.MoveToWorld(new Point3D(748, 2137, 6), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.GrizzlyBear);
            trophy.MoveToWorld(new Point3D(748, 2137, 6), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.GrayWolf);
            trophy.MoveToWorld(new Point3D(751, 2137, 6), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.GrayWolf);
            trophy.MoveToWorld(new Point3D(751, 2137, 6), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Cougar);
            trophy.MoveToWorld(new Point3D(753, 2137, 6), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Cougar);
            trophy.MoveToWorld(new Point3D(753, 2137, 6), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Turkey);
            trophy.MoveToWorld(new Point3D(756, 2137, 6), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Turkey);
            trophy.MoveToWorld(new Point3D(756, 2137, 6), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Bull);
            trophy.MoveToWorld(new Point3D(748, 2136, 2), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Bull);
            trophy.MoveToWorld(new Point3D(748, 2136, 2), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Boar);
            trophy.MoveToWorld(new Point3D(750, 2136, 2), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Boar);
            trophy.MoveToWorld(new Point3D(750, 2136, 2), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Walrus);
            trophy.MoveToWorld(new Point3D(752, 2136, 2), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Walrus);
            trophy.MoveToWorld(new Point3D(752, 2136, 2), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Alligator);
            trophy.MoveToWorld(new Point3D(754, 2136, 2), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Alligator);
            trophy.MoveToWorld(new Point3D(754, 2136, 2), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Eagle);
            trophy.MoveToWorld(new Point3D(756, 2136, 3), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Eagle);
            trophy.MoveToWorld(new Point3D(756, 2136, 3), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Saurosaurus);
            trophy.MoveToWorld(new Point3D(746, 2136, 0), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Saurosaurus);
            trophy.MoveToWorld(new Point3D(746, 2136, 0), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Anchisaur);
            trophy.MoveToWorld(new Point3D(744, 2136, 0), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Anchisaur);
            trophy.MoveToWorld(new Point3D(744, 2136, 0), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.BlackTiger);
            trophy.MoveToWorld(new Point3D(744, 2138, 0), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.BlackTiger);
            trophy.MoveToWorld(new Point3D(744, 2138, 0), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.WhiteTiger);
            trophy.MoveToWorld(new Point3D(744, 2140, 0), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.WhiteTiger);
            trophy.MoveToWorld(new Point3D(744, 2140, 0), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Triceratops);
            trophy.MoveToWorld(new Point3D(744, 2142, 0), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Triceratops);
            trophy.MoveToWorld(new Point3D(744, 2142, 0), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Allosaurus);
            trophy.MoveToWorld(new Point3D(743, 2144, 0), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Allosaurus);
            trophy.MoveToWorld(new Point3D(743, 2144, 0), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.MyrmidexDrone);
            trophy.MoveToWorld(new Point3D(741, 2144, 0), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.MyrmidexDrone);
            trophy.MoveToWorld(new Point3D(741, 2144, 0), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Dimetrosaur);
            trophy.MoveToWorld(new Point3D(758, 2136, 0), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Dimetrosaur);
            trophy.MoveToWorld(new Point3D(758, 2136, 0), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Tiger);
            trophy.MoveToWorld(new Point3D(738, 2144, 0), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Tiger);
            trophy.MoveToWorld(new Point3D(738, 2144, 0), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Najasaurus);
            trophy.MoveToWorld(new Point3D(736, 2145, 6), Map.Trammel);

            s = new Static(0x9C03);
            s.MoveToWorld(new Point3D(736, 2144, 6), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Najasaurus);
            trophy.MoveToWorld(new Point3D(736, 2145, 6), Map.Felucca);

            s = new Static(0x9C03);
            s.MoveToWorld(new Point3D(736, 2144, 6), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.Lion);
            trophy.MoveToWorld(new Point3D(736, 2147, 0), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.Lion);
            trophy.MoveToWorld(new Point3D(736, 2147, 0), Map.Felucca);

            trophy = new HuntingDisplayTrophy(HuntType.MyrmidexLarvae);
            trophy.MoveToWorld(new Point3D(736, 2149, 6), Map.Trammel);

            s = new Static(0x9C01);
            s.MoveToWorld(new Point3D(736, 2149, 6), Map.Trammel);

            trophy = new HuntingDisplayTrophy(HuntType.MyrmidexLarvae);
            trophy.MoveToWorld(new Point3D(736, 2149, 6), Map.Felucca);

            s = new Static(0x9C01);
            s.MoveToWorld(new Point3D(736, 2149, 6), Map.Felucca);

            XmlSpawner spawner = new XmlSpawner("HuntMaster");

            spawner.MoveToWorld(new Point3D(747, 2148, 0), Map.Felucca);
            spawner.DoRespawn = true;

            spawner = new XmlSpawner("HuntMaster");
            spawner.MoveToWorld(new Point3D(747, 2148, 0), Map.Trammel);
            spawner.DoRespawn = true;
        }
Ejemplo n.º 16
0
        public override void ActivateStone()
        {
            #region Boss Spawn

            if (i == 0)
            {
                var Boss = new XmlSpawner();
                //Boss.Map = Map.Ilshenar;
                Boss.Map  = Map.Malas;
                Boss.Name = "DungeonBosses";
                Boss.MoveToWorld(new Point3D(1116, 529, -90));
                Boss.MaxCount      = 30;
                Boss.HomeRange     = 10;
                Boss.SpawnRange    = 10;
                Boss.Group         = true;
                Boss.SmartSpawning = true;

                // Wave 1
                Boss.AddSpawn = typeof(HellCat).Name;
                if (Boss.SpawnObjects.Length > 0)
                {
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].Available               = true;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SubGroup                = Boss.SpawnObjects.Length;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SpawnsPerTick           = 1;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].KillsNeeded             = 15;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].MaxCount                = 15;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].RestrictKillsToSubgroup = true;
                }
                Boss.AddSpawn = typeof(PredatorHellCat).Name;
                if (Boss.SpawnObjects.Length > 1)
                {
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].Available               = true;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SubGroup                = Boss.SpawnObjects.Length;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SpawnsPerTick           = 1;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].KillsNeeded             = 15;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].MaxCount                = 15;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].RestrictKillsToSubgroup = true;
                }

                // Wave 2
                Boss.AddSpawn = typeof(BloodElemental).Name;
                if (Boss.SpawnObjects.Length > 2)
                {
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].Available               = true;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SubGroup                = Boss.SpawnObjects.Length;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SpawnsPerTick           = 10;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].KillsNeeded             = 10;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].MaxCount                = 10;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].RestrictKillsToSubgroup = true;
                }
                Boss.AddSpawn = typeof(Daemon).Name;
                if (Boss.SpawnObjects.Length > 3)
                {
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].Available               = true;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SubGroup                = Boss.SpawnObjects.Length;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SpawnsPerTick           = 10;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].KillsNeeded             = 10;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].MaxCount                = 10;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].RestrictKillsToSubgroup = true;
                }

                // Wave 3
                Boss.AddSpawn = typeof(Succubus).Name;
                if (Boss.SpawnObjects.Length > 4)
                {
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].Available     = true;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SubGroup      = Boss.SpawnObjects.Length;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SpawnsPerTick = 5;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].KillsNeeded   = 5;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].MaxCount      = 5;
                }
                Boss.AddSpawn = typeof(Balron).Name;
                if (Boss.SpawnObjects.Length > 5)
                {
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].Available     = true;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SubGroup      = Boss.SpawnObjects.Length;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SpawnsPerTick = 5;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].KillsNeeded   = 5;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].MaxCount      = 5;
                }

                // Boss Spawn

                Boss.AddSpawn = typeof(Barracoon).Name;
                if (Boss.SpawnObjects.Length > 6)
                {
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].Available     = true;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SubGroup      = Boss.SpawnObjects.Length;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].SpawnsPerTick = 1;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].KillsNeeded   = 1;
                    Boss.SpawnObjects[Boss.SpawnObjects.Length - 1].MaxCount      = 1;
                }

                Boss.KillReset = 0;
                for (int o = 0; o < Boss.SpawnObjects.Length; o++)
                {
                    Boss.KillReset += Boss.SpawnObjects[o].KillsNeeded;
                }
                Boss.MinDelay  = new TimeSpan(0, 1, 0);
                Boss.MaxDelay  = new TimeSpan(0, 1, 10);
                Boss.NextSpawn = new TimeSpan(0, 0, 0);
                Boss.SortSpawns();
                Boss.DoReset         = false;
                Boss.SequentialSpawn = 1;
                Boss.Start();
            }

            #endregion

            base.ActivateStone();
        }
Ejemplo n.º 17
0
        public static void Generate()
        {
            ExperimentalRoomController controller = new ExperimentalRoomController();

            controller.MoveToWorld(new Point3D(980, 1117, -42), Map.TerMur);

            //Room 0 to 1
            ExperimentalRoomDoor    door    = new ExperimentalRoomDoor(Room.RoomZero, DoorFacing.WestCCW);
            ExperimentalRoomBlocker blocker = new ExperimentalRoomBlocker(Room.RoomZero);

            door.Hue = 1109;
            door.MoveToWorld(new Point3D(984, 1116, -42), Map.TerMur);
            blocker.MoveToWorld(new Point3D(984, 1116, -42), Map.TerMur);

            door     = new ExperimentalRoomDoor(Room.RoomZero, DoorFacing.EastCW);
            blocker  = new ExperimentalRoomBlocker(Room.RoomZero);
            door.Hue = 1109;
            door.MoveToWorld(new Point3D(985, 1116, -42), Map.TerMur);
            blocker.MoveToWorld(new Point3D(985, 1116, -42), Map.TerMur);

            //Room 1 to 2
            door     = new ExperimentalRoomDoor(Room.RoomOne, DoorFacing.WestCCW);
            blocker  = new ExperimentalRoomBlocker(Room.RoomOne);
            door.Hue = 1109;
            door.MoveToWorld(new Point3D(984, 1102, -42), Map.TerMur);
            blocker.MoveToWorld(new Point3D(984, 1102, -42), Map.TerMur);

            door     = new ExperimentalRoomDoor(Room.RoomOne, DoorFacing.EastCW);
            blocker  = new ExperimentalRoomBlocker(Room.RoomOne);
            door.Hue = 1109;
            door.MoveToWorld(new Point3D(985, 1102, -42), Map.TerMur);
            blocker.MoveToWorld(new Point3D(985, 1102, -42), Map.TerMur);

            //Room 2 to 3
            door     = new ExperimentalRoomDoor(Room.RoomTwo, DoorFacing.WestCCW);
            blocker  = new ExperimentalRoomBlocker(Room.RoomTwo);
            door.Hue = 1109;
            door.MoveToWorld(new Point3D(984, 1090, -42), Map.TerMur);
            blocker.MoveToWorld(new Point3D(984, 1090, -42), Map.TerMur);

            door     = new ExperimentalRoomDoor(Room.RoomTwo, DoorFacing.EastCW);
            blocker  = new ExperimentalRoomBlocker(Room.RoomTwo);
            door.Hue = 1109;
            door.MoveToWorld(new Point3D(985, 1090, -42), Map.TerMur);
            blocker.MoveToWorld(new Point3D(985, 1090, -42), Map.TerMur);

            //Room 3 to 4
            door     = new ExperimentalRoomDoor(Room.RoomTwo, DoorFacing.WestCCW);
            blocker  = new ExperimentalRoomBlocker(Room.RoomThree);
            door.Hue = 1109;
            door.MoveToWorld(new Point3D(984, 1072, -42), Map.TerMur);
            blocker.MoveToWorld(new Point3D(984, 1072, -42), Map.TerMur);

            door     = new ExperimentalRoomDoor(Room.RoomTwo, DoorFacing.EastCW);
            blocker  = new ExperimentalRoomBlocker(Room.RoomThree);
            door.Hue = 1109;
            door.MoveToWorld(new Point3D(985, 1072, -42), Map.TerMur);
            blocker.MoveToWorld(new Point3D(985, 1072, -42), Map.TerMur);

            ExperimentalRoomChest chest = new ExperimentalRoomChest();

            chest.MoveToWorld(new Point3D(984, 1064, -37), Map.TerMur);

            ExperimentalBook instr = new ExperimentalBook();

            instr.Movable = false;
            instr.MoveToWorld(new Point3D(995, 1114, -36), Map.TerMur);

            SecretDungeonDoor dd = new SecretDungeonDoor(DoorFacing.NorthCCW);

            dd.ClosedID = 87;
            dd.OpenedID = 88;
            dd.MoveToWorld(new Point3D(1007, 1119, -42), Map.TerMur);

            LocalizedSign sign = new LocalizedSign(3026, 1113407);  // Experimental Room Access

            sign.Movable = false;
            sign.MoveToWorld(new Point3D(980, 1119, -37), Map.TerMur);

            //Puzze Room
            PuzzleBox box = new PuzzleBox(PuzzleType.WestBox);

            box.MoveToWorld(new Point3D(1090, 1171, 11), Map.TerMur);

            box = new PuzzleBox(PuzzleType.EastBox);
            box.MoveToWorld(new Point3D(1104, 1171, 11), Map.TerMur);

            box = new PuzzleBox(PuzzleType.NorthBox);
            box.MoveToWorld(new Point3D(1097, 1163, 11), Map.TerMur);

            XmlSpawner spawner = new XmlSpawner("MagicKey");

            spawner.MoveToWorld(new Point3D(1109, 1150, -12), Map.TerMur);
            spawner.SpawnRange = 0;
            spawner.MinDelay   = TimeSpan.FromSeconds(30);
            spawner.MaxDelay   = TimeSpan.FromSeconds(45);
            spawner.DoRespawn  = true;

            PuzzleBook book = new PuzzleBook();

            book.Movable = false;
            book.MoveToWorld(new Point3D(1109, 1153, -17), Map.TerMur);

            PuzzleRoomTeleporter tele = new PuzzleRoomTeleporter();

            tele.PointDest = new Point3D(1097, 1173, 1);
            tele.MapDest   = Map.TerMur;
            tele.MoveToWorld(new Point3D(1097, 1175, 0), Map.TerMur);

            tele           = new PuzzleRoomTeleporter();
            tele.PointDest = new Point3D(1098, 1173, 1);
            tele.MapDest   = Map.TerMur;
            tele.MoveToWorld(new Point3D(1098, 1175, 0), Map.TerMur);

            MetalDoor2 door2 = new MetalDoor2(DoorFacing.WestCCW);

            door2.Locked   = true;
            door2.KeyValue = 50000;
            door2.MoveToWorld(new Point3D(1097, 1174, 1), Map.TerMur);

            door2          = new MetalDoor2(DoorFacing.EastCW);
            door2.Locked   = true;
            door2.KeyValue = 50000;
            door2.MoveToWorld(new Point3D(1098, 1174, 1), Map.TerMur);

            Teleporter telep = new Teleporter();

            telep.PointDest = new Point3D(1097, 1175, 0);
            telep.MapDest   = Map.TerMur;
            telep.MoveToWorld(new Point3D(1097, 1173, 1), Map.TerMur);

            telep           = new Teleporter();
            telep.PointDest = new Point3D(1098, 1175, 0);
            telep.MapDest   = Map.TerMur;
            telep.MoveToWorld(new Point3D(1098, 1173, 1), Map.TerMur);

            telep           = new Teleporter();
            telep.PointDest = new Point3D(996, 1117, -42);
            telep.MapDest   = Map.TerMur;
            telep.MoveToWorld(new Point3D(980, 1064, -42), Map.TerMur);

            Static sparkle = new Static(14138);

            sparkle.MoveToWorld(new Point3D(980, 1064, -42), Map.TerMur);

            //Maze of Death
            UnderworldPuzzleBox pBox = new UnderworldPuzzleBox();

            pBox.MoveToWorld(new Point3D(1068, 1026, -37), Map.TerMur);

            GoldenCompass compass = new GoldenCompass();

            compass.MoveToWorld(new Point3D(1070, 1055, -34), Map.TerMur);

            Item map = new RolledMapOfTheUnderworld();

            map.MoveToWorld(new Point3D(1072, 1055, -36), Map.TerMur);
            map.Movable = false;

            FountainOfFortune f = new FountainOfFortune();

            f.MoveToWorld(new Point3D(1121, 957, -42), Map.TerMur);

            Item tile = new InvisibleTile();

            tile.MoveToWorld(new Point3D(1121, 965, -41), Map.TerMur);

            tile = new InvisibleTile();
            tile.MoveToWorld(new Point3D(1122, 965, -40), Map.TerMur);

            tile = new InvisibleTile();
            tile.MoveToWorld(new Point3D(1123, 965, -41), Map.TerMur);

            tile = new InvisibleTile();
            tile.MoveToWorld(new Point3D(1124, 965, -41), Map.TerMur);

            tile = new InvisibleTile();
            tile.MoveToWorld(new Point3D(1122, 964, -41), Map.TerMur);

            tile = new InvisibleTile();
            tile.MoveToWorld(new Point3D(1123, 964, -41), Map.TerMur);

            tile = new InvisibleTile();
            tile.MoveToWorld(new Point3D(1123, 963, -40), Map.TerMur);

            tile = new InvisibleTile();
            tile.MoveToWorld(new Point3D(1123, 962, -40), Map.TerMur);

            tile = new InvisibleTile();
            tile.MoveToWorld(new Point3D(1123, 961, -41), Map.TerMur);

            tile = new InvisibleTile();
            tile.MoveToWorld(new Point3D(1122, 961, -41), Map.TerMur);

            tile = new InvisibleTile();
            tile.MoveToWorld(new Point3D(1122, 960, -41), Map.TerMur);

            tile = new InvisibleTile();
            tile.MoveToWorld(new Point3D(1121, 960, -41), Map.TerMur);

            tile = new InvisibleTile();
            tile.MoveToWorld(new Point3D(1121, 959, -41), Map.TerMur);

            Console.WriteLine("Experimental Room, Puzzle Room and Maze of Death initialized.");
        }
Ejemplo n.º 18
0
        private static void AddAnimalSpawner(int x, int y, int z)
        {
            if (Utility.RandomDouble() < 0.9750)
            {
                return;
            }

            Map map = Map.Felucca;
            IPooledEnumerable eable = map.GetItemsInRange(new Point3D(x, y, z), 20);

            foreach (Item item in eable)
            {
                if (item is XmlSpawner)
                {
                    if (item.Hue == 346)
                    {
                        return;
                    }
                }
            }

            if (!m_Map.CanFit(x, y, z, 1, false, false))
            {
                return;
            }

            //XmlSpawner(int amount, int minDelay, int maxDelay, int team, int homeRange, int spawnrange, string creatureName)
            XmlSpawner spawner  = null;
            int        MaxSpawn = 0;
            int        Counter  = 0;

            switch (Utility.Random(6))
            {
            case 0:
                spawner = new XmlSpawner(10, 1, 3, 0, 0, Utility.RandomMinMax(10, 15), "Bird");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("FarmChicken", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Eagle", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WildHorse", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WildCrow", 1));

                break;

            case 1:
                spawner = new XmlSpawner(4, 2, 5, 0, 0, Utility.RandomMinMax(1, 2), "BrownBear");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("BlackBear", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("GrizzlyBear", 1));

                break;

            case 2:
                spawner = new XmlSpawner(4, 1, 3, 0, 0, Utility.RandomMinMax(1, 2), "Dog");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Rabbit", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("GiantRat", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("SewerRat", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("JackRabbit", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Rabbit", 4));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WildCrow", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("FarmChicken", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Eagle", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WildHorse", 1));

                break;

            case 3:
                spawner = new XmlSpawner(2, 1, 3, 0, 0, Utility.RandomMinMax(1, 2), "FarmBull");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("FarmCow", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("FarmGoat", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("MountainGoat", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WildBoar", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WildTimberWolf", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("FarmPig", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WildGreatHart", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WildHind", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("FarmSheep", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("FarmHen", 1));

                break;

            case 4:
                spawner = new XmlSpawner(2, 2, 5, 0, 0, Utility.RandomMinMax(1, 2), "WildHorse");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("GreatHart", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WildFawn", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WildHind", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WildGreatHart", 1));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("FarmSheep", 1));

                break;

            case 5:
                spawner = new XmlSpawner(6, 3, 7, 0, 0, Utility.RandomMinMax(1, 4), "Eagle");
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("GiantRat", 3));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("BullFrog", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("MountainGoat", 2));
                spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("WildTimberWolf", 1));

                break;
            }

            //Spawn Orcs ( 30% )
            if (spawner != null)
            {
                switch (Utility.Random(10))
                {
                case 0:
                case 1: // 20%
                    spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("Orc", 1));
                    break;

                case 2: // 10%
                    spawner.m_SpawnObjects.Add(new XmlSpawner.SpawnObject("OrcChopper", 1));
                    break;

                default:
                    break;
                }
            }

            if (spawner != null)
            {
                for (int i = 0; i < Counter; i++)
                {
                    spawner.SpawnObjects[i].SpawnsPerTick = 1;
                }

                spawner.Name = "Animal Spawner #" + m_Count;
                spawner.MoveToWorld(new Point3D(x, y, z), Map.Felucca);
                spawner.MaxCount = MaxSpawn;
                spawner.Hue      = 346;
            }

            ++m_Count;
        }