I'm using your "wait until it's less crowded" code you posted in the CountMobs userfunction topic. I tried to change something but it seems not to work:
Code: Select all
function playerDetect()
if Count_Players == true then
if CountPlayers(nil, true) > 0 then
player:cast("ROGUE_HIDE");
print("1 or more players found. Don't bot. Wait")
repeat
yrest(20000)
until 1 > CountPlayers(nil, true)
elseif player:findNearestNameOrId("mobID") then
sendMacro('TargetNearestEnemy("mobID")')
player:fight()
end
end
end
What am I doing wrong?
Already thanks for your answer
Edit: I totally forgot to set it to true in the onload But it gives an error now.