Brown
2006-06-04 18:19:51
I had come to find that there isnt really any function to handle lag. A post in the applications reminded me to suggest the adding of a lag handling procedure. I created this quite a while ago when I ran into the problem on some scripts.
(I just pulled this out of my powerminer quick)
[php]Procedure HandleLag;
begin
//if blackscreen
if FindColorTolerance(x,y, 597099, 350, 300, 376, 320, 3) then
begin
wait(100+random(500));
mouse (390,340,5,5,true);
end;
//ifloggedout
if not loggedin then
begin
wait(100+random(500));
RandomNextPlayer(false);
end;
end;[/php]
(I just pulled this out of my powerminer quick)
[php]Procedure HandleLag;
begin
//if blackscreen
if FindColorTolerance(x,y, 597099, 350, 300, 376, 320, 3) then
begin
wait(100+random(500));
mouse (390,340,5,5,true);
end;
//ifloggedout
if not loggedin then
begin
wait(100+random(500));
RandomNextPlayer(false);
end;
end;[/php]