GREEN GIANT
2013-07-26 18:13:09
Just a quick one, can anyone see why this 'if/ until' loop wont work?
I want to loop the function until the chatbox appears or until TimeFromMark > 10000.
I want to loop the function until the chatbox appears or until TimeFromMark > 10000.
begin
MarkTime(T);
repeat
if (TimeFromMark(T) > 10000) then
break else
begin
if FindObjCustom(x, y, ['-to'], [8158599], 2) then
Wait(randomRange(100, 250));
ClickMouse2(Mouse_Right);
WaitOption('alkuu', 300);
Wait(RandomRange(800, 1000))
until AreTalking();
exit;
end;
end;