I have this in my script:
SCAR Code:
repeat
if FindRandoms then
if not LoggedIn then Exit;
Bars := BarCount;
Smelt(Players[CurrentPlayer].Strings[0], IntToStr(Amount-Bars));
Wait(1000+Random(500));
repeat
if FindRandoms then
if not LoggedIn then Exit;
if FindNPCChatText('ongra', ClickLeft) then
begin
Writeln('Level up!');
Inc(Players[CurrentPlayer].Integers[2]);
Break;
end;
if (BarCount = Bars) then Break;
Bars := BarCount;
Writeln('Bars made:' + IntToStr(Bars));
Writeln('But actually: ' + IntToStr(BarCount));
AntiBan;
Wait(1700+Random(300));
until (Bars = Amount);
until not FindDTM(MOreDTM, x, y, MIX1, MIY1, MIX2, MIY2);
But when I get a level up this happens:
It doesn't break the repeat loop and keeps printing in the debug 'Level up!' until I terminate the script...Oh and it stops printing 'Bars made: blah' and 'But actually: nah' stuff. It keeps printing only 'Level up!'
EDIT: I need it to break the inner loop if I get a level up.