Пример #1
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
        }