TargetBot Toggle
#41
macro(500, "target toggle", function()
if isInPz() then return end
local monsters = 0
for i, mob in ipairs(getSpectators(posz())) do
if mob:isMonster() and getDistanceBetween(player:getPosition(), mob:getPosition()) >= 1 and getDistanceBetween(player:getPosition(), mob:getPosition()) <= 5 then
monsters = monsters + 1
end
end
if monsters >= 5 then
if TargetBot:isOff() then TargetBot:setOn() end
elseif monsters == 0 then
if TargetBot:isOn() then TargetBot:setOff() end
end
end)
- remove | + add
25 Jun 2021