Your browser does not support JavaScript or its disabled!
Please turn it on, or be aware that some features on this website will not work correctly.
163
Cavebot Player Toggle #53
This turns off Cavebot if player is off screen, allows follow char to catch up.
311b | 10 lines.
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