Exemplo n.º 1
0
        public static void MoveToDurance3()
        {
            PC me = new PC();

            AreaMap map = new AreaMap(me.Area);

            map.Initialize();

            Pather p = me.GetSkillLevel(SkillType.Teleport) > 0 ? new Pather(map, new TeleportReducer(25)) : p = new Pather(map, new WalkingReducer(7, 13));

            p.FindPathToWarp(me.Position, new int[] { 67, 68 }, me.Area);

            Pathing.Mover m = new Pathing.Mover(p);
            m.OnMoverCallBack += new botNET.Pathing.Mover.MoverCallBackHandler(m_OnMoverCallBack);
            m.Move(me.GetSkillLevel(SkillType.Teleport) > 0 ? Reduction.TeleportReduction : Reduction.WalkingReduction);

            Warp warp = new Warp(p.LastPresetUsed);

            Thread.Sleep(200);

            me.Interact(warp);

            Thread.Sleep(200);

            while (me.Area != (AreaLevel)102)
            {
                me.ClickMap(ClickType.LeftDown, false, warp);
                Thread.Sleep(100);
                me.ClickMap(ClickType.LeftUp, false, warp);
                Thread.Sleep(500);
            }

            return;
        }
Exemplo n.º 2
0
        public static void MoveToDurance2()
        {
            PC me = new PC();

            AreaMap map = new AreaMap(me.Area);

            map.Initialize();

            Pather p = new Pather(map, new WalkingReducer(5, 13));

            p.FindPathToWaypoint(me.Position);

            Pathing.Mover m = new Pathing.Mover(p);
            m.Move(Reduction.WalkingReduction);

            GameObject waypoint = new GameObject(p.LastPresetUsed);

            Game.Print("About to click the WP");
            me.Interact(waypoint);
            while (!Game.GetUIState(UIState.WaypointPanel))
            {
                Thread.Sleep(50);
            }

            waypoint.Interact(AreaLevel.DuranceOfHateLevel2);

            while (me.Area != AreaLevel.DuranceOfHateLevel2)
            {
                Thread.Sleep(100);
            }
            //Thread.Sleep(50000); //init delay
        }
Exemplo n.º 3
0
        public static void MoveTomephisto()
        {
            PC me = new PC();

            AreaMap map = new AreaMap(me.Area);

            map.Initialize();

            Pather p = me.GetSkillLevel(SkillType.Teleport) > 0 ? new Pather(map, new TeleportReducer(25)) : p = new Pather(map, new WalkingReducer(7, 13));

            p.FindPath(me.Position, new System.Drawing.Point(17564, 8069));

            Pathing.Mover m = new Pathing.Mover(p);

            m.Move(me.GetSkillLevel(SkillType.Teleport) > 0 ? Reduction.TeleportReduction : Reduction.WalkingReduction);
        }