Exemple #1
0
        public void SayQuitMessage()
        {
            SayStatues(1062053, -1);               // The sands of time have run their course.

            for (int i = 0; i < m_Levers.Count; i++)
            {
                PuzzleLever lever = m_Levers[i] as PuzzleLever;
                lever.ItemID = 0x108E;
            }
        }
Exemple #2
0
        public void FreeLevers()
        {
            for (int i = 0; i < m_Levers.Count; i++)
            {
                PuzzleLever lever = m_Levers[i] as PuzzleLever;
                lever.ItemID = 0x108E;
            }

            m_Code = "";

            Timer.DelayCall(TimeSpan.FromSeconds(30.0), new TimerCallback(SayQuitMessage));
        }
Exemple #3
0
        public void Setup()
        {
            m_CanActive  = true;
            m_Code       = "";
            m_PuzzleCode = "";

            m_Levers  = new ArrayList();
            m_Statues = new ArrayList();
            m_Pads    = new ArrayList();

            PuzzleLever lever1 = new PuzzleLever(1);

            lever1.Controller = this;
            lever1.MoveToWorld(new Point3D(316, 64, 5), Map.Malas);
            m_Levers.Add(lever1);

            PuzzleLever lever2 = new PuzzleLever(2);

            lever2.Controller = this;
            lever2.MoveToWorld(new Point3D(323, 58, 5), Map.Malas);
            m_Levers.Add(lever2);

            PuzzleLever lever3 = new PuzzleLever(3);

            lever3.Controller = this;
            lever3.MoveToWorld(new Point3D(332, 63, 5), Map.Malas);
            m_Levers.Add(lever3);

            PuzzleLever lever4 = new PuzzleLever(4);

            lever4.Controller = this;
            lever4.MoveToWorld(new Point3D(323, 71, 5), Map.Malas);
            m_Levers.Add(lever4);

            PuzzleStatue statue1 = new PuzzleStatue(0x12D8);

            statue1.MoveToWorld(new Point3D(319, 70, 18), Map.Malas);
            m_Statues.Add(statue1);

            PuzzleStatue statue2 = new PuzzleStatue(0x12D9);

            statue2.MoveToWorld(new Point3D(329, 60, 18), Map.Malas);
            m_Statues.Add(statue2);

            PuzzlePad pad1 = new PuzzlePad();

            pad1.MoveToWorld(new Point3D(324, 58, -1), Map.Malas);
            pad1.Visible = false;
            m_Pads.Add(pad1);

            PuzzlePad pad2 = new PuzzlePad();

            pad2.MoveToWorld(new Point3D(332, 64, -1), Map.Malas);
            pad2.Visible = false;
            m_Pads.Add(pad2);

            PuzzlePad pad3 = new PuzzlePad();

            pad3.MoveToWorld(new Point3D(323, 72, -1), Map.Malas);
            pad3.Visible = false;
            m_Pads.Add(pad3);

            PuzzlePad pad4 = new PuzzlePad();

            pad4.MoveToWorld(new Point3D(316, 65, -1), Map.Malas);
            pad4.Visible = false;
            m_Pads.Add(pad4);

            PuzzlePad pad5 = new PuzzlePad();

            pad5.MoveToWorld(new Point3D(324, 64, -1), Map.Malas);
            m_Pads.Add(pad5);

            Teleporter teleporter1 = new Teleporter();

            teleporter1.MapDest   = Map.Malas;
            teleporter1.PointDest = new Point3D(353, 172, -1);
            teleporter1.MoveToWorld(new Point3D(468, 92, -1), Map.Malas);

            Teleporter teleporter2 = new Teleporter();

            teleporter2.MapDest   = Map.Malas;
            teleporter2.PointDest = new Point3D(353, 172, -1);
            teleporter2.MoveToWorld(new Point3D(469, 92, -1), Map.Malas);

            Teleporter teleporter3 = new Teleporter();

            teleporter3.MapDest   = Map.Malas;
            teleporter3.PointDest = new Point3D(353, 172, -1);
            teleporter3.MoveToWorld(new Point3D(470, 92, -1), Map.Malas);

            m_Box           = new PuzzleBox();
            m_Box.CanSummon = true;
            m_Box.MoveToWorld(new Point3D(469, 96, 6), Map.Malas);

            m_PuzzleCode = GenerateCode(m_PuzzleCode);
        }
