示例#1
0
 public WinchAssemblyLever(WinchAssembly winch, Hatch hatch)
     : base(0x108E)
 {
     Movable         = false;
     m_WinchAssembly = winch;
     m_hatch         = hatch;
 }
示例#2
0
        public static void GenWinchAssembly(Mobile m)
        {
            DeleteWinchAssembly();

            // Winch
            WinchAssembly winch = new WinchAssembly();

            WeakEntityCollection.Add(EntityName, winch);

            Hatch hatch = new Hatch(winch);

            WeakEntityCollection.Add(EntityName, hatch);

            WinchAssemblyLever lever = new WinchAssemblyLever(winch, hatch);

            WeakEntityCollection.Add(EntityName, lever);

            lever.MoveToWorld(new Point3D(6310, 1705, 0), Map.Trammel);
            winch.MoveToWorld(new Point3D(6310, 1704, 0), Map.Trammel);
            hatch.MoveToWorld(new Point3D(6303, 1711, 10), Map.Trammel);

            var tele = new ExitTeleporter(winch);

            tele.MoveToWorld(new Point3D(6400, 1656, 0), Map.Trammel);
            WeakEntityCollection.Add(EntityName, tele);

            if (m != null)
            {
                m.SendMessage("Winch Assembly Generation completed!");
            }
            else
            {
                Console.WriteLine("Winch Assembly Generation completed!");
            }
        }
示例#3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            m_WinchAssembly = reader.ReadItem() as WinchAssembly;
            m_hatch         = reader.ReadItem() as Hatch;
        }
示例#4
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            if (version == 0)
            {
                Timer.DelayCall(() =>
                {
                    WinchAssembly.GenWinchAssembly(null);
                });
            }
        }
示例#5
0
        public static void GenWinchAssembly(Mobile m)
        {
            DeleteWinchAssembly(m);

            // Winch
            WinchAssembly      winch = new WinchAssembly();
            Hatch              hatch = new Hatch();
            WinchAssemblyLever lever = new WinchAssemblyLever(winch, hatch);

            lever.MoveToWorld(new Point3D(6310, 1705, 0), Map.Trammel);
            winch.MoveToWorld(new Point3D(6310, 1704, 0), Map.Trammel);
            hatch.MoveToWorld(new Point3D(6303, 1711, 10), Map.Trammel);

            m.SendMessage("Generation completed!");
        }
