Beispiel #1
0
        public override void IncreaseTier()
        {
            base.IncreaseTier();

            List <object> list = new List <object>();
            Item          c;

            switch (Tier)
            {
            case 1:
                // dishing stump
                c = new Static(0x1865);
                c.MoveToWorld(new Point3D(1417, 1590, 30), Map);
                list.Add(c);

                // pickaxe
                c = new Pickaxe();
                c.MoveToWorld(new Point3D(1414, 1588, 47), Map);
                c.Movable = false;
                list.Add(c);

                // sewing kit
                c = new SewingKit();
                c.MoveToWorld(new Point3D(1414, 1592, 42), Map);
                c.Movable = false;
                list.Add(c);

                // empty tool box
                c = new Static(0x1EB7);
                c.MoveToWorld(new Point3D(1415, 1588, 47), Map);
                list.Add(c);

                // silver wire
                c = new Static(0x1EB7)
                {
                    Weight = 5.0
                };
                c.MoveToWorld(new Point3D(1417, 1592, 46), Map);
                list.Add(c);

                // gold wire
                c = new Static(0x1EB7)
                {
                    Weight = 5.0
                };
                c.MoveToWorld(new Point3D(1417, 1592, 47), Map);
                list.Add(c);

                // silver ingots
                c = new Static(0x1BF6);
                c.MoveToWorld(new Point3D(1416, 1592, 44), Map);
                list.Add(c);
                break;
            }

            if (list.Count > 0)
            {
                Tiers.Add(list);
            }
        }
Beispiel #2
0
        public override void IncreaseTier()
        {
            base.IncreaseTier();

            List <object> list = new List <object>();
            Item          c;

            switch (Tier)
            {
            case 1:
                // decorative armor
                c = new Static(0x1508);
                c.MoveToWorld(new Point3D(1409, 1610, 30), Map);
                list.Add(c);

                // cannon
                c = new Static(0xE94);
                c.MoveToWorld(new Point3D(1409, 1610, 30), Map);
                list.Add(c);

                c = new Static(0xE95);
                c.MoveToWorld(new Point3D(1410, 1610, 30), Map);
                list.Add(c);

                c = new Static(0xE96);
                c.MoveToWorld(new Point3D(1411, 1610, 30), Map);
                list.Add(c);
                break;
            }

            if (list.Count > 0)
            {
                Tiers.Add(list);
            }
        }
        public PreviewHouse(int multiID)
            : base(multiID)
        {
            m_Components = new List<Item>();

            MultiComponentList mcl = Components;

            for (int i = 1; i < mcl.List.Length; ++i)
            {
                MultiTileEntry entry = mcl.List[i];

                if (entry.m_Flags == 0)
                {
                    //Item item = new Static((int)entry.m_ItemID);
                    Item item = new Static(entry.m_ItemID & TileData.MaxItemValue);

                    item.MoveToWorld(new Point3D(X + entry.m_OffsetX, Y + entry.m_OffsetY, Z + entry.m_OffsetZ), Map);

                    m_Components.Add(item);
                }
            }

            // check to see if house is custom
            if (multiID >= 0x13ec && multiID <= 0x147b)
            {
                AddSignAndPost(mcl);
                AddExteriorStairs(mcl);
            }

            m_Timer = new DecayTimer(this);
            m_Timer.Start();
        }
        public PreviewHouse(int multiID)
            : base(multiID)
        {
            m_Components = new List<Item>();

            MultiComponentList mcl = Components;

            for (int i = 1; i < mcl.List.Length; ++i)
            {
                MultiTileEntry entry = mcl.List[i];

                if (entry.m_Flags == 0)
                {
                    //Item item = new Static((int)entry.m_ItemID);
                    Item item = new Static(entry.m_ItemID & TileData.MaxItemValue);

                    item.MoveToWorld(new Point3D(X + entry.m_OffsetX, Y + entry.m_OffsetY, Z + entry.m_OffsetZ), Map);

                    m_Components.Add(item);
                }
            }

            m_Timer = new DecayTimer(this);
            m_Timer.Start();
        }
Beispiel #5
0
        /// <summary>
        /// Builds the structure
        /// </summary>
        /// <param name="p">The point at which to build</param>
        private void BuildCallback(Point3D p)
        {
            if (m_User.Map == null || m_User.Map == Map.Internal)
            {
                return;
            }

            m_Building.Clear();

            // Calculate bounds
            Point2D start = new Point2D(int.MaxValue, int.MaxValue);
            Point2D end   = Point2D.Zero;
            int     z     = int.MaxValue;

            foreach (Point2D point in m_Tiles.Keys)
            {
                start.X = Math.Min(start.X, point.X);
                start.Y = Math.Min(start.Y, point.Y);
                end.X   = Math.Max(end.X, point.X);
                end.Y   = Math.Max(end.Y, point.Y);

                List <Server.StaticTile> tiles = m_Tiles[point] as List <Server.StaticTile>;
                foreach (StaticTile t in tiles)
                {
                    z = Math.Min(z, t.Z);
                }
            }

            Point2D center = Point2D.Zero;

            center.X = start.X + ((end.X - start.X) / 2);
            center.Y = start.Y + ((end.Y - start.Y) / 2);

            foreach (Point2D point in m_Tiles.Keys)
            {
                int xOffset = point.X - center.X;
                int yOffset = point.Y - center.Y;

                List <Server.StaticTile> tiles = m_Tiles[point] as List <Server.StaticTile>;

                if (tiles == null || tiles.Count == 0)
                {
                    continue;
                }

                foreach (StaticTile t in tiles)
                {
                    int zOffset = t.Z - p.Z;

                    Server.Items.Static item = new Server.Items.Static(t.ID);
                    item.MoveToWorld(new Point3D(p.X + xOffset, p.Y + yOffset, p.Z + zOffset), m_User.Map);
                    m_Building.Add(item);
                }
            }
            ResendGump();
        }
Beispiel #6
0
        public override void IncreaseTier()
        {
            base.IncreaseTier();

            List <object> list = new List <object>();
            Item          c;

            switch (Tier)
            {
            case 1:
                // brush
                c = new Static(0x1373);
                c.MoveToWorld(new Point3D(1415, 1593, 67), Map);
                list.Add(c);

                // horse shoes
                c = new Static(0xFB6);
                c.MoveToWorld(new Point3D(1415, 1595, 50), Map);
                list.Add(c);

                // bridle
                c = new Static(0x1375);
                c.MoveToWorld(new Point3D(1416, 1593, 67), Map);
                list.Add(c);

                // brush
                c = new Static(0x1372);
                c.MoveToWorld(new Point3D(1417, 1593, 67), Map);
                list.Add(c);

                // horse barding
                c = new Static(0x1378);
                c.MoveToWorld(new Point3D(1417, 1595, 50), Map);
                list.Add(c);

                c = new Static(0x1379);
                c.MoveToWorld(new Point3D(1417, 1594, 50), Map);
                list.Add(c);

                // shepard's crook
                c = new ShepherdsCrook();
                c.MoveToWorld(new Point3D(1417, 1597, 58), Map);

                break;
            }

            if (list.Count > 0)
            {
                Tiers.Add(list);
            }
        }
Beispiel #7
0
        public static void Initialize()
        {
            if (Core.SA && Instance == null)
            {
                Instance = new CrystalLotusPuzzle();
                Instance.MoveToWorld(new Point3D(978, 2876, 37), Map.TerMur);

                var s = new Static(0x283B)
                {
                    Hue  = 1152,
                    Name = "Pristine Crystal Lotus"
                };
                s.MoveToWorld(new Point3D(978, 2876, 47), Map.TerMur);
            }
        }
		public void AddExteriorStairs( MultiComponentList mcl )
		{
			// this won't work correctly without declaring a new mcl so it can then be resized
			MultiComponentList mclNew = new MultiComponentList( MultiData.GetComponents( ItemID ) );
			
			mclNew.Resize( mclNew.Width, mclNew.Height + 1 );
			
			int xCenter = mcl.Center.X;
			int yCenter = mcl.Center.Y;
			int y = mcl.Height;
			
			for ( int x = 1; x < mclNew.Width; ++x ){
				Item stair = new Static((int)0x751);
				stair.MoveToWorld(new Point3D(x - xCenter, y - yCenter, 0), this.Map);
				this.m_Components.Add(stair);
			}
		}
        // Adds sign post, sign hanger, and house sign
        public void AddSignAndPost(MultiComponentList mcl)
        {
            int xoffset = mcl.Min.X;
            int y = mcl.Height - 1 - mcl.Center.Y;

            Item signpost = new Static((int)9);
            signpost.MoveToWorld(new Point3D(X + xoffset, Y + y, Z + 7), this.Map);
            this.m_Components.Add(signpost);

            xoffset = Components.Min.X;
            y = Components.Height - Components.Center.Y;

            Item signhanger = new Static((int)0xB98);
            signhanger.MoveToWorld(new Point3D(X + xoffset, Y + y, Z + 7), this.Map);
            this.m_Components.Add(signhanger);

            Item housesign = new Static((int)0xBD2);
            housesign.MoveToWorld(new Point3D(X + xoffset, Y + y, Z + 7), this.Map);
            this.m_Components.Add(housesign);
        }
Beispiel #10
0
        public override void IncreaseTier()
        {
            base.IncreaseTier();

            List <object> list = new List <object>();
            Item          c;

            switch (Tier)
            {
            case 1:
                // wizard's hat
                c = new WizardsHat();
                c.MoveToWorld(new Point3D(1410, 1603, 57), Map);
                list.Add(c);

                // crystal ball
                c = new Static(0xE2D)
                {
                    Weight = 10.0
                };
                c.MoveToWorld(new Point3D(1410, 1604, 57), Map);
                list.Add(c);

                // spellbook
                c = new Spellbook(0x0, 0xE3B);
                c.MoveToWorld(new Point3D(1408, 1603, 63), Map);
                list.Add(c);

                // garlic
                c = new Garlic();
                c.MoveToWorld(new Point3D(1408, 1603, 62), Map);
                list.Add(c);

                break;
            }

            if (list.Count > 0)
            {
                Tiers.Add(list);
            }
        }
