Untitled
unknown
plain_text
2 years ago
644 B
11
Indexable
--[ 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)Editor is loading...
Leave a Comment