Exemplo n.º 1
0
        private static void DecorateML_OnCommand(CommandEventArgs e)
        {
            e.Mobile.SendMessage("Generating Mondain's Legacy world decoration, please wait.");

            Decorate.Generate("ml", "Data/Mondain's Legacy/Trammel", Map.Trammel);
            Decorate.Generate("ml", "Data/Mondain's Legacy/Felucca", Map.Felucca);
            Decorate.Generate("ml", "Data/Mondain's Legacy/Ilshenar", Map.Ilshenar);
            Decorate.Generate("ml", "Data/Mondain's Legacy/Malas", Map.Malas);
            Decorate.Generate("ml", "Data/Mondain's Legacy/Tokuno", Map.Tokuno);
            Decorate.Generate("ml", "Data/Mondain's Legacy/TerMur", Map.TerMur);

            PeerlessAltar      altar;
            PeerlessTeleporter tele;
            PrismOfLightPillar pillar;

            // Bedlam - Malas
            altar = new BedlamAltar();

            if (!FindItem(86, 1627, 0, Map.Malas, altar))
            {
                WeakEntityCollection.Add("ml", altar);
                altar.MoveToWorld(new Point3D(86, 1627, 0), Map.Malas);
                tele = new PeerlessTeleporter(altar);
                WeakEntityCollection.Add("ml", tele);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(99, 1617, 50), Map.Malas);
            }

            // Blighted Grove - Trammel
            altar = new BlightedGroveAltar();

            if (!FindItem(6502, 875, 0, Map.Trammel, altar))
            {
                WeakEntityCollection.Add("ml", altar);
                altar.MoveToWorld(new Point3D(6502, 875, 0), Map.Trammel);
                tele = new PeerlessTeleporter(altar);
                WeakEntityCollection.Add("ml", tele);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(6511, 949, 26), Map.Trammel);
            }

            // Blighted Grove - Felucca
            altar = new BlightedGroveAltar();

            if (!FindItem(6502, 875, 0, Map.Felucca, altar))
            {
                WeakEntityCollection.Add("ml", altar);
                altar.MoveToWorld(new Point3D(6502, 875, 0), Map.Felucca);
                tele = new PeerlessTeleporter(altar);
                WeakEntityCollection.Add("ml", tele);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(6511, 949, 26), Map.Felucca);
            }

            // Palace of Paroxysmus - Trammel
            altar = new ParoxysmusAltar();

            if (!FindItem(6511, 506, -34, Map.Trammel, altar))
            {
                WeakEntityCollection.Add("ml", altar);
                altar.MoveToWorld(new Point3D(6511, 506, -34), Map.Trammel);
                tele = new PeerlessTeleporter(altar);
                WeakEntityCollection.Add("ml", tele);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(6518, 365, 46), Map.Trammel);
            }

            // Palace of Paroxysmus - Felucca
            altar = new ParoxysmusAltar();

            if (!FindItem(6511, 506, -34, Map.Felucca, altar))
            {
                WeakEntityCollection.Add("ml", altar);
                altar.MoveToWorld(new Point3D(6511, 506, -34), Map.Felucca);
                tele = new PeerlessTeleporter(altar);
                WeakEntityCollection.Add("ml", tele);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(6518, 365, 46), Map.Felucca);
            }

            // Prism of Light - Trammel
            altar = new PrismOfLightAltar();

            if (!FindItem(6509, 167, 6, Map.Trammel, altar))
            {
                WeakEntityCollection.Add("ml", altar);
                altar.MoveToWorld(new Point3D(6509, 167, 6), Map.Trammel);
                tele = new PeerlessTeleporter(altar);
                WeakEntityCollection.Add("ml", tele);
                tele.PointDest = altar.ExitDest;
                tele.Visible   = true;
                tele.ItemID    = 0xDDA;
                tele.MoveToWorld(new Point3D(6501, 137, -20), Map.Trammel);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x581);
                WeakEntityCollection.Add("ml", pillar);
                pillar.MoveToWorld(new Point3D(6506, 167, 0), Map.Trammel);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x581);
                WeakEntityCollection.Add("ml", pillar);
                pillar.MoveToWorld(new Point3D(6509, 164, 0), Map.Trammel);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x581);
                WeakEntityCollection.Add("ml", pillar);
                pillar.MoveToWorld(new Point3D(6506, 164, 0), Map.Trammel);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x481);
                WeakEntityCollection.Add("ml", pillar);
                pillar.MoveToWorld(new Point3D(6512, 167, 0), Map.Trammel);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x481);
                WeakEntityCollection.Add("ml", pillar);
                pillar.MoveToWorld(new Point3D(6509, 170, 0), Map.Trammel);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x481);
                WeakEntityCollection.Add("ml", pillar);
                pillar.MoveToWorld(new Point3D(6512, 170, 0), Map.Trammel);
            }

            // Prism of Light - Felucca
            altar = new PrismOfLightAltar();

            if (!FindItem(6509, 167, 6, Map.Felucca, altar))
            {
                WeakEntityCollection.Add("ml", altar);
                altar.MoveToWorld(new Point3D(6509, 167, 6), Map.Felucca);
                tele = new PeerlessTeleporter(altar);
                WeakEntityCollection.Add("ml", tele);
                tele.PointDest = altar.ExitDest;
                tele.Visible   = true;
                tele.ItemID    = 0xDDA;
                tele.MoveToWorld(new Point3D(6501, 137, -20), Map.Felucca);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x581);
                WeakEntityCollection.Add("ml", pillar);
                pillar.MoveToWorld(new Point3D(6506, 167, 0), Map.Felucca);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x581);
                WeakEntityCollection.Add("ml", pillar);
                pillar.MoveToWorld(new Point3D(6509, 164, 0), Map.Felucca);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x581);
                WeakEntityCollection.Add("ml", pillar);
                pillar.MoveToWorld(new Point3D(6506, 164, 0), Map.Felucca);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x481);
                WeakEntityCollection.Add("ml", pillar);
                pillar.MoveToWorld(new Point3D(6512, 167, 0), Map.Felucca);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x481);
                WeakEntityCollection.Add("ml", pillar);
                pillar.MoveToWorld(new Point3D(6509, 170, 0), Map.Felucca);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x481);
                WeakEntityCollection.Add("ml", pillar);
                pillar.MoveToWorld(new Point3D(6512, 170, 0), Map.Felucca);
            }

            // The Citadel - Malas
            altar = new CitadelAltar();

            if (!FindItem(89, 1885, 0, Map.Malas, altar))
            {
                WeakEntityCollection.Add("ml", altar);
                altar.MoveToWorld(new Point3D(89, 1885, 0), Map.Malas);
                tele = new PeerlessTeleporter(altar);
                WeakEntityCollection.Add("ml", tele);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(111, 1955, 0), Map.Malas);
            }

            // Twisted Weald - Ilshenar
            altar = new TwistedWealdAltar();

            if (!FindItem(2170, 1255, -60, Map.Ilshenar, altar))
            {
                WeakEntityCollection.Add("ml", altar);
                altar.MoveToWorld(new Point3D(2170, 1255, -60), Map.Ilshenar);
                tele = new PeerlessTeleporter(altar);
                WeakEntityCollection.Add("ml", tele);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(2139, 1271, -57), Map.Ilshenar);
            }

            // Stygian Dragon Lair - Abyss
            StygianDragonPlatform sAltar = new StygianDragonPlatform();

            if (!FindItem(363, 157, 5, Map.TerMur, sAltar))
            {
                WeakEntityCollection.Add("ml", sAltar);
                sAltar.MoveToWorld(new Point3D(363, 157, 0), Map.TerMur);
            }

            //Medusa Lair - Abyss
            MedusaPlatform mAltar = new MedusaPlatform();

            if (!FindItem(822, 756, 56, Map.TerMur, mAltar))
            {
                WeakEntityCollection.Add("ml", sAltar);
                mAltar.MoveToWorld(new Point3D(822, 756, 56), Map.TerMur);
            }

            e.Mobile.SendMessage("Mondain's Legacy world generating complete.");
        }
