예제 #1
0
        private static void AutoWalk()
        {
            if (m_NoWalk)
            {
                return;
            }

            if (m_Resetwaypoints)
            {
                WaypointFollower.SetWaypoints(m_WalkWaypoints);

                m_Resetwaypoints = false;
            }

            WaypointFollower.FollowWaypoints(false);
        }
예제 #2
0
        private static void Revive()
        {
            if (m_NoDead)
            {
                return;
            }

            if (m_InitializeAction)
            {
                List <Waypoint> reviveWaypoints = new List <Waypoint>();

                reviveWaypoints.AddRange(m_ReviveWaypoints);
                reviveWaypoints.AddRange(m_PathWaypoints);

                WaypointFollower.SetWaypoints(reviveWaypoints);

                Helper.WaitSeconds(3.5);
                Input.MoveMouseTo(XReviveButtonLocation, YReviveButtonLocation);
                Helper.WaitSeconds(RegisterDelay);
                Input.LeftClick();

                Helper.WaitSeconds(1.0);
                m_ReviveSw.Start();

                m_InitializeAction = false;
            }

            WaypointFollower.FollowWaypoints(true);

            if (m_ReviveSw.ElapsedMilliseconds > 1000)
            {
                Input.LeftClick();
                m_ReviveSw.Restart();
            }

            if (Api.PlayerData.PlayerHealth > 1)
            {
                WaypointFollower.StopFollowingWaypoints();
                TransitionState(ActionMode.RegenerateVitals);
                m_ReviveSw.Stop();
                m_Resetwaypoints = true;

                Helper.WaitSeconds(1);
            }
        }
예제 #3
0
        private static void FindTarget()
        {
            if (m_Resetwaypoints)
            {
                WaypointFollower.SetWaypoints(m_PathWaypoints);

                m_Resetwaypoints = false;
            }

            if (CheckCombat())
            {
                return;
            }

            if (CheckDead())
            {
                return;
            }

            m_WowClassAutomater.FindTarget();
        }