Beispiel #11
0
        private static void GenerateCoral_OnCommand(CommandEventArgs e)
        {
            e.Mobile.SendMessage("Generating Corals...");

            int count = 0;
            for(int i = 0; i < limits.Length; i++)
            {
                Point2D actual = limits[i];
                Point2D next = (i == limits.Length - 1 ? limits[0] : limits[i + 1]);

                for (int x = actual.X, y = actual.Y; x != next.X || y != next.Y;)
                {
                    if (x != next.X)
                    {
                        if (x < next.X) x++;
                        else x--;
                    }
                    if (y != next.Y)
                    {
                        if (y < next.Y) y++;
                        else y--;
                    }
                    
                    Static rock = new Static(rocks[Utility.Random(0, rocks.Count)]);
                    Item blocker = new Blocker();
                    Item losBlocker = new LOSBlocker();

                    int z = map.GetAverageZ(x, y);  // on récupère la hauteur du sol à cet endroit
                    rock.MoveToWorld(new Point3D(x, y, z), map);    // le rocher pour la forme
                    blocker.MoveToWorld(new Point3D(x, y, z), map); // un blocker pour empêcher de passer même avec un sea horse par exemple
                    losBlocker.MoveToWorld(new Point3D(x, y, z), map);  // pour empêcher tout sort de téléport de fonctionner

                    count++;
                }
            }
            e.Mobile.SendMessage(String.Format("{0} Corals have been generated !", count));
        }
Beispiel #12
0
        public PreviewHouse(int multiID)
            : base(multiID)
        {
            this.m_Components = new List<Item>();

            MultiComponentList mcl = this.Components;

            for (int i = 1; i < mcl.List.Length; ++i)
            {
                MultiTileEntry entry = mcl.List[i];

                if (entry.m_Flags == 0)
                {
                    Item item = new Static((int)entry.m_ItemID);

                    item.MoveToWorld(new Point3D(this.X + entry.m_OffsetX, this.Y + entry.m_OffsetY, this.Z + entry.m_OffsetZ), this.Map);

                    this.m_Components.Add(item);
                }
            }

            this.m_Timer = new DecayTimer(this);
            this.m_Timer.Start();
        }
Beispiel #13
0
        public override void IncreaseTier()
        {
            base.IncreaseTier();

            List <object> list = new List <object>();
            Item          c;

            // don't know names above lev 6
            switch (Tier)
            {
            case 1:
                c = new BookOfChivalry();
                c.MoveToWorld(new Point3D(2924, 979, -18), Map);
                c.Movable = false;
                list.Add(c);

                c = new Longsword();
                c.MoveToWorld(new Point3D(2923, 980, -18), Map);
                c.Movable = false;
                c.ItemID  = 0x26CF;
                list.Add(c);

                c = new Shirt();
                c.MoveToWorld(new Point3D(2924, 978, -18), Map);
                c.Movable = false;
                c.ItemID  = 0x2662;
                c.Name    = "Crisp White Shirt";
                list.Add(c);
                break;

            case 2:
                c = new GraveDust();
                c.MoveToWorld(new Point3D(2921, 972, -17), Map);
                c.Movable = false;
                list.Add(c);

                c = new NoxCrystal();
                c.MoveToWorld(new Point3D(2921, 972, -17), Map);
                c.Movable = false;
                list.Add(c);

                c = new Static(0xF91);
                c.MoveToWorld(new Point3D(2921, 972, -17), Map);
                c.Movable = false;
                list.Add(c);

                c = new NecromancerSpellbook();
                c.MoveToWorld(new Point3D(2922, 972, -18), Map);
                c.Movable = false;
                list.Add(c);

                c = new AnimateDeadScroll();
                c.MoveToWorld(new Point3D(2923, 972, -18), Map);
                c.Movable = false;
                list.Add(c);

                c = new HorrificBeastScroll();
                c.MoveToWorld(new Point3D(2923, 972, -18), Map);
                c.Movable = false;
                list.Add(c);

                c = new VampiricEmbraceScroll();
                c.MoveToWorld(new Point3D(2923, 971, -20), Map);
                c.Movable = false;
                list.Add(c);

                c = new Static(0xFDD);
                c.MoveToWorld(new Point3D(2922, 971, -21), Map);
                list.Add(c);

                c = new Static(0xFDE);
                c.MoveToWorld(new Point3D(2923, 971, -21), Map);
                list.Add(c);

                break;

            case 3:
                c = new JesterSuit();
                c.MoveToWorld(new Point3D(2919, 985, -16), Map);
                c.Movable = false;
                list.Add(c);

                c = new LocalizedStatic(0xE74, 1073424);
                c.MoveToWorld(new Point3D(2919, 984, -11), Map);
                c.Movable = false;
                c.Weight  = 50.0;
                c.Hue     = 0x113;
                list.Add(c);

                c = new JesterHat();
                c.MoveToWorld(new Point3D(2919, 983, -13), Map);
                c.Movable = false;
                c.Hue     = 0x113;
                list.Add(c);

                break;

            case 4:
                c = new Static(0xD25);
                c.MoveToWorld(new Point3D(2916, 984, -13), Map);
                c.Movable = false;
                list.Add(c);

                c = new Static(0x20D9);
                c.MoveToWorld(new Point3D(2916, 982, -12), Map);
                c.Name = "Gargoyle";
                list.Add(c);

                c = new Static(0x2132);
                c.MoveToWorld(new Point3D(2914, 982, -9), Map);
                list.Add(c);

                c = new Static(0x25B6);
                c.MoveToWorld(new Point3D(2913, 982, -13), Map);
                list.Add(c);

                c = new Static(0x25B6);
                c.MoveToWorld(new Point3D(2913, 982, -13), Map);
                list.Add(c);

                c = new Static(0x222E);
                c.MoveToWorld(new Point3D(2915, 983, -14), Map);
                list.Add(c);

                c = new Static(0x2211);
                c.MoveToWorld(new Point3D(2914, 984, -13), Map);
                list.Add(c);

                break;

            case 5:
                c = new LocalizedStatic(0xE30, 1073421);
                c.MoveToWorld(new Point3D(2911, 983, -12), Map);
                c.Weight = 10.0;
                list.Add(c);

                c = new LocalizedStatic(0x2937, 1073422);
                c.MoveToWorld(new Point3D(2911, 984, -13), Map);
                list.Add(c);

                c = new LocalizedStatic(0x12AA, 1073423);
                c.MoveToWorld(new Point3D(2911, 985, -14), Map);
                list.Add(c);

                c = new Static(0xEAF);
                c.MoveToWorld(new Point3D(2910, 985, -21), Map);
                c.Weight = 5.0;
                list.Add(c);

                c = new Static(0xEAE);
                c.MoveToWorld(new Point3D(2910, 986, -21), Map);
                c.Weight = 5.0;
                list.Add(c);

                break;

            case 6:
                c = new Tessen();
                c.MoveToWorld(new Point3D(2910, 966, -17), Map);
                c.Movable = false;
                list.Add(c);

                c = new Shuriken();
                c.MoveToWorld(new Point3D(2910, 965, -17), Map);
                c.Movable = false;
                list.Add(c);

                c = new Static(0x2855);
                c.MoveToWorld(new Point3D(2910, 964, -16), Map);
                c.Weight = 5.0;
                list.Add(c);

                c = new Static(0x241D);
                c.MoveToWorld(new Point3D(2910, 963, -20), Map);
                c.Weight = 5.0;
                list.Add(c);

                c = new Static(0x2409);
                c.MoveToWorld(new Point3D(2910, 963, -17), Map);
                list.Add(c);

                c = new Static(0x2416);
                c.MoveToWorld(new Point3D(2909, 965, -17), Map);
                list.Add(c);

                break;

            case 7:
                c = new Static(0x3069);
                c.MoveToWorld(new Point3D(2914, 964, -21), Map);
                list.Add(c);

                c = new Static(0x306A);
                c.MoveToWorld(new Point3D(2913, 964, -21), Map);
                list.Add(c);

                c = new Static(0x306B);
                c.MoveToWorld(new Point3D(2912, 964, -21), Map);
                list.Add(c);

                c = new ElvenLoveseatEastAddon();
                c.MoveToWorld(new Point3D(2913, 966, -21), Map);
                c.Movable = false;
                list.Add(c);

                c = new Static(0x2CFC);
                c.MoveToWorld(new Point3D(2912, 963, -21), Map);
                list.Add(c);

                c = new LocalizedStatic(0x2D74, 1073425);
                c.MoveToWorld(new Point3D(2914, 963, -21), Map);
                list.Add(c);


                break;

            case 8:
                c = new Static(0x2);
                c.MoveToWorld(new Point3D(2905, 970, -15), Map);
                list.Add(c);

                c = new Static(0x3);
                c.MoveToWorld(new Point3D(2905, 969, -15), Map);
                list.Add(c);

                c = new OrderShield();
                c.MoveToWorld(new Point3D(2905, 971, -17), Map);
                c.Movable = false;
                list.Add(c);

                c = new Static(0x1579);
                c.MoveToWorld(new Point3D(2904, 971, -21), Map);
                list.Add(c);

                c = new Static(0x1613);
                c.MoveToWorld(new Point3D(2908, 969, -21), Map);
                list.Add(c);

                c = new Static(0x1614);
                c.MoveToWorld(new Point3D(2908, 968, -21), Map);
                list.Add(c);

                break;

            case 9:
                c = new Static(0x1526);
                c.MoveToWorld(new Point3D(2905, 976, -15), Map);
                list.Add(c);

                c = new Static(0x1527);
                c.MoveToWorld(new Point3D(2905, 975, -15), Map);
                list.Add(c);

                c = new Static(0x151A);
                c.MoveToWorld(new Point3D(2905, 972, -21), Map);
                list.Add(c);

                c = new Static(0x151A);
                c.MoveToWorld(new Point3D(2905, 977, -21), Map);
                list.Add(c);

                c = new Static(0x151A);
                c.MoveToWorld(new Point3D(2908, 972, -21), Map);
                list.Add(c);

                c = new Static(0x151A);
                c.MoveToWorld(new Point3D(2908, 977, -21), Map);
                list.Add(c);

                c = new Static(0x1514);
                c.MoveToWorld(new Point3D(2904, 975, -17), Map);
                list.Add(c);

                break;

            case 10:
                c = new Static(0x15C5);
                c.MoveToWorld(new Point3D(2904, 982, -21), Map);
                list.Add(c);

                c = new Static(0x15C5);
                c.MoveToWorld(new Point3D(2904, 979, -21), Map);
                list.Add(c);

                c = new Static(0x157B);
                c.MoveToWorld(new Point3D(2904, 981, -21), Map);
                list.Add(c);

                c = new Static(0x14E3);
                c.MoveToWorld(new Point3D(2905, 980, -21), Map);
                list.Add(c);

                c = new Static(0x14E4);
                c.MoveToWorld(new Point3D(2905, 981, -21), Map);
                list.Add(c);

                c = new Static(0x14E5);
                c.MoveToWorld(new Point3D(2906, 981, -21), Map);
                list.Add(c);

                c = new Static(0x14E6);
                c.MoveToWorld(new Point3D(2906, 980, -21), Map);
                list.Add(c);

                c = new ChaosShield();
                c.MoveToWorld(new Point3D(2905, 978, -19), Map);
                c.Movable = false;
                list.Add(c);

                break;

            case 11:
                c = new FemaleStuddedChest();
                c.MoveToWorld(new Point3D(2912, 976, -16), Map);
                c.Movable = false;
                c.Hue     = 0x497;
                list.Add(c);

                c = new Static(0x1EA8);
                c.MoveToWorld(new Point3D(2913, 973, -13), Map);
                c.Hue = 0x497;
                list.Add(c);

                c = new Static(0x20F8);
                c.MoveToWorld(new Point3D(2913, 975, -11), Map);
                c.Hue = 0x113;
                list.Add(c);

                c = new Static(0x20E9);
                c.MoveToWorld(new Point3D(2912, 974, -11), Map);
                c.Name = "Troll";
                list.Add(c);

                c = new Static(0x2607);
                c.MoveToWorld(new Point3D(2913, 974, -11), Map);
                list.Add(c);

                c = new Static(0x25F9);
                c.MoveToWorld(new Point3D(2912, 975, -11), Map);
                list.Add(c);

                break;

            case 12:
                c = new Static(0x1D8A);
                c.MoveToWorld(new Point3D(2915, 976, -13), Map);
                list.Add(c);

                c = new Static(0x1D8B);
                c.MoveToWorld(new Point3D(2916, 976, -13), Map);
                list.Add(c);

                c = new Static(0x234D);
                c.MoveToWorld(new Point3D(2915, 975, -10), Map);
                list.Add(c);

                c = new WizardsHat();
                c.MoveToWorld(new Point3D(2915, 974, -13), Map);
                c.Movable = false;
                list.Add(c);
                break;
            }

            if (list.Count > 0)
            {
                Tiers.Add(list);
            }
        }
