Cavebot Player Toggle
#53
This turns off Cavebot if player is off screen, allows follow char to catch up.
local friendName = "Friend"
friendonscreen = macro(100,"friend OS", function()
local spectators = getSpectators(pos(), false)
for i, spec in pairs(spectators) do
if spec:getName() == friendName then
return CaveBot.setOn()
end
end
return CaveBot.setOff()
end)
28 Aug 2021