Skip to content

Commit

Permalink
update dofate waits
Browse files Browse the repository at this point in the history
  • Loading branch information
pot0to committed Oct 23, 2024
1 parent f3a1c55 commit b7bb59e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Fate Farming/Fate Farming.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
********************************************************************************
* Fate Farming *
* Version 2.15.15 *
* Version 2.16.1 *
********************************************************************************
Created by: pot0to (https://ko-fi.com/pot0to)
Expand Down Expand Up @@ -1873,6 +1873,7 @@ function DoFate()
if GetDistanceToTarget() <= (MaxDistance + GetTargetHitboxRadius()) then
if PathfindInProgress() or PathIsRunning() then
yield("/vnav stop")
yield("/wait 5") -- give it 5s to engage combat upon first entering combat range
else
PathfindAndMoveTo(x, y, z)
yield("/wait 1") -- inch closer by 1s
Expand All @@ -1887,22 +1888,19 @@ function DoFate()
TargetClosestFateEnemy()
yield("/wait 1") -- wait in case target doesn't stick
if not HasTarget() then
yield("/echo manual target did not stick")
PathfindAndMoveTo(CurrentFate.x, CurrentFate.y, CurrentFate.z)
end
end
else
if HasTarget() and (GetDistanceToTarget() <= (MaxDistance + GetTargetHitboxRadius())) then
if PathfindInProgress() or PathIsRunning() then
yield("/echo target within distance, vnav stop")
yield("/vnav stop")
end
else
if not (PathfindInProgress() or PathIsRunning()) and not UseBM then
yield("/wait 1")
local x,y,z = GetTargetRawXPos(), GetTargetRawYPos(), GetTargetRawZPos()
if x ~= 0 and z~=0 then
yield("/echo not in ranged/melee distance")
PathfindAndMoveTo(x,y,z, GetCharacterCondition(CharacterCondition.flying))
end
end
Expand Down

0 comments on commit b7bb59e

Please sign in to comment.