Beispiel #14
0
        public override void IncreaseTier()
        { 
            base.IncreaseTier();
			
            List<object> list = new List<object>();
            Item c;
						
            switch ( this.Tier )
            { 
                case 1:
                    // dishing stump
                    c = new Static(0x1865);
                    c.MoveToWorld(new Point3D(1417, 1590, 30), this.Map);
                    list.Add(c);
					
                    // pickaxe
                    c = new Pickaxe();
                    c.MoveToWorld(new Point3D(1414, 1588, 47), this.Map);
                    c.Movable = false;
                    list.Add(c);
					
                    // sewing kit
                    c = new SewingKit();
                    c.MoveToWorld(new Point3D(1414, 1592, 42), this.Map);
                    c.Movable = false;
                    list.Add(c);
					
                    // empty tool box
                    c = new Static(0x1EB7);
                    c.MoveToWorld(new Point3D(1415, 1588, 47), this.Map);
                    list.Add(c);
					
                    // silver wire
                    c = new Static(0x1EB7);
                    c.Weight = 5.0;
                    c.MoveToWorld(new Point3D(1417, 1592, 46), this.Map);
                    list.Add(c);
					
                    // gold wire
                    c = new Static(0x1EB7);
                    c.Weight = 5.0;
                    c.MoveToWorld(new Point3D(1417, 1592, 47), this.Map);
                    list.Add(c);
					
                    // silver ingots
                    c = new Static(0x1BF6);
                    c.MoveToWorld(new Point3D(1416, 1592, 44), this.Map);
                    list.Add(c);				
                    break;				
            }
			
            if (list.Count > 0)
                this.Tiers.Add(list);
        }
Beispiel #15
0
        public override void IncreaseTier()
        { 
            base.IncreaseTier();
			
            List<object> list = new List<object>();
            Item c;			
			
            switch ( this.Tier )
            { 
                case 1:					
                    // easel with canvas
                    c = new Static(0xF66);
                    c.MoveToWorld(new Point3D(1417, 1602, 30), this.Map);
                    list.Add(c);
					
                    // table
                    c = new Static(0xB6B);
                    c.MoveToWorld(new Point3D(1417, 1606, 30), this.Map);
                    list.Add(c);
					
                    c = new Static(0xB6D);
                    c.MoveToWorld(new Point3D(1417, 1605, 30), this.Map);
                    list.Add(c);
					
                    c = new Static(0xB6C);
                    c.MoveToWorld(new Point3D(1417, 1604, 30), this.Map);
                    list.Add(c);
					
                    // bonsai tree					
                    c = new Static(0x28DC);
                    c.MoveToWorld(new Point3D(1417, 1604, 36), this.Map);
                    list.Add(c);
					
                    // bottles		
                    c = new Static(0xE29);
                    c.MoveToWorld(new Point3D(1417, 1605, 37), this.Map);
                    list.Add(c);		
					
                    c = new Static(0xE28);
                    c.MoveToWorld(new Point3D(1417, 1605, 36), this.Map);
                    list.Add(c);		
					
                    c = new Static(0xE2C);
                    c.MoveToWorld(new Point3D(1417, 1606, 37), this.Map);
                    list.Add(c);
					
                    // pen and ink					
                    c = new Static(0xFBF);
                    c.MoveToWorld(new Point3D(1417, 1606, 36), this.Map);
                    list.Add(c);
					
                    // cooking book			
                    c = new Static(0xFBE);
                    c.MoveToWorld(new Point3D(1418, 1606, 42), this.Map);
                    c.Name = "A Cookbook";
                    c.Weight = 5.0;
                    list.Add(c);
                    break;				
            }
			
            if (list.Count > 0)
                this.Tiers.Add(list);
        }
