Untitled
--[ Macro de parar cave se tiver player na tela ]-- local distancetostop = 6 -- distância para parar a cave macro(100, "Stop Cave Player Screen", function() local pos = pos() for _, spec in ipairs(getSpectators()) do if spec ~= player and spec:isPlayer() then local specPos = spec:getPosition() if specPos then distance = getDistanceBetween(pos, specPos) if distance < distancetostop then CaveBot.setOn() TargetBot.setOff() return end end end end CaveBot.setOn() TargetBot.setOn() end)
Leave a Comment