Cavebot Player Toggle
#53
This turns off Cavebot if player is off screen, allows follow char to catch up.
--[[
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)
--[[
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