Beispiel #16
0
        public bool GenerateSpawners()
        {
            Spawner    spawner;
            Static     item;
            Teleporter tele;
            bool       erased = RemoveSpawners();

            #region Angels Snack
            // Loot/Quest, found on Qunia
            #endregion

            #region Autolife
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1959, 513, -20), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueTrappedPixie");
            BlueStuff.Add(spawner);
            #endregion

            #region Bad Breath
            #endregion

            #region Blow Up
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1650, 351, -3), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueBomb");
            spawner.Count     = 5;
            spawner.HomeRange = 8;
            BlueStuff.Add(spawner);
            #endregion

            #region Demi
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(327, 532, -34), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueImp");
            spawner.Count     = 2;
            spawner.HomeRange = 8;
            spawner           = new Spawner();
            spawner.MoveToWorld(new Point3D(327, 532, -33), Map.Ilshenar);
            spawner.SpawnNames.Add("Imp");
            spawner.Count     = 3;
            spawner.HomeRange = 8;
            BlueStuff.Add(spawner);
            #endregion

            #region Dragon Force
            spawner = new Spawner();             // [go 1178 1512, -68
            spawner.MoveToWorld(new Point3D(1178, 1512, -68), Map.Ilshenar);
            spawner.SpawnNames.Add("BLDragon");
            spawner.HomeRange = 6;
            BlueStuff.Add(spawner);
            #endregion

            #region Drain Touch
            // Self Spawning
            #endregion

            #region Fifty Needles
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1530, 671, -14), Map.Ilshenar);
            spawner.Count = 3;
            spawner.SpawnNames.Add("BlueCactuar");
            BlueStuff.Add(spawner);
            #endregion

            #region Flame Thrower
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1931, 36, -28), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueGolem");
            BlueStuff.Add(spawner);
            #endregion

            #region Frog Drop
            QuinaTele quinatele = new QuinaTele();
            quinatele.MoveToWorld(new Point3D(919, 993, 12), Map.Ilshenar);
            BlueStuff.Add(quinatele);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1757, 888, -24), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueQuina");
            BlueStuff.Add(spawner);
            // Frogs
            item = new Static(8553);
            item.MoveToWorld(new Point3D(1778, 872, -24), Map.Ilshenar);
            BlueStuff.Add(item);
            item = new Static(8552);
            item.MoveToWorld(new Point3D(1777, 872, -24), Map.Ilshenar);
            BlueStuff.Add(item);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1778, 873, -25), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1647, 721, -13);
            BlueStuff.Add(tele);
            FrogSwampAddon frogdropaddon = new FrogSwampAddon();
            frogdropaddon.MoveToWorld(new Point3D(1645, 699, -24), Map.Ilshenar);
            BlueStuff.Add(frogdropaddon);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1647, 721, -13), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1778, 873, -25);
            BlueStuff.Add(tele);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1657, 711, -23), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueFrog");
            spawner.HomeRange = 8;
            spawner.Count     = 10;
            BlueStuff.Add(spawner);
            #endregion

            #region Goblin Punch
            GoblinCaveAddon goblincaveaddon = new GoblinCaveAddon();
            goblincaveaddon.MoveToWorld(new Point3D(1906, 674, -21), Map.Ilshenar);
            BlueStuff.Add(goblincaveaddon);
            // Teleporters
            item = new Static(8553);
            item.MoveToWorld(new Point3D(1706, 589, 13), Map.Ilshenar);
            BlueStuff.Add(item);
            item = new Static(8553);
            item.MoveToWorld(new Point3D(1707, 589, 13), Map.Ilshenar);
            BlueStuff.Add(item);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1706, 590, 11), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1973, 832, -4);
            BlueStuff.Add(tele);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1707, 590, 12), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1974, 832, -4);
            BlueStuff.Add(tele);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1973, 832, -4), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1706, 590, 11);
            BlueStuff.Add(tele);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1974, 832, -4), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1707, 590, 12);
            BlueStuff.Add(tele);
            // Spawners
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1976, 808, -11), Map.Ilshenar);                 // Main Room
            spawner.SpawnNames.Add("BlueGoblinCaster");
            spawner.SpawnNames.Add("BlueGoblinMelee");
            spawner.HomeRange = 10;
            spawner.Count     = 10;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(2007, 796, -21), Map.Ilshenar);                 // Side of the Main Room
            spawner.SpawnNames.Add("BlueGoblinCaster");
            spawner.SpawnNames.Add("BlueGoblinMelee");
            spawner.HomeRange = 8;
            spawner.Count     = 3;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1968, 777, -21), Map.Ilshenar);                 // First 'T'
            spawner.SpawnNames.Add("BlueGoblinCaster");
            spawner.SpawnNames.Add("BlueGoblinMelee");
            spawner.HomeRange = 12;
            spawner.Count     = 5;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1923, 792, -21), Map.Ilshenar);                 // Top of Circle
            spawner.SpawnNames.Add("BlueGoblinCaster");
            spawner.SpawnNames.Add("BlueGoblinMelee");
            spawner.HomeRange = 12;
            spawner.Count     = 5;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1938, 807, -21), Map.Ilshenar);                 // Bottom of Circle
            spawner.SpawnNames.Add("Beetle");
            spawner.SpawnNames.Add("Beetle");
            spawner.SpawnNames.Add("Beetle");
            spawner.SpawnNames.Add("Beetle");
            spawner.SpawnNames.Add("Beetle");
            spawner.SpawnNames.Add("FireBeetle");
            spawner.Count = 2;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1995, 758, -21), Map.Ilshenar);                 // Another Cross Way
            spawner.SpawnNames.Add("BlueGoblinCaster");
            spawner.SpawnNames.Add("BlueGoblinMelee");
            spawner.HomeRange = 12;
            spawner.Count     = 5;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1979, 742, -21), Map.Ilshenar);                 // Just after the one above.
            spawner.SpawnNames.Add("BlueGoblinCaster");
            spawner.SpawnNames.Add("BlueGoblinMelee");
            spawner.HomeRange = 12;
            spawner.Count     = 5;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1963, 727, -21), Map.Ilshenar);                 // 'T' headed to the 2nd level
            spawner.SpawnNames.Add("BlueGoblinCaster");
            spawner.SpawnNames.Add("BlueGoblinMelee");
            spawner.HomeRange = 12;
            spawner.Count     = 5;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1945, 762, -21), Map.Ilshenar);                 // Dirt Dead End (beetle here)
            spawner.SpawnNames.Add("BlueGoblinCaster");
            spawner.SpawnNames.Add("BlueGoblinMelee");
            spawner.SpawnNames.Add("BlueGoblinCaster");
            spawner.SpawnNames.Add("BlueGoblinMelee");
            spawner.SpawnNames.Add("BlueGoblin");
            spawner.HomeRange = 12;
            spawner.Count     = 5;
            BlueStuff.Add(spawner);
            #endregion

            #region Guard Off
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(318, 1228, -38), Map.Ilshenar);
            spawner.HomeRange = 8;
            spawner.SpawnNames.Add("BlueRuneBeetle");
            BlueStuff.Add(spawner);
            #endregion

            #region Level 4 Holy
            // See White Wind
            #endregion

            #region Limit Glove
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(907, 1283, -46), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueCatoblepas");
            BlueStuff.Add(spawner);
            #endregion

            #region Magic Hammer
            #endregion

            #region Matra Magic
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1080, 1060, 0), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueTurkey");
            spawner.HomeRange = 15;
            spawner.Count     = 10;
            spawner.MinDelay  = TimeSpan.FromSeconds(30);
            spawner.MaxDelay  = TimeSpan.FromSeconds(30);
            BlueStuff.Add(spawner);
            #endregion

            #region Mighty Guard
            BeetleCaveAddon beetlecaveaddon = new BeetleCaveAddon();
            beetlecaveaddon.MoveToWorld(new Point3D(1952, 567, -26), Map.Ilshenar);
            BlueStuff.Add(beetlecaveaddon);

            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1963, 684, -21), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(2025, 701, -9);
            BlueStuff.Add(tele);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(2025, 701, -9), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1963, 684, -21);
            BlueStuff.Add(tele);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(2026, 701, -9), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1963, 684, -21);
            BlueStuff.Add(tele);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(2025, 701, -9), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1963, 684, -21);
            BlueStuff.Add(tele);
            // Spawners
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(2024, 675, -26), Map.Ilshenar);                 // First Junction
            spawner.SpawnNames.Add("BlueDullCopperElemental");
            spawner.Count = 3;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1993, 675, -26), Map.Ilshenar);                 // Near Center of Plus: Guards
            spawner.SpawnNames.Add("BlueShadowIronElemental");
            spawner.Count = 3;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1993, 648, -26), Map.Ilshenar);                 // End of Plus
            spawner.SpawnNames.Add("BlueMixedOreElemental");
            spawner.HomeRange = 1;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(2042, 660, -26), Map.Ilshenar);                 // Minor dead End T
            spawner.SpawnNames.Add("BlueCopperElemental");
            spawner.Count = 3;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(2058, 640, -26), Map.Ilshenar);                 // Right Before Big Room
            spawner.SpawnNames.Add("BlueBronzeElemental");
            spawner.Count = 3;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(2076, 576, -26), Map.Ilshenar);                 // NE/E Meet Up
            spawner.SpawnNames.Add("BlueIronBeetle");
            spawner.Count = 3;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(2019, 613, -26), Map.Ilshenar);                 // W Dead End
            spawner.HomeRange = 2;
            spawner.SpawnNames.Add("BlueGoldElemental");
            spawner.Count = 3;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(2021, 586, -26), Map.Ilshenar);                 // First Corner Headed to Lv 3
            spawner.Count = 3;
            spawner.SpawnNames.Add("BlueAgapiteElemental");
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1977, 605, -26), Map.Ilshenar);                 // Second Corner Headed to Lv 3
            spawner.HomeRange = 10;
            spawner.Count     = 8;
            spawner.SpawnNames.Add("BlueEarthElemental");
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(2049, 607, -26), Map.Ilshenar);                 // Center of Large Room
            spawner.SpawnNames.Add("BlueEarthElemental");
            spawner.HomeRange = 8;
            spawner.Count     = 10;
            BlueStuff.Add(spawner);
            #endregion

            #region Mindblast
            // Teleporters
            Moongate moon = new Moongate();
            moon.Dispellable = false;
            moon.Target      = new Point3D(362, 666, -28);
            moon.TargetMap   = Map.Ilshenar;
            moon.Hue         = 991;
            moon.Name        = "To a far off place...";
            moon.MoveToWorld(new Point3D(1183, 1130, -5), Map.Ilshenar);
            BlueStuff.Add(moon);

            item     = new Static(14186);
            item.Hue = 991;
            item.MoveToWorld(new Point3D(1183, 1130, -5), Map.Ilshenar);
            BlueStuff.Add(item);

            ArcaneCircleAddon arcanecircleaddon = new ArcaneCircleAddon();
            arcanecircleaddon.Hue = 991;
            arcanecircleaddon.MoveToWorld(new Point3D(1183, 1130, -5), Map.Ilshenar);
            BlueStuff.Add(arcanecircleaddon);

            moon             = new Moongate();
            moon.Dispellable = false;
            moon.Target      = new Point3D(1183, 1130, -5);
            moon.TargetMap   = Map.Ilshenar;
            moon.Hue         = 991;
            moon.Name        = "Back to your reality.";
            moon.MoveToWorld(new Point3D(362, 666, -28), Map.Ilshenar);
            BlueStuff.Add(moon);

            // Area
            MindflayerAddon mindflayeraddon = new MindflayerAddon();
            mindflayeraddon.MoveToWorld(new Point3D(323, 658, -28), Map.Ilshenar);
            BlueStuff.Add(mindflayeraddon);
            new MindflayerRegion();

            // Spawners
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(329, 666, -28), Map.Ilshenar);
            spawner.Count = 2;
            spawner.SpawnNames.Add("BlueMindflayer");
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(338, 666, -28), Map.Ilshenar);
            spawner.Count = 2;
            spawner.SpawnNames.Add("BlueMindflayer");
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(347, 666, -28), Map.Ilshenar);
            spawner.Count = 2;
            spawner.SpawnNames.Add("BlueMindflayer");
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(355, 666, -28), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueMindflayer");
            BlueStuff.Add(spawner);
            #endregion

            #region Night
            #endregion

            #region Poison Claw
            // Quest
            #endregion

            #region Shadow Flare
            // Quest
            #endregion

            #region Shield
            #endregion

            #region Stare
            item     = new Static(1180);
            item.Hue = 1;
            item.MoveToWorld(new Point3D(1960, 642, -26), Map.Ilshenar);
            BlueStuff.Add(item);
            item     = new Static(1180);
            item.Hue = 1;
            item.MoveToWorld(new Point3D(1961, 642, -26), Map.Ilshenar);
            BlueStuff.Add(item);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1960, 642, -26), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1962, 495, 39);
            BlueStuff.Add(tele);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1961, 642, -26), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1962, 495, 39);
            BlueStuff.Add(tele);
            BeholderCaveAddon beholdercave = new BeholderCaveAddon();
            beholdercave.MoveToWorld(new Point3D(1948, 481, -20), Map.Ilshenar);
            BlueStuff.Add(beholdercave);

            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1962, 496, 57), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1961, 642, -26);
            BlueStuff.Add(tele);

            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1977, 488, 27), Map.Ilshenar);
            spawner.SpawnNames.Add("Gazer");
            spawner.Count = 3;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1979, 505, 7), Map.Ilshenar);
            spawner.SpawnNames.Add("ElderGazer");
            spawner.Count = 3;
            BlueStuff.Add(spawner);
            item     = new Static(1180);
            item.Hue = 1;
            item.MoveToWorld(new Point3D(1952, 515, -20), Map.Ilshenar);
            BlueStuff.Add(item);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1952, 515, -20), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1959, 542, 40);
            BlueStuff.Add(tele);

            item = new Static(3024);               // Sign
            item.MoveToWorld(new Point3D(1951, 515, -26), Map.Ilshenar);
            item.Name = "Warning! Point of no return (without recall).";
            BlueStuff.Add(item);
            item = new Static(19);               // Pole
            item.MoveToWorld(new Point3D(1951, 515, -20), Map.Ilshenar);
            BlueStuff.Add(item);

            AnkhNorth ankh = new AnkhNorth(true);
            ankh.Hue = 1109;
            ankh.MoveToWorld(new Point3D(1955, 540, -20), Map.Ilshenar);
            BlueStuff.Add(ankh);

            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1975, 546, -20), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueBeholder");
            spawner.MinDelay = TimeSpan.FromMinutes(1);
            spawner.MaxDelay = TimeSpan.FromMinutes(3);
            BlueStuff.Add(spawner);
            #endregion

            #region Switch
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(607, 1315, -55), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueMongbat");
            spawner.Count     = 5;
            spawner.HomeRange = 8;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(607, 1315, -54), Map.Ilshenar);
            spawner.Count     = 15;
            spawner.HomeRange = 8;
            spawner.SpawnNames.Add("Mongbat");
            BlueStuff.Add(spawner);
            #endregion

            #region Thrust Kick
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1412, 804, -24), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueSkitteringHopper");
            spawner.Count     = 3;
            spawner.HomeRange = 8;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1412, 804, -24), Map.Ilshenar);
            spawner.SpawnNames.Add("SkitteringHopper");
            spawner.Count     = 5;
            spawner.HomeRange = 8;
            BlueStuff.Add(spawner);
            #endregion

            #region Trine
            #endregion

            #region Vanish
            #endregion

            #region White Wind
            // A to B
            item = new Static(14186);
            item.MoveToWorld(new Point3D(1463, 270, 42), Map.Ilshenar);
            BlueStuff.Add(item);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1463, 270, 42), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1191, 498, 103);
            BlueStuff.Add(tele);
            // B to A
            item = new Static(14186);
            item.MoveToWorld(new Point3D(1191, 498, 103), Map.Ilshenar);
            BlueStuff.Add(item);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1191, 498, 103), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1463, 270, 42);
            BlueStuff.Add(tele);
            // Walk over fix
            item = new Static(16168);
            item.MoveToWorld(new Point3D(1194, 507, 104), Map.Ilshenar);
            BlueStuff.Add(item);
            item = new Static(16168);
            item.MoveToWorld(new Point3D(1194, 508, 104), Map.Ilshenar);
            BlueStuff.Add(item);
            item = new Static(16168);
            item.MoveToWorld(new Point3D(1195, 507, 104), Map.Ilshenar);
            BlueStuff.Add(item);
            item = new Static(16168);
            item.MoveToWorld(new Point3D(1195, 508, 104), Map.Ilshenar);
            BlueStuff.Add(item);
            // Monsters
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1199, 511, 95), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueSnowElemental");
            spawner.Count = 4;
            BlueStuff.Add(spawner);
            // C to D
            item = new Static(14186);
            item.MoveToWorld(new Point3D(1212, 507, 63), Map.Ilshenar);
            BlueStuff.Add(item);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1212, 507, 63), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1455, 310, 100);
            BlueStuff.Add(tele);
            // D to C
            item = new Static(14186);
            item.MoveToWorld(new Point3D(1455, 310, 100), Map.Ilshenar);
            BlueStuff.Add(item);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1455, 310, 100), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1212, 507, 63);
            BlueStuff.Add(tele);
            // Monsters
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1457, 290, 80), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueSnowElemental");
            spawner.Count = 3;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1455, 307, 109), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueSnowElemental");
            spawner.Count = 3;
            BlueStuff.Add(spawner);
            // E to F
            item = new Static(14186);
            item.MoveToWorld(new Point3D(1461, 290, 71), Map.Ilshenar);
            BlueStuff.Add(item);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1461, 290, 71), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1226, 428, 71);
            BlueStuff.Add(tele);
            // F to E
            item = new Static(14186);
            item.MoveToWorld(new Point3D(1226, 428, 71), Map.Ilshenar);
            BlueStuff.Add(item);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1226, 428, 71), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1461, 290, 71);
            BlueStuff.Add(tele);
            // Monsters
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(1240, 439, 89), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueSnowElemental");
            spawner.Count = 6;
            BlueStuff.Add(spawner);
            // G to H
            item = new Static(14186);
            item.MoveToWorld(new Point3D(1257, 455, 65), Map.Ilshenar);
            BlueStuff.Add(item);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(1257, 455, 65), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(430, 612, -32);
            BlueStuff.Add(tele);
            // H to G
            item = new Static(14186);
            item.MoveToWorld(new Point3D(430, 612, -32), Map.Ilshenar);
            BlueStuff.Add(item);
            tele = new Teleporter();
            tele.MoveToWorld(new Point3D(430, 612, -32), Map.Ilshenar);
            tele.MapDest   = Map.Ilshenar;
            tele.PointDest = new Point3D(1257, 455, 65);
            BlueStuff.Add(tele);
            // Monsters
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(450, 619, -29), Map.Ilshenar);
            spawner.SpawnNames.Add("BlueEtherealWarrior");
            spawner.Count     = 3;
            spawner.HomeRange = 10;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(450, 619, -28), Map.Ilshenar);
            spawner.SpawnNames.Add("BluePixie");
            spawner.Count     = 6;
            spawner.HomeRange = 10;
            BlueStuff.Add(spawner);
            spawner = new Spawner();
            spawner.MoveToWorld(new Point3D(450, 619, -27), Map.Ilshenar);
            spawner.SpawnNames.Add("Wisp");
            spawner.Count     = 4;
            spawner.HomeRange = 10;
            BlueStuff.Add(spawner);
            #endregion


            return(erased);
        }
