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.
2.4K
Cavebot Player Toggle #53
This turns off Cavebot if player is off screen, allows follow char to catch up.
File: friendos_dist.lua | 392b | 12 lines.
local friendName = "friendname"
onScreen= macro(100,"friend OS", function()
    local spectators = getSpectators(pos(), false)
    for i, spec in pairs(spectators) do
        if spec:getName() == friendName then
          if getDistanceBetween(pos(), spec:getPosition()) < 4 then
            return CaveBot.setOn()
          end
        end
    end
    return CaveBot.setOff()
end)
- remove | + add
File: friendos.lua | 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)
- remove | + add

13 Jul 2022
Ads