示例#6
0
        public Hatch(WinchAssembly winch)
        {
            Winch       = winch;
            winch.Hatch = this;

            AddComponent(new HatchTile(), 2, 7, 0);
            AddComponent(new HatchTile(), 2, 6, 0);
            AddComponent(new HatchTile(), 2, 5, 0);
            AddComponent(new HatchTile(), 2, 4, 0);
            AddComponent(new HatchTile(), 2, 3, 0);
            AddComponent(new HatchTile(), 2, 2, 0);
            AddComponent(new HatchTile(), 3, 7, 0);
            AddComponent(new HatchTile(), 3, 6, 0);
            AddComponent(new HatchTile(), 3, 5, 0);
            AddComponent(new HatchTile(), 3, 4, 0);
            AddComponent(new HatchTile(), 3, 3, 0);
            AddComponent(new HatchTile(), 3, 2, 0);
            AddComponent(new HatchTile(), 4, 7, 0);
            AddComponent(new HatchTile(), 4, 6, 0);
            AddComponent(new HatchTile(), 4, 5, 0);
            AddComponent(new HatchTile(), 4, 4, 0);
            AddComponent(new HatchTile(), 4, 3, 0);
            AddComponent(new HatchTile(), 4, 2, 0);
            AddComponent(new HatchTile(), 5, 7, 0);
            AddComponent(new HatchTile(), 5, 6, 0);
            AddComponent(new HatchTile(), 5, 5, 0);
            AddComponent(new HatchTile(), 5, 4, 0);
            AddComponent(new HatchTile(), 5, 3, 0);
            AddComponent(new HatchTile(), 5, 2, 0);
            AddComponent(new HatchTile(), 2, -1, 0);
            AddComponent(new HatchTile(), 2, -2, 0);
            AddComponent(new HatchTile(), 2, -3, 0);
            AddComponent(new HatchTile(), 2, -4, 0);
            AddComponent(new HatchTile(), 2, -5, 0);
            AddComponent(new HatchTile(), 2, -6, 0);
            AddComponent(new HatchTile(), 3, -1, 0);
            AddComponent(new HatchTile(), 3, -2, 0);
            AddComponent(new HatchTile(), 3, -3, 0);
            AddComponent(new HatchTile(), 3, -4, 0);
            AddComponent(new HatchTile(), 3, -5, 0);
            AddComponent(new HatchTile(), 3, -6, 0);
            AddComponent(new HatchTile(), 4, -1, 0);
            AddComponent(new HatchTile(), 4, -2, 0);
            AddComponent(new HatchTile(), 4, -3, 0);
            AddComponent(new HatchTile(), 4, -4, 0);
            AddComponent(new HatchTile(), 4, -5, 0);
            AddComponent(new HatchTile(), 4, -6, 0);
            AddComponent(new HatchTile(), 5, -1, 0);
            AddComponent(new HatchTile(), 5, -2, 0);
            AddComponent(new HatchTile(), 5, -3, 0);
            AddComponent(new HatchTile(), 5, -4, 0);
            AddComponent(new HatchTile(), 5, -5, 0);
            AddComponent(new HatchTile(), 5, -6, 0);
            AddComponent(new HatchTile(), -4, 7, 0);
            AddComponent(new HatchTile(), -4, 6, 0);
            AddComponent(new HatchTile(), -4, 5, 0);
            AddComponent(new HatchTile(), -4, 4, 0);
            AddComponent(new HatchTile(), -4, 3, 0);
            AddComponent(new HatchTile(), -4, 2, 0);
            AddComponent(new HatchTile(), -3, 7, 0);
            AddComponent(new HatchTile(), -3, 6, 0);
            AddComponent(new HatchTile(), -3, 5, 0);
            AddComponent(new HatchTile(), -3, 4, 0);
            AddComponent(new HatchTile(), -3, 3, 0);
            AddComponent(new HatchTile(), -3, 2, 0);
            AddComponent(new HatchTile(), -2, 7, 0);
            AddComponent(new HatchTile(), -2, 6, 0);
            AddComponent(new HatchTile(), -2, 5, 0);
            AddComponent(new HatchTile(), -2, 4, 0);
            AddComponent(new HatchTile(), -2, 3, 0);
            AddComponent(new HatchTile(), -2, 2, 0);
            AddComponent(new HatchTile(), -1, 7, 0);
            AddComponent(new HatchTile(), -1, 6, 0);
            AddComponent(new HatchTile(), -1, 5, 0);
            AddComponent(new HatchTile(), -1, 4, 0);
            AddComponent(new HatchTile(), -1, 3, 0);
            AddComponent(new HatchTile(), -1, 2, 0);
            AddComponent(new HatchTile(), -4, -1, 0);
            AddComponent(new HatchTile(), -4, -2, 0);
            AddComponent(new HatchTile(), -4, -3, 0);
            AddComponent(new HatchTile(), -4, -4, 0);
            AddComponent(new HatchTile(), -4, -5, 0);
            AddComponent(new HatchTile(), -4, -6, 0);
            AddComponent(new HatchTile(), -3, -1, 0);
            AddComponent(new HatchTile(), -3, -2, 0);
            AddComponent(new HatchTile(), -3, -3, 0);
            AddComponent(new HatchTile(), -3, -4, 0);
            AddComponent(new HatchTile(), -3, -5, 0);
            AddComponent(new HatchTile(), -3, -6, 0);
            AddComponent(new HatchTile(), -2, -1, 0);
            AddComponent(new HatchTile(), -2, -2, 0);
            AddComponent(new HatchTile(), -2, -3, 0);
            AddComponent(new HatchTile(), -2, -4, 0);
            AddComponent(new HatchTile(), -2, -5, 0);
            AddComponent(new HatchTile(), -2, -6, 0);
            AddComponent(new HatchTile(), -1, -1, 0);
            AddComponent(new HatchTile(), -1, -2, 0);
            AddComponent(new HatchTile(), -1, -3, 0);
            AddComponent(new HatchTile(), -1, -4, 0);
            AddComponent(new HatchTile(), -1, -5, 0);
            AddComponent(new HatchTile(), -1, -6, 0);
        }