Jump to content
pertinate

Repeating help DX

Recommended Posts

I wrote this script for this Runescape Private Server I play, and it works fine, but when it repeats it again, it gets stuck on repeating the first procedure. Could anyone help me get it to repeat endlessly?

 

 

 

program New;
var
Count : Integer;
var
Counts : Integer;

procedure pots;
begin
Inc(Count);
begin
 sleep(200);
 ClickWindMouse(671, 469, 10, 10, true);
begin
sleep(200);
 ClickWindMouse(710, 473, 10, 10, true);
end;
end;
 end;

procedure bank;
begin
Inc(Counts);
begin
 sleep(1000);
 ClickWindMouse(279, 158, 10, 10, true);
begin
 sleep(1000);
 ClickWindMouse(583, 259, 10, 10, true);
begin
 sleep(1000);
 ClickWindMouse(98, 106, 10, 10, false);
begin
 sleep(1000);
 ClickWindMouse(95, 184, 10, 10, true);
begin
 sleep(1000);
 ClickWindMouse(490, 66, 10, 10, true);
end;
end;
end;
end;
end;
end;


begin
repeat
repeat
pots; 
until(Count = 27);
repeat
bank;
until(Counts = 1);
until(false);
end.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...