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.7K
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.
 --[[
  Script made by Lee (Discord: l33_) - www.trainorcreations.com
  If you want to support my work, feel free to donate at https://trainorcreations.com/donate
  PS. Stop ripping off my work and selling it as your own.
 ]]--
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)
File: friendos.lua | 311b | 10 lines.
 --[[
  Script made by Lee (Discord: l33_) - www.trainorcreations.com
  If you want to support my work, feel free to donate at https://trainorcreations.com/donate
  PS. Stop ripping off my work and selling it as your own.
 ]]--
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)

13 Jul 2022
Ads