Skip to content

Commit

Permalink
Only Stop Nav if we have no velocity and havent moved in 5 + seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Feb 19, 2024
1 parent cf2d205 commit a3dace1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,11 @@ local function Main()
return
end

-- sometimes nav gets interupted this will try to reset it.
if RGMercConfig:GetTimeSinceLastMove() > 5 and mq.TLO.Navigation.Active() and mq.TLO.Navigation.Velocity() == 0 then
RGMercUtils.DoCmd("/nav stop")
end

if RGMercUtils.GetXTHaterCount() > 0 then
curState = "Combat"
--if os.clock() - RGMercConfig.Globals.LastFaceTime > 6 then
Expand Down

0 comments on commit a3dace1

Please sign in to comment.