Exemple #4
0
        public void Setup()
        {
            m_CanActive = true;
            m_Code = "";
            m_PuzzleCode = "";

            m_Levers = new ArrayList();
            m_Statues = new ArrayList();
            m_Pads = new ArrayList();

            PuzzleLever lever1 = new PuzzleLever( 1 );
            lever1.Controller = this;
            lever1.MoveToWorld( new Point3D( 316, 64, 5 ), Map.Malas );
            m_Levers.Add( lever1 );

            PuzzleLever lever2 = new PuzzleLever( 2 );
            lever2.Controller = this;
            lever2.MoveToWorld( new Point3D( 323, 58, 5 ), Map.Malas );
            m_Levers.Add( lever2 );

            PuzzleLever lever3 = new PuzzleLever( 3 );
            lever3.Controller = this;
            lever3.MoveToWorld( new Point3D( 332, 63, 5 ), Map.Malas );
            m_Levers.Add( lever3 );

            PuzzleLever lever4 = new PuzzleLever( 4 );
            lever4.Controller = this;
            lever4.MoveToWorld( new Point3D( 323, 71, 5 ), Map.Malas );
            m_Levers.Add( lever4 );

            PuzzleStatue statue1 = new PuzzleStatue( 0x12D8 );
            statue1.MoveToWorld( new Point3D( 319, 70, 18 ), Map.Malas );
            m_Statues.Add( statue1 );

            PuzzleStatue statue2 = new PuzzleStatue( 0x12D9 );
            statue2.MoveToWorld( new Point3D( 329, 60, 18 ), Map.Malas );
            m_Statues.Add( statue2 );

            PuzzlePad pad1 = new PuzzlePad();
            pad1.MoveToWorld( new Point3D( 324, 58, -1 ), Map.Malas );
            pad1.Visible = false;
            m_Pads.Add( pad1 );

            PuzzlePad pad2 = new PuzzlePad();
            pad2.MoveToWorld( new Point3D( 332, 64, -1 ), Map.Malas );
            pad2.Visible = false;
            m_Pads.Add( pad2 );

            PuzzlePad pad3 = new PuzzlePad();
            pad3.MoveToWorld( new Point3D( 323, 72, -1 ), Map.Malas );
            pad3.Visible = false;
            m_Pads.Add( pad3 );

            PuzzlePad pad4 = new PuzzlePad();
            pad4.MoveToWorld( new Point3D( 316, 65, -1 ), Map.Malas );
            pad4.Visible = false;
            m_Pads.Add( pad4 );

            PuzzlePad pad5 = new PuzzlePad();
            pad5.MoveToWorld( new Point3D( 324, 64, -1 ), Map.Malas );
            m_Pads.Add( pad5 );

            Teleporter teleporter1 = new Teleporter();
            teleporter1.MapDest = Map.Malas;
            teleporter1.PointDest = new Point3D( 353, 172, -1 );
            teleporter1.MoveToWorld( new Point3D( 468, 92, -1 ), Map.Malas );

            Teleporter teleporter2 = new Teleporter();
            teleporter2.MapDest = Map.Malas;
            teleporter2.PointDest = new Point3D( 353, 172, -1 );
            teleporter2.MoveToWorld( new Point3D( 469, 92, -1 ), Map.Malas );

            Teleporter teleporter3 = new Teleporter();
            teleporter3.MapDest = Map.Malas;
            teleporter3.PointDest = new Point3D( 353, 172, -1 );
            teleporter3.MoveToWorld( new Point3D( 470, 92, -1 ), Map.Malas );

            m_Box = new PuzzleBox();
            m_Box.CanSummon = true;
            m_Box.MoveToWorld( new Point3D( 469, 96, 6 ), Map.Malas );

            m_PuzzleCode = GenerateCode( m_PuzzleCode );
        }