Exemple #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            if (Instance == null)
            {
                Instance = this;
            }
        }
Exemple #2
0
        public KotlDoor()
            : base(DoorFacing.EastCW)
        {
            Hue    = 2591;
            Locked = true;

            KeyValue = Key.RandomValue();

            if (Instance == null)
            {
                Instance = this;
            }
        }
Exemple #3
0
        protected override void Generate()
        {
            CommandSystem.Handle(null, Server.Commands.CommandSystem.Prefix + "XmlLoad Spawns/TreasuresOfKotl.xml");

            Map map = Map.TerMur;

            KotlDoor door = new KotlDoor();

            door.MoveToWorld(new Point3D(610, 2319, 0), map);

            if (!FindItem <WheelsOfTime>(new Point3D(595, 2289, 8), map))
            {
                KotlCityPuzzle puzzle = new KotlCityPuzzle();
                puzzle.MoveToWorld(new Point3D(595, 2289, 8), map);
            }

            if (KotlBattleSimulator.Instance == null)
            {
                KotlBattleSimulator simulator = new KotlBattleSimulator();
                simulator.MoveToWorld(new Point3D(545, 2272, 0), map);
            }

            if (!FindItem <WheelsOfTime>(new Point3D(607, 2323, 0), map))
            {
                WheelsOfTime wheels = new WheelsOfTime();
                wheels.MoveToWorld(new Point3D(607, 2323, 0), map);
            }

            if (!FindItem <EnergyTileAddon>(new Point3D(592, 2393, 0), map))
            {
                EnergyTileAddon tiles = new EnergyTileAddon(13, Direction.South);
                tiles.MoveToWorld(new Point3D(592, 2393, 0), map);
            }

            if (!FindItem <EnergyTileAddon>(new Point3D(600, 2393, 0), map))
            {
                EnergyTileAddon tiles = new EnergyTileAddon(13, Direction.South);
                tiles.MoveToWorld(new Point3D(600, 2393, 0), map);
            }

            if (!FindItem <EnergyTileAddon>(new Point3D(608, 2393, 0), map))
            {
                EnergyTileAddon tiles = new EnergyTileAddon(13, Direction.South);
                tiles.MoveToWorld(new Point3D(608, 2393, 0), map);
            }

            if (!FindItem <EnergyTileAddon>(new Point3D(616, 2393, 0), map))
            {
                EnergyTileAddon tiles = new EnergyTileAddon(13, Direction.South);
                tiles.MoveToWorld(new Point3D(616, 2393, 0), map);
            }

            if (!FindItem <EnergyTileAddon>(new Point3D(624, 2393, 0), map))
            {
                EnergyTileAddon tiles = new EnergyTileAddon(13, Direction.South);
                tiles.MoveToWorld(new Point3D(624, 2393, 0), map);
            }

            if (!HasGenerated)
            {
                GenTeleporters();
                GenStations();
                GenLOSBlockers();
                GenChests();
            }

            if (Hal.Instance == null)
            {
                Hal hal = new Hal();
                hal.MoveToWorld(new Point3D(489, 1606, 40), map);
            }
        }