I have no error in this code:
Код
Repeat 10 //repete 10 vezes
:main //main script part
send tab //proximo target
if 1 = 1 //verifica se o mob tem hp
goto atak //proximo comando
:atak //comandos para atacar o mob
send 1 //hit normal no mob
while 1 = 1 //verifica se o mob tem hp e repete o comando
goto atak
end_while
end_if
End_Repeat
In general i strongly recommend to use lua syntax (put --lua in zero string for enable it) and never use goto.