Sockz
04-13-2012, 02:19 AM
Hey guys, just a general question.
Is using until(false) bad scripting practice? Like take a look at my code below. Just wanted multiple peoples opinions.
Is there anyway that my code could create an infinite loop?
THANX
Repeat
FindNormalRandoms;
if FindDTM (burner, x, y, 109, 14, 317, 196) then
begin
mouse(x, y, 2, 2, true);
AntiBan;
MarkTime(t);
Repeat
if TimeFromMark(t) > 5000 then
break;
wait(1)
Until(ExistsItem(2) = false);
end;
if ExistsItem(2) then
begin
i:= i + 1
end else
begin
Break;
end;
if i = 5 then
begin
WriteLn('Unable to light burnner 1, Logging Out');
Logout;
TerminateScript;
end;
Until(false);
Is using until(false) bad scripting practice? Like take a look at my code below. Just wanted multiple peoples opinions.
Is there anyway that my code could create an infinite loop?
THANX
Repeat
FindNormalRandoms;
if FindDTM (burner, x, y, 109, 14, 317, 196) then
begin
mouse(x, y, 2, 2, true);
AntiBan;
MarkTime(t);
Repeat
if TimeFromMark(t) > 5000 then
break;
wait(1)
Until(ExistsItem(2) = false);
end;
if ExistsItem(2) then
begin
i:= i + 1
end else
begin
Break;
end;
if i = 5 then
begin
WriteLn('Unable to light burnner 1, Logging Out');
Logout;
TerminateScript;
end;
Until(false);