aquietone / aqobot

EverQuest class automation Lua scripts for MacroQuest.
https://aquietone.github.io/docs/aqobot/
MIT License
13 stars 6 forks source link

Mag Custom Pull Range Slightly Too High #9

Closed towbes closed 8 months ago

towbes commented 8 months ago

Mag pull routine can get stuck sometimes because it stops moving ~200 distance from mob, but pet attack doesn't always work from that distance. Might be more stable to go to 150-175 distance for the /pet attack command to avoid the jerky movements when mobs are moving

towbes commented 8 months ago

Part of the reason is the pet needs to be in a certain distance so usually is lagging behind the mag a bit

towbes commented 8 months ago

Adding a distance check before the movement stop seems to have helped, but not sure if that's the ideal approach

function Magician:pullCustom()
    if mq.TLO.Target.Distance3D() < 175 then
        movement.stop()
    end
    mq.cmd('/pet attack')
    mq.cmd('/pet swarm')
    mq.delay(1000)
end
aquietone commented 8 months ago

added distance check, same to shd which had similar for its pull spell