Beispiel #17
0
		public static void ShowSpawnPoints_OnCommand(CommandEventArgs e)
		{
			ArrayList ToShow = new ArrayList();
			foreach (Item item in World.Items.Values)
			{
				if (item is XmlSpawner)
				{
					//turned off visibility. Admins will still see masts but players will not.
					item.Visible = false; // set the spawn item visibility
					item.Movable = false; // Make the spawn item movable
					item.Hue = 88; // Bright blue colour so its easy to spot
					item.ItemID = ShowItemId; // Ship Mast (Very tall, easy to see if beneath other objects)

					// find container-held spawners to be marked with an external static
					if ((item.Parent != null) && (item.RootParent is Container))
					{
						ToShow.Add(item);
					}
				}
			}

			// place the statics
			foreach (Item i in ToShow)
			{
				XmlSpawner xml_item = (XmlSpawner)i;
				// does the spawner already have a static attached to it? could happen if two showall commands are issued in a row.
				// if so then dont add another
				if ((xml_item.m_ShowContainerStatic == null || xml_item.m_ShowContainerStatic.Deleted) &&
					xml_item.RootParent is Container)
				{
					Container root_item = xml_item.RootParent as Container;
					// calculate a world location for the static.  Position it just above the container
					int x = root_item.Location.X;
					int y = root_item.Location.Y;
					int z = root_item.Location.Z + 10;

					Static s = new Static(ShowItemId);
					s.Visible = false;
					s.MoveToWorld(new Point3D(x, y, z), root_item.Map);

					xml_item.m_ShowContainerStatic = s;
				}
			}
		}