Exemplo n.º 2
0
        private static void DecorateML_OnCommand(CommandEventArgs e)
        {
            e.Mobile.SendMessage("Generating Mondain's Legacy world decoration, please wait.");

            Decorate.Generate("Data/Mondain's Legacy/Trammel", Map.Trammel);
            Decorate.Generate("Data/Mondain's Legacy/Felucca", Map.Felucca);
            Decorate.Generate("Data/Mondain's Legacy/Ilshenar", Map.Ilshenar);
            Decorate.Generate("Data/Mondain's Legacy/Malas", Map.Malas);
            Decorate.Generate("Data/Mondain's Legacy/Tokuno", Map.Tokuno);

            PeerlessAltar      altar;
            PeerlessTeleporter tele;
            PrismOfLightPillar pillar;

            // Bedlam - Malas
            altar = new BedlamAltar();

            if (!FindItem(86, 1627, 0, Map.Malas, altar))
            {
                altar = new BedlamAltar();
                altar.MoveToWorld(new Point3D(86, 1627, 0), Map.Malas);
                tele           = new PeerlessTeleporter(altar);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(99, 1617, 50), Map.Malas);
            }

            // Blighted Grove - Trammel
            altar = new BlightedGroveAltar();

            if (!FindItem(6502, 875, 0, Map.Trammel, altar))
            {
                altar.MoveToWorld(new Point3D(6502, 875, 0), Map.Trammel);
                tele           = new PeerlessTeleporter(altar);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(6511, 949, 26), Map.Trammel);
            }

            // Blighted Grove - Felucca
            altar = new BlightedGroveAltar();

            if (!FindItem(6502, 875, 0, Map.Felucca, altar))
            {
                altar.MoveToWorld(new Point3D(6502, 875, 0), Map.Felucca);
                tele           = new PeerlessTeleporter(altar);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(6511, 949, 26), Map.Felucca);
            }

            // Palace of Paroxysmus - Trammel
            altar = new ParoxysmusAltar();

            if (!FindItem(6511, 506, -34, Map.Trammel, altar))
            {
                altar.MoveToWorld(new Point3D(6511, 506, -34), Map.Trammel);
                tele           = new PeerlessTeleporter(altar);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(6518, 365, 46), Map.Trammel);
            }

            // Palace of Paroxysmus - Felucca
            altar = new ParoxysmusAltar();

            if (!FindItem(6511, 506, -34, Map.Felucca, altar))
            {
                altar.MoveToWorld(new Point3D(6511, 506, -34), Map.Felucca);
                tele           = new PeerlessTeleporter(altar);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(6518, 365, 46), Map.Felucca);
            }

            // Prism of Light - Trammel
            altar = new PrismOfLightAltar();

            if (!FindItem(6509, 167, 6, Map.Trammel, altar))
            {
                altar.MoveToWorld(new Point3D(6509, 167, 6), Map.Trammel);
                tele           = new PeerlessTeleporter(altar);
                tele.PointDest = altar.ExitDest;
                tele.Visible   = true;
                tele.ItemID    = 0xDDA;
                tele.MoveToWorld(new Point3D(6501, 137, -20), Map.Trammel);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x581);
                pillar.MoveToWorld(new Point3D(6506, 167, 0), Map.Trammel);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x581);
                pillar.MoveToWorld(new Point3D(6509, 164, 0), Map.Trammel);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x581);
                pillar.MoveToWorld(new Point3D(6506, 164, 0), Map.Trammel);


                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x481);
                pillar.MoveToWorld(new Point3D(6512, 167, 0), Map.Trammel);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x481);
                pillar.MoveToWorld(new Point3D(6509, 170, 0), Map.Trammel);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x481);
                pillar.MoveToWorld(new Point3D(6512, 170, 0), Map.Trammel);
            }

            // Prism of Light - Felucca
            altar = new PrismOfLightAltar();

            if (!FindItem(6509, 167, 6, Map.Felucca, altar))
            {
                altar.MoveToWorld(new Point3D(6509, 167, 6), Map.Felucca);
                tele           = new PeerlessTeleporter(altar);
                tele.PointDest = altar.ExitDest;
                tele.Visible   = true;
                tele.ItemID    = 0xDDA;
                tele.MoveToWorld(new Point3D(6501, 137, -20), Map.Felucca);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x581);
                pillar.MoveToWorld(new Point3D(6506, 167, 0), Map.Felucca);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x581);
                pillar.MoveToWorld(new Point3D(6509, 164, 0), Map.Felucca);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x581);
                pillar.MoveToWorld(new Point3D(6506, 164, 0), Map.Felucca);


                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x481);
                pillar.MoveToWorld(new Point3D(6512, 167, 0), Map.Felucca);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x481);
                pillar.MoveToWorld(new Point3D(6509, 170, 0), Map.Felucca);

                pillar = new PrismOfLightPillar((PrismOfLightAltar)altar, 0x481);
                pillar.MoveToWorld(new Point3D(6512, 170, 0), Map.Felucca);
            }

            // Citadel - Malas
            altar = new CitadelAltar();

            if (!FindItem(90, 1884, 0, Map.Malas, altar))
            {
                altar.MoveToWorld(new Point3D(90, 1884, 0), Map.Malas);
                tele           = new PeerlessTeleporter(altar);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(114, 1955, 0), Map.Malas);
            }

            // Twisted Weald - Ilshenar
            altar = new TwistedWealdAltar();

            if (!FindItem(2170, 1255, -60, Map.Ilshenar, altar))
            {
                altar.MoveToWorld(new Point3D(2170, 1255, -60), Map.Ilshenar);
                tele           = new PeerlessTeleporter(altar);
                tele.PointDest = altar.ExitDest;
                tele.MoveToWorld(new Point3D(2139, 1271, -57), Map.Ilshenar);
            }

            e.Mobile.SendMessage("Mondain's Legacy world generating complete.");
        }