public override void FindTarget() { WaypointFollower.FollowWaypoints(true); // Look for target Input.KeyPress(VirtualKeyCode.TAB); Helper.WaitSeconds(0.1); // Found a target if (WowApi.PlayerData.PlayerHasTarget) { bool validEnemy = WowApi.PlayerData.TargetHealth == 100 && !WowApi.PlayerData.TargetInCombat && !WowApi.PlayerData.IsTargetPlayer && WowApi.PlayerData.IsInFarRange && !WowApi.PlayerData.IsInCloseRange; if (validEnemy && WowApi.PlayerData.PlayerMana >= 20) { WaypointFollower.StopFollowingWaypoints(); // PewPew Wrath Helper.WaitSeconds(1); Input.KeyPress(VirtualKeyCode.VK_2); Helper.WaitSeconds(1.75); Input.KeyPress(VirtualKeyCode.VK_2); Helper.WaitSeconds(1.75); } } }
private static void CheckIdle() { if (m_RelayFlag) { WaypointFollower.StopFollowingWaypoints(); Relay(); m_RelayFlag = false; } else if (m_RemoteStopFlag) { if (!m_Idle) { WaypointFollower.StopFollowingWaypoints(); m_PreviousActionMode = m_CurrentActionMode; } m_CurrentActionMode = ActionMode.RemoteStop; m_Idle = true; } else if (!WowApi.PlayerData.IsWowForeground) { if (!m_Idle) { WaypointFollower.StopFollowingWaypoints(); m_PreviousActionMode = m_CurrentActionMode; } m_CurrentActionMode = ActionMode.WaitingForWow; m_Idle = true; } else if (!WowApi.PlayerData.Found) { if (!m_Idle) { WaypointFollower.StopFollowingWaypoints(); m_PreviousActionMode = m_CurrentActionMode; } m_CurrentActionMode = ActionMode.WaitingForAddon; m_Idle = true; } else if (!WowApi.PlayerData.Start) { if (!m_Idle) { WaypointFollower.StopFollowingWaypoints(); m_PreviousActionMode = m_CurrentActionMode; } m_CurrentActionMode = ActionMode.ReadyToStart; m_Idle = true; } else if (m_Idle) { m_CurrentActionMode = m_PreviousActionMode; m_Idle = false; } }
private static void Revive() { if (m_NoDead) { return; } if (!m_Ghosted) { List <double> ghostXCoordinates = new List <double>(); List <double> ghostYCoordinates = new List <double>(); ghostXCoordinates.AddRange(m_ReviveXCoordinates); ghostXCoordinates.AddRange(m_PathXCoordinates); ghostYCoordinates.AddRange(m_ReviveYCoordinates); ghostYCoordinates.AddRange(m_PathYCoordinates); WaypointFollower.SetWaypoints(ghostXCoordinates, ghostYCoordinates); Helper.WaitSeconds(2.5); Input.MoveMouseTo(XReviveButtonLocation, YReviveButtonLocation); Helper.WaitSeconds(RegisterDelay); Input.LeftClick(); m_Ghosted = true; Helper.WaitSeconds(1.0); m_ReviveSw.Start(); } WaypointFollower.FollowWaypoints(true); if (m_ReviveSw.ElapsedMilliseconds > 1000) { Input.LeftClick(); m_ReviveSw.Restart(); } if (WowApi.PlayerData.PlayerHealth > 1) { WaypointFollower.StopFollowingWaypoints(); m_Ghosted = false; m_CurrentActionMode = ActionMode.RegenerateVitals; m_StartedEating = false; m_ReviveSw.Stop(); m_ResetCoordinates = true; Helper.WaitSeconds(0.5); Input.KeyPress(VirtualKeyCode.VK_B); Helper.WaitSeconds(0.5); } }
private static void FindTarget() { if (m_ResetCoordinates) { WaypointFollower.SetWaypoints(m_PathXCoordinates, m_PathYCoordinates); m_ResetCoordinates = false; } if (WowApi.PlayerData.PlayerInCombat) { WaypointFollower.StopFollowingWaypoints(); Helper.WaitSeconds(0.5); m_CurrentActionMode = ActionMode.KillTarget; return; } m_WowClassAutomater.FindTarget(); }
public override void FindTarget() { WaypointFollower.FollowWaypoints(true); CheckFindMode(); bool validTarget = false; if (FindTargetMode == RogueFindTargetMode.StealthAndThrow) { if (Stealth.CanCastSpell) { Stealth.CastSpell(); if (!AlwaysStealth) { StaleStealthTimer.Start(); } } validTarget = WowApi.PlayerData.PlayerHasTarget && WowApi.PlayerData.TargetHealth == 100 && !WowApi.PlayerData.TargetInCombat && WowApi.PlayerData.TargetFaction == 0 && WowApi.PlayerData.IsInFarRange && !WowApi.PlayerData.IsInCloseRange; if (validTarget) { WaypointFollower.StopFollowingWaypoints(); Helper.WaitSeconds(1); Throw.Act(); Helper.WaitSeconds(2); } } else if (FindTargetMode == RogueFindTargetMode.Throw) { validTarget = WowApi.PlayerData.PlayerHasTarget && WowApi.PlayerData.TargetHealth == 100 && !WowApi.PlayerData.TargetInCombat && WowApi.PlayerData.TargetFaction == 0 && WowApi.PlayerData.IsInFarRange && !WowApi.PlayerData.IsInCloseRange; if (validTarget) { WaypointFollower.StopFollowingWaypoints(); Helper.WaitSeconds(1); Throw.Act(); Helper.WaitSeconds(2); } } else if (FindTargetMode == RogueFindTargetMode.Stealth) { if (Stealth.CanCastSpell) { Stealth.CastSpell(); if (!AlwaysStealth) { StaleStealthTimer.Start(); } } validTarget = WowApi.PlayerData.PlayerHasTarget && WowApi.PlayerData.TargetHealth == 100 && !WowApi.PlayerData.TargetInCombat && WowApi.PlayerData.TargetFaction == 0 && WowApi.PlayerData.IsInCloseRange; if (validTarget) { if (WowApi.PlayerData.IsInCloseRange) { Input.KeyPress(VirtualKeyCode.VK_2); Helper.WaitSeconds(0.1); } } } else { validTarget = WowApi.PlayerData.PlayerHasTarget && WowApi.PlayerData.TargetHealth == 100 && !WowApi.PlayerData.TargetInCombat && WowApi.PlayerData.TargetFaction == 0 && WowApi.PlayerData.IsInCloseRange; if (validTarget) { Input.KeyPress(VirtualKeyCode.VK_2); Helper.WaitSeconds(0.1); } } if (!validTarget) { Target.Act(); } }