Beispiel #18
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);
            WeakEntityCollection.Add("sa", door);
            WeakEntityCollection.Add("sa", blocker);

            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);
            WeakEntityCollection.Add("sa", door);
            WeakEntityCollection.Add("sa", blocker);

            //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);
            WeakEntityCollection.Add("sa", door);
            WeakEntityCollection.Add("sa", blocker);

            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);
            WeakEntityCollection.Add("sa", door);
            WeakEntityCollection.Add("sa", blocker);

            //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);
            WeakEntityCollection.Add("sa", door);
            WeakEntityCollection.Add("sa", blocker);

            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);
            WeakEntityCollection.Add("sa", door);
            WeakEntityCollection.Add("sa", blocker);

            //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);
            WeakEntityCollection.Add("sa", door);
            WeakEntityCollection.Add("sa", blocker);

            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);
            WeakEntityCollection.Add("sa", door);
            WeakEntityCollection.Add("sa", blocker);

            ExperimentalRoomChest chest = new ExperimentalRoomChest();

            chest.MoveToWorld(new Point3D(984, 1064, -37), Map.TerMur);
            WeakEntityCollection.Add("sa", chest);

            ExperimentalBook instr = new ExperimentalBook
            {
                Movable = false
            };

            instr.MoveToWorld(new Point3D(995, 1114, -36), Map.TerMur);
            WeakEntityCollection.Add("sa", instr);

            SecretDungeonDoor dd = new SecretDungeonDoor(DoorFacing.NorthCCW)
            {
                ClosedID = 87,
                OpenedID = 88
            };

            dd.MoveToWorld(new Point3D(1007, 1119, -42), Map.TerMur);
            WeakEntityCollection.Add("sa", dd);

            LocalizedSign sign = new LocalizedSign(3026, 1113407)
            {
                Movable = false
            };  // Experimental Room Access

            sign.MoveToWorld(new Point3D(980, 1119, -37), Map.TerMur);
            WeakEntityCollection.Add("sa", sign);

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

            box.MoveToWorld(new Point3D(1090, 1171, 11), Map.TerMur);
            WeakEntityCollection.Add("sa", box);

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

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

            PuzzleBook book = new PuzzleBook
            {
                Movable = false
            };

            book.MoveToWorld(new Point3D(1109, 1153, -17), Map.TerMur);
            WeakEntityCollection.Add("sa", book);

            PuzzleRoomTeleporter tele = new PuzzleRoomTeleporter
            {
                PointDest = new Point3D(1097, 1173, 1),
                MapDest   = Map.TerMur
            };

            tele.MoveToWorld(new Point3D(1097, 1175, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", tele);

            tele = new PuzzleRoomTeleporter
            {
                PointDest = new Point3D(1098, 1173, 1),
                MapDest   = Map.TerMur
            };
            tele.MoveToWorld(new Point3D(1098, 1175, 0), Map.TerMur);
            WeakEntityCollection.Add("sa", tele);

            MetalDoor2 door2 = new MetalDoor2(DoorFacing.WestCCW)
            {
                Locked   = true,
                KeyValue = 50000
            };

            door2.MoveToWorld(new Point3D(1097, 1174, 1), Map.TerMur);
            WeakEntityCollection.Add("sa", door2);

            door2 = new MetalDoor2(DoorFacing.EastCW)
            {
                Locked   = true,
                KeyValue = 50000
            };
            door2.MoveToWorld(new Point3D(1098, 1174, 1), Map.TerMur);
            WeakEntityCollection.Add("sa", door);

            Teleporter telep = new Teleporter
            {
                PointDest = new Point3D(1097, 1175, 0),
                MapDest   = Map.TerMur
            };

            telep.MoveToWorld(new Point3D(1097, 1173, 1), Map.TerMur);
            WeakEntityCollection.Add("sa", telep);

            telep = new Teleporter
            {
                PointDest = new Point3D(1098, 1175, 0),
                MapDest   = Map.TerMur
            };
            telep.MoveToWorld(new Point3D(1098, 1173, 1), Map.TerMur);
            WeakEntityCollection.Add("sa", telep);

            telep = new Teleporter
            {
                PointDest = new Point3D(996, 1117, -42),
                MapDest   = Map.TerMur
            };
            telep.MoveToWorld(new Point3D(980, 1064, -42), Map.TerMur);
            WeakEntityCollection.Add("sa", telep);

            Static sparkle = new Static(14138);

            sparkle.MoveToWorld(new Point3D(980, 1064, -42), Map.TerMur);
            WeakEntityCollection.Add("sa", sparkle);

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

            pBox.MoveToWorld(new Point3D(1068, 1026, -37), Map.TerMur);
            WeakEntityCollection.Add("sa", pBox);

            GoldenCompass compass = new GoldenCompass();

            compass.MoveToWorld(new Point3D(1070, 1055, -34), Map.TerMur);
            WeakEntityCollection.Add("sa", compass);

            Item map = new RolledMapOfTheUnderworld();

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

            FountainOfFortune f = new FountainOfFortune();

            f.MoveToWorld(new Point3D(1121, 957, -42), Map.TerMur);
            WeakEntityCollection.Add("sa", f);

            Item tile = new InvisibleTile();

            tile.MoveToWorld(new Point3D(1121, 965, -41), Map.TerMur);
            WeakEntityCollection.Add("sa", tile);

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

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

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

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

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

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

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

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

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

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

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

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

            GenerateRevealTiles();
            CheckCannoneers();

            Console.WriteLine("Experimental Room, Puzzle Room and Maze of Death initialized.");
        }
Beispiel #19
0
        private void LoadTiles()
        {
            var map = Map.TerMur;

            //West
            PuzzleTile tile = new PuzzleTile(this, 33, 0);

            tile.MoveToWorld(new Point3D(971, 2876, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 14, 0);
            tile.MoveToWorld(new Point3D(971, 2878, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 1195, 0);
            tile.MoveToWorld(new Point3D(972, 2877, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 63, 0);
            tile.MoveToWorld(new Point3D(973, 2876, 37), map);
            Tiles.Add(tile);

            // NorthWest
            tile = new PuzzleTile(this, 63, 1);
            tile.MoveToWorld(new Point3D(978, 2868, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 1195, 1);
            tile.MoveToWorld(new Point3D(979, 2868, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 14, 1);
            tile.MoveToWorld(new Point3D(979, 2869, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 33, 1);
            tile.MoveToWorld(new Point3D(980, 2870, 37), map);
            Tiles.Add(tile);

            // NorthEast
            tile = new PuzzleTile(this, 33, 2);
            tile.MoveToWorld(new Point3D(985, 2870, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 1195, 2);
            tile.MoveToWorld(new Point3D(986, 2870, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 63, 2);
            tile.MoveToWorld(new Point3D(985, 2871, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 14, 2);
            tile.MoveToWorld(new Point3D(986, 2871, 37), map);
            Tiles.Add(tile);

            // East
            tile = new PuzzleTile(this, 14, 3);
            tile.MoveToWorld(new Point3D(985, 2876, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 33, 3);
            tile.MoveToWorld(new Point3D(986, 2877, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 63, 3);
            tile.MoveToWorld(new Point3D(987, 2878, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 1195, 3);
            tile.MoveToWorld(new Point3D(988, 2879, 37), map);
            Tiles.Add(tile);

            // SouthEast
            tile = new PuzzleTile(this, 1195, 4);
            tile.MoveToWorld(new Point3D(982, 2881, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 33, 4);
            tile.MoveToWorld(new Point3D(982, 2882, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 63, 4);
            tile.MoveToWorld(new Point3D(982, 2883, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 14, 4);
            tile.MoveToWorld(new Point3D(981, 2883, 37), map);
            Tiles.Add(tile);

            // SouthWest
            tile = new PuzzleTile(this, 33, 5);
            tile.MoveToWorld(new Point3D(975, 2882, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 14, 5);
            tile.MoveToWorld(new Point3D(976, 2883, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 63, 5);
            tile.MoveToWorld(new Point3D(975, 2884, 37), map);
            Tiles.Add(tile);

            tile = new PuzzleTile(this, 1195, 5);
            tile.MoveToWorld(new Point3D(976, 2885, 37), map);
            Tiles.Add(tile);

            Teleporter tele = new Teleporter(new Point3D(1050, 2940, 38), map, false);

            tele.MoveToWorld(new Point3D(1018, 2915, 38), map);
            Static sparkles = new Static(0x373A);

            sparkles.MoveToWorld(new Point3D(1018, 2915, 38), map);

            tele = new Teleporter(new Point3D(1018, 2915, 38), map, false);
            tele.MoveToWorld(new Point3D(1050, 2940, 38), map);
            sparkles = new Static(0x373A);
            sparkles.MoveToWorld(new Point3D(1050, 2940, 38), map);
        }
Beispiel #20
0
        public override void IncreaseTier()
        { 
            base.IncreaseTier();
			
            List<object> list = new List<object>();
            Item c;			
			
            switch ( this.Tier )
            { 
                case 1:
                    // wizard's hat
                    c = new WizardsHat();
                    c.MoveToWorld(new Point3D(1410, 1603, 57), this.Map);
                    list.Add(c);

                    // crystal ball
                    c = new Static(0xE2D);
                    c.Weight = 10.0;
                    c.MoveToWorld(new Point3D(1410, 1604, 57), this.Map);
                    list.Add(c);

                    // spellbook
                    c = new Spellbook(0x0, 0xE3B);
                    c.MoveToWorld(new Point3D(1408, 1603, 63), this.Map);
                    list.Add(c);

                    // garlic
                    c = new Garlic();
                    c.MoveToWorld(new Point3D(1408, 1603, 62), this.Map);
                    list.Add(c);
					
                    break;					
            }
			
            if (list.Count > 0)
                this.Tiers.Add(list);
        }
 private void AddStatic_CallBack()
 {
     m_Static = new Static(0x70D);
     m_Static.MoveToWorld(new Point3D(X - 1, Y, Z), Map);
     m_Static.Hue = Hue == 1153 ? 2333 : 1153;
 }
		public static void GenGauntlet_OnCommand( CommandEventArgs e )
		{
			/* Begin healer room */
			CreatePricedHealer( 5000, 387, 400 );
			CreateTeleporter( 390, 407, 394, 405 );

			BaseDoor healerDoor = CreateDoorSet( 393, 404, true, 0x44E );

			healerDoor.Locked = true;
			healerDoor.KeyValue = Key.RandomValue();

			if ( healerDoor.Link != null )
			{
				healerDoor.Link.Locked = true;
				healerDoor.Link.KeyValue = Key.RandomValue();
			}
			/* End healer room */

			/* Begin supply room */
			CreateMorphItem( 433, 371, 0x29F, 0x116, 3, 0x44E );
			CreateMorphItem( 433, 372, 0x29F, 0x115, 3, 0x44E );

			CreateVarietyDealer( 492, 369 );

			for ( int x = 434; x <= 478; ++x )
			{
				for ( int y = 371; y <= 372; ++y )
				{
					Static item = new Static( 0x524 );

					item.Hue = 1;
					item.MoveToWorld( new Point3D( x, y, -1 ), Map.Malas );
				}
			}
			/* End supply room */

			/* Begin gauntlet cycle */
			CreateTeleporter( 471, 428, 474, 428 );
			CreateTeleporter( 462, 494, 462, 498 );
			CreateTeleporter( 403, 502, 399, 506 );
			CreateTeleporter( 357, 476, 356, 480 );
			CreateTeleporter( 361, 433, 357, 434 );

			GauntletSpawner sp1 = CreateSpawner( "DarknightCreeper",		491, 456,	473, 432,	417, 426,	true,	473, 412, 39, 60 );
			GauntletSpawner sp2 = CreateSpawner( "FleshRenderer",			482, 520,	468, 496,	426, 422,	false,	448, 496, 56, 48 );
			GauntletSpawner sp3 = CreateSpawner( "Impaler",					406, 538,	408, 504,	432, 430,	false,	376, 504, 64, 48 );
			GauntletSpawner sp4 = CreateSpawner( "ShadowKnight",			335, 512,	360, 478,	424, 439,	false,	300, 478, 72, 64 );
			GauntletSpawner sp5 = CreateSpawner( "AbysmalHorror",			326, 433,	360, 429,	416, 435,	true,	300, 408, 60, 56 );
			GauntletSpawner sp6 = CreateSpawner( "DemonKnight",				423, 430,	0,   0,		423, 430,	true,	392, 392, 72, 96 );

			sp1.Sequence = sp2;
			sp2.Sequence = sp3;
			sp3.Sequence = sp4;
			sp4.Sequence = sp5;
			sp5.Sequence = sp6;
			sp6.Sequence = sp1;

			sp1.State = GauntletSpawnerState.InProgress;
			/* End gauntlet cycle */

			/* Begin exit gate */
			ConfirmationMoongate gate = new ConfirmationMoongate();

			gate.Dispellable = false;

			gate.Target = new Point3D( 2350, 1270, -85 );
			gate.TargetMap = Map.Malas;

			gate.GumpWidth = 420;
			gate.GumpHeight = 280;

			gate.MessageColor = 0x7F00;
			gate.MessageNumber = 1062109; // You are about to exit Dungeon Doom.  Do you wish to continue?

			gate.TitleColor = 0x7800;
			gate.TitleNumber = 1062108; // Please verify...

			gate.Hue = 0x44E;

			gate.MoveToWorld( new Point3D( 433, 326, 4 ), Map.Malas );
			/* End exit gate */
		}
        public override void IncreaseTier()
        {
            base.IncreaseTier();

            List<object> list = new List<object>();
            Item c;

            // don't know names above lev 6
            switch ( this.Tier )
            {
                case 1:
                    c = new BookOfChivalry();
                    c.MoveToWorld(new Point3D(2924, 979, -18), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new Longsword();
                    c.MoveToWorld(new Point3D(2923, 980, -18), this.Map);
                    c.Movable = false;
                    c.ItemID = 0x26CF;
                    list.Add(c);

                    c = new Shirt();
                    c.MoveToWorld(new Point3D(2924, 978, -18), this.Map);
                    c.Movable = false;
                    c.ItemID = 0x2662;
                    c.Name = "Crisp White Shirt";
                    list.Add(c);
                    break;
                case 2:
                    c = new GraveDust();
                    c.MoveToWorld(new Point3D(2921, 972, -17), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new NoxCrystal();
                    c.MoveToWorld(new Point3D(2921, 972, -17), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new Static(0xF91);
                    c.MoveToWorld(new Point3D(2921, 972, -17), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new NecromancerSpellbook();
                    c.MoveToWorld(new Point3D(2922, 972, -18), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new AnimateDeadScroll();
                    c.MoveToWorld(new Point3D(2923, 972, -18), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new HorrificBeastScroll();
                    c.MoveToWorld(new Point3D(2923, 972, -18), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new VampiricEmbraceScroll();
                    c.MoveToWorld(new Point3D(2923, 971, -20), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new Static(0xFDD);
                    c.MoveToWorld(new Point3D(2922, 971, -21), this.Map);
                    list.Add(c);

                    c = new Static(0xFDE);
                    c.MoveToWorld(new Point3D(2923, 971, -21), this.Map);
                    list.Add(c);

                    break;
                case 3:
                    c = new JesterSuit();
                    c.MoveToWorld(new Point3D(2919, 985, -16), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new LocalizedStatic(0xE74, 1073424);
                    c.MoveToWorld(new Point3D(2919, 984, -11), this.Map);
                    c.Movable = false;
                    c.Weight = 50.0;
                    c.Hue = 0x113;
                    list.Add(c);

                    c = new JesterHat();
                    c.MoveToWorld(new Point3D(2919, 983, -13), this.Map);
                    c.Movable = false;
                    c.Hue = 0x113;
                    list.Add(c);

                    break;
                case 4:
                    c = new Static(0xD25);
                    c.MoveToWorld(new Point3D(2916, 984, -13), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new Static(0x20D9);
                    c.MoveToWorld(new Point3D(2916, 982, -12), this.Map);
                    c.Name = "Gargoyle";
                    list.Add(c);

                    c = new Static(0x2132);
                    c.MoveToWorld(new Point3D(2914, 982, -9), this.Map);
                    list.Add(c);

                    c = new Static(0x25B6);
                    c.MoveToWorld(new Point3D(2913, 982, -13), this.Map);
                    list.Add(c);

                    c = new Static(0x25B6);
                    c.MoveToWorld(new Point3D(2913, 982, -13), this.Map);
                    list.Add(c);

                    c = new Static(0x222E);
                    c.MoveToWorld(new Point3D(2915, 983, -14), this.Map);
                    list.Add(c);

                    c = new Static(0x2211);
                    c.MoveToWorld(new Point3D(2914, 984, -13), this.Map);
                    list.Add(c);

                    break;
                case 5:
                    c = new LocalizedStatic(0xE30, 1073421);
                    c.MoveToWorld(new Point3D(2911, 983, -12), this.Map);
                    c.Weight = 10.0;
                    list.Add(c);

                    c = new LocalizedStatic(0x2937, 1073422);
                    c.MoveToWorld(new Point3D(2911, 984, -13), this.Map);
                    list.Add(c);

                    c = new LocalizedStatic(0x12AA, 1073423);
                    c.MoveToWorld(new Point3D(2911, 985, -14), this.Map);
                    list.Add(c);

                    c = new Static(0xEAF);
                    c.MoveToWorld(new Point3D(2910, 985, -21), this.Map);
                    c.Weight = 5.0;
                    list.Add(c);

                    c = new Static(0xEAE);
                    c.MoveToWorld(new Point3D(2910, 986, -21), this.Map);
                    c.Weight = 5.0;
                    list.Add(c);

                    break;
                case 6:
                    c = new Tessen();
                    c.MoveToWorld(new Point3D(2910, 966, -17), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new Shuriken();
                    c.MoveToWorld(new Point3D(2910, 965, -17), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new Static(0x2855);
                    c.MoveToWorld(new Point3D(2910, 964, -16), this.Map);
                    c.Weight = 5.0;
                    list.Add(c);

                    c = new Static(0x241D);
                    c.MoveToWorld(new Point3D(2910, 963, -20), this.Map);
                    c.Weight = 5.0;
                    list.Add(c);

                    c = new Static(0x2409);
                    c.MoveToWorld(new Point3D(2910, 963, -17), this.Map);
                    list.Add(c);

                    c = new Static(0x2416);
                    c.MoveToWorld(new Point3D(2909, 965, -17), this.Map);
                    list.Add(c);

                    break;
                case 7:
                    c = new Static(0x3069);
                    c.MoveToWorld(new Point3D(2914, 964, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x306A);
                    c.MoveToWorld(new Point3D(2913, 964, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x306B);
                    c.MoveToWorld(new Point3D(2912, 964, -21), this.Map);
                    list.Add(c);

                    c = new ElvenLoveseatEastAddon();
                    c.MoveToWorld(new Point3D(2913, 966, -21), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new Static(0x2CFC);
                    c.MoveToWorld(new Point3D(2912, 963, -21), this.Map);
                    list.Add(c);

                    c = new LocalizedStatic(0x2D74, 1073425);
                    c.MoveToWorld(new Point3D(2914, 963, -21), this.Map);
                    list.Add(c);

                    break;
                case 8:
                    c = new Static(0x2);
                    c.MoveToWorld(new Point3D(2905, 970, -15), this.Map);
                    list.Add(c);

                    c = new Static(0x3);
                    c.MoveToWorld(new Point3D(2905, 969, -15), this.Map);
                    list.Add(c);

                    c = new OrderShield();
                    c.MoveToWorld(new Point3D(2905, 971, -17), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    c = new Static(0x1579);
                    c.MoveToWorld(new Point3D(2904, 971, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x1613);
                    c.MoveToWorld(new Point3D(2908, 969, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x1614);
                    c.MoveToWorld(new Point3D(2908, 968, -21), this.Map);
                    list.Add(c);

                    break;
                case 9:
                    c = new Static(0x1526);
                    c.MoveToWorld(new Point3D(2905, 976, -15), this.Map);
                    list.Add(c);

                    c = new Static(0x1527);
                    c.MoveToWorld(new Point3D(2905, 975, -15), this.Map);
                    list.Add(c);

                    c = new Static(0x151A);
                    c.MoveToWorld(new Point3D(2905, 972, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x151A);
                    c.MoveToWorld(new Point3D(2905, 977, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x151A);
                    c.MoveToWorld(new Point3D(2908, 972, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x151A);
                    c.MoveToWorld(new Point3D(2908, 977, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x1514);
                    c.MoveToWorld(new Point3D(2904, 975, -17), this.Map);
                    list.Add(c);

                    break;
                case 10:
                    c = new Static(0x15C5);
                    c.MoveToWorld(new Point3D(2904, 982, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x15C5);
                    c.MoveToWorld(new Point3D(2904, 979, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x157B);
                    c.MoveToWorld(new Point3D(2904, 981, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x14E3);
                    c.MoveToWorld(new Point3D(2905, 980, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x14E4);
                    c.MoveToWorld(new Point3D(2905, 981, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x14E5);
                    c.MoveToWorld(new Point3D(2906, 981, -21), this.Map);
                    list.Add(c);

                    c = new Static(0x14E6);
                    c.MoveToWorld(new Point3D(2906, 980, -21), this.Map);
                    list.Add(c);

                    c = new ChaosShield();
                    c.MoveToWorld(new Point3D(2905, 978, -19), this.Map);
                    c.Movable = false;
                    list.Add(c);

                    break;
                case 11:
                    c = new FemaleStuddedChest();
                    c.MoveToWorld(new Point3D(2912, 976, -16), this.Map);
                    c.Movable = false;
                    c.Hue = 0x497;
                    list.Add(c);

                    c = new Static(0x1EA8);
                    c.MoveToWorld(new Point3D(2913, 973, -13), this.Map);
                    c.Hue = 0x497;
                    list.Add(c);

                    c = new Static(0x20F8);
                    c.MoveToWorld(new Point3D(2913, 975, -11), this.Map);
                    c.Hue = 0x113;
                    list.Add(c);

                    c = new Static(0x20E9);
                    c.MoveToWorld(new Point3D(2912, 974, -11), this.Map);
                    c.Name = "Troll";
                    list.Add(c);

                    c = new Static(0x2607);
                    c.MoveToWorld(new Point3D(2913, 974, -11), this.Map);
                    list.Add(c);

                    c = new Static(0x25F9);
                    c.MoveToWorld(new Point3D(2912, 975, -11), this.Map);
                    list.Add(c);

                    break;
                case 12:
                    c = new Static(0x1D8A);
                    c.MoveToWorld(new Point3D(2915, 976, -13), this.Map);
                    list.Add(c);

                    c = new Static(0x1D8B);
                    c.MoveToWorld(new Point3D(2916, 976, -13), this.Map);
                    list.Add(c);

                    c = new Static(0x234D);
                    c.MoveToWorld(new Point3D(2915, 975, -10), this.Map);
                    list.Add(c);

                    c = new WizardsHat();
                    c.MoveToWorld(new Point3D(2915, 974, -13), this.Map);
                    c.Movable = false;
                    list.Add(c);
                    break;
            }

            if (list.Count > 0)
                this.Tiers.Add(list);
        }
Beispiel #24
0
        public override void OnClick()
        {
            if (m_Beverage == null || m_From == null) return;
            if (m_Beverage.Deleted || !m_Beverage.Movable || !m_From.CheckAlive() || !m_Beverage.CheckItemUse(m_From))
                return;

            if (m_Beverage.Quantity > 0)
            {
                string typeName = "";
                int typeHue = 0;

                switch (m_Beverage.Content)
                {
                    case BeverageType.LaitChevre:
                    case BeverageType.LaitBrebis:
                    case BeverageType.Milk:
                        typeName = "de lait";
                        typeHue = 2050;
                        break;
                    case BeverageType.JusRaisin:
                        typeName = "de jus de raison";
                        typeHue = 1172;
                        break;
                    case BeverageType.JusPeche:
                        typeName = "de jus de pêches";
                        typeHue = 50;
                        break;
                    case BeverageType.JusPomme:
                        typeName = "de jus de pommes";
                        typeHue = 50;
                        break;
                    case BeverageType.Wine:
                        typeName = "de vin";
                        typeHue = 1172;
                        break;
                    case BeverageType.Liquor:
                        typeName = "de liqueur";
                        typeHue = 96;
                        break;
                    case BeverageType.Cider:
                        typeName = "de cidre";
                        typeHue = 50;
                        break;
                    case BeverageType.Ale:
                    case BeverageType.BiereAmbre:
                    case BeverageType.BiereBrune:
                    case BeverageType.BiereCommune:
                    case BeverageType.BiereEpice:
                    case BeverageType.BiereMiel:
                    case BeverageType.BiereSorciere:
                    case BeverageType.Kwak:
                    case BeverageType.MoinetteYew:
                        typeName = "de bière";
                        typeHue = 51;
                        break;
                    default:
                        typeName = "d'eau";
                        typeHue = 92;
                        break;
                }

                m_From.SendMessage("Vous arrosez le sol avec le contenu de votre " + m_Beverage.Name + ".");
                m_Beverage.Content = BeverageType.Water;
                m_Beverage.Quantity = 0;
                m_Beverage.Poison = null;

                int bloodId = Utility.Random(4650, 4);
                Static water = new Static(bloodId);
                water.Name = "Flaque " + typeName;
                water.Hue = typeHue;
                water.MoveToWorld(m_From.Location, m_From.Map);
                m_From.PlaySound(0x04E);
                new WateringTimer(water);
            }
            else
            {
                m_From.SendMessage("Vous ne pouvez pas arroser le sol avec quelque chose de vide...");
            }
        }
Beispiel #25
0
			protected override void OnTarget(Mobile from, object targeted)
			{
				IPoint3D target = targeted as IPoint3D;
				if (target == null) return;
				Map map = from.Map;
				if (map == null) return;
				Point3D location = new Point3D(target);
				if (target is StaticTarget) location.Z -= TileData.ItemTable[((StaticTarget)target).ItemID & 0x3FFF].CalcHeight;
				Item newItem = new Static(m_ItemID);
				newItem.MoveToWorld(location, from.Map);
				from.Target = new CreateItemTarget(m_ItemID, m_Search, mIndex, mShowImage);
			}
Beispiel #26
0
        public override void IncreaseTier()
        { 
            base.IncreaseTier();
			
            List<object> list = new List<object>();
            Item c;
						
            switch ( this.Tier )
            { 
                case 1: 
                    // brush
                    c = new Static(0x1373);
                    c.MoveToWorld(new Point3D(1415, 1593, 67), this.Map);
                    list.Add(c);	
					
                    // horse shoes
                    c = new Static(0xFB6);
                    c.MoveToWorld(new Point3D(1415, 1595, 50), this.Map);
                    list.Add(c);			
					
                    // bridle
                    c = new Static(0x1375);
                    c.MoveToWorld(new Point3D(1416, 1593, 67), this.Map);
                    list.Add(c);	
					
                    // brush
                    c = new Static(0x1372);
                    c.MoveToWorld(new Point3D(1417, 1593, 67), this.Map);
                    list.Add(c);	
					
                    // horse barding
                    c = new Static(0x1378);
                    c.MoveToWorld(new Point3D(1417, 1595, 50), this.Map);
                    list.Add(c);	
					
                    c = new Static(0x1379);
                    c.MoveToWorld(new Point3D(1417, 1594, 50), this.Map);
                    list.Add(c);	
					
                    // shepard's crook
                    c = new ShepherdsCrook();
                    c.MoveToWorld(new Point3D(1417, 1597, 58), this.Map);
					
                    break;
            }
			
            if (list.Count > 0)
                this.Tiers.Add(list);
        }
Beispiel #27
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.");
        }
		public static void CreateTeleporter( int xFrom, int yFrom, int xTo, int yTo )
		{
			Static telePad = new Static( 0x1822 );
			Teleporter teleItem = new Teleporter( new Point3D( xTo, yTo, -1 ), Map.Malas, false );

			telePad.Hue = 0x482;
			telePad.MoveToWorld( new Point3D( xFrom, yFrom, -1 ), Map.Malas );

			teleItem.MoveToWorld( new Point3D( xFrom, yFrom, -1 ), Map.Malas );

			teleItem.SourceEffect = true;
			teleItem.DestEffect = true;
			teleItem.SoundID = 0x1FE;
		}
Beispiel #29
0
        public override void IncreaseTier()
        { 
            base.IncreaseTier();
			
            List<object> list = new List<object>();
            Item c;			
			
            switch ( this.Tier )
            { 
                case 1:					
                    // decorative armor
                    c = new Static(0x1508);
                    c.MoveToWorld(new Point3D(1409, 1610, 30), this.Map);
                    list.Add(c);
					
                    // cannon					
                    c = new Static(0xE94);
                    c.MoveToWorld(new Point3D(1409, 1610, 30), this.Map);
                    list.Add(c);
					
                    c = new Static(0xE95);
                    c.MoveToWorld(new Point3D(1410, 1610, 30), this.Map);
                    list.Add(c);
					
                    c = new Static(0xE96);
                    c.MoveToWorld(new Point3D(1411, 1610, 30), this.Map);
                    list.Add(c);
                    break;				
            }
			
            if (list.Count > 0)
                this.Tiers.Add(list);
        }
Beispiel #30
0
        public override void IncreaseTier()
        {
            base.IncreaseTier();

            List <object> list = new List <object>();
            Item          c;

            switch (Tier)
            {
            case 1:
                // easel with canvas
                c = new Static(0xF66);
                c.MoveToWorld(new Point3D(1417, 1602, 30), Map);
                list.Add(c);

                // table
                c = new Static(0xB6B);
                c.MoveToWorld(new Point3D(1417, 1606, 30), Map);
                list.Add(c);

                c = new Static(0xB6D);
                c.MoveToWorld(new Point3D(1417, 1605, 30), Map);
                list.Add(c);

                c = new Static(0xB6C);
                c.MoveToWorld(new Point3D(1417, 1604, 30), Map);
                list.Add(c);

                // bonsai tree
                c = new Static(0x28DC);
                c.MoveToWorld(new Point3D(1417, 1604, 36), Map);
                list.Add(c);

                // bottles
                c = new Static(0xE29);
                c.MoveToWorld(new Point3D(1417, 1605, 37), Map);
                list.Add(c);

                c = new Static(0xE28);
                c.MoveToWorld(new Point3D(1417, 1605, 36), Map);
                list.Add(c);

                c = new Static(0xE2C);
                c.MoveToWorld(new Point3D(1417, 1606, 37), Map);
                list.Add(c);

                // pen and ink
                c = new Static(0xFBF);
                c.MoveToWorld(new Point3D(1417, 1606, 36), Map);
                list.Add(c);

                // cooking book
                c = new Static(0xFBE);
                c.MoveToWorld(new Point3D(1418, 1606, 42), Map);
                c.Name   = "A Cookbook";
                c.Weight = 5.0;
                list.Add(c);
                break;
            }

            if (list.Count > 0)
            {
                Tiers.Add(list);
            }
        }
Beispiel #31
0
        public bool Destroy( )
        {
            if (this == null || this.Deleted)
            {
                return(false);
            }

            if (OnBeforeDestroyed( ))
            {
                if (m_Child != null && !m_Child.Deleted && !m_Child.Alive)
                {
                    Rubble rubble = new Rubble(m_DestroyedID, this.Name);

                    if (rubble != null && !rubble.Deleted && this.Map != null && this.Map != Map.Internal)
                    {
                        rubble.MoveToWorld(this.Location, this.Map);
                    }

                    WoodenBox lootbox = new WoodenBox( );
                    lootbox.Name = this.Name + " Loot Box";

                    OnDestroyed(lootbox);

                    if (lootbox != null && !lootbox.Deleted)
                    {
                        if (DropsLoot)
                        {
                            lootbox.MoveToWorld(new Point3D(this.X, this.Y, this.Z), this.Map);
                        }
                        else
                        {
                            lootbox.Delete( );
                        }
                    }

                    if (m_Child != null)
                    {
                        m_Child.Delete( );
                    }

                    Delete( );

                    return(true);
                }
                else
                {
                    Static rubble = new Static(m_DestroyedID);

                    if (rubble != null && !rubble.Deleted && this.Map != null && this.Map != Map.Internal)
                    {
                        rubble.MoveToWorld(this.Location, this.Map);
                    }

                    WoodenBox lootbox = new WoodenBox( );
                    lootbox.Name = this.Name + " Loot Box";

                    OnDestroyed(lootbox);

                    if (lootbox != null && !lootbox.Deleted)
                    {
                        if (DropsLoot)
                        {
                            lootbox.MoveToWorld(new Point3D(this.X, this.Y, this.Z), this.Map);
                        }
                        else
                        {
                            lootbox.Delete( );
                        }
                    }

                    Delete( );
                    return(true);
                }
            }

            return(false);
        }