Jump to content

Can Someone Explain To Me How To Merge These Scripts So They Loop


Recommended Posts

I have two scripts that work independently fine. But when I try to run them at the same time the first one starts, then the second one takes over and the first one no longer runs anymore.  Thanks for your help. I just started scripting and can't figure out some things and it gets really frustrating. I read tutorials, think I have it correct and it still doesn't meet the correct specs. Thanks in advance.

 

begin
while Delay(1500) do begin
Engine.UseSkill(4);
end;
end.
 
begin
while Delay(11500) do begin
Engine.UseSkill(411);
end;
end.
Link to comment
Share on other sites

 

I have two scripts that work independently fine. But when I try to run them at the same time the first one starts, then the second one takes over and the first one no longer runs anymore.  Thanks for your help. I just started scripting and can't figure out some things and it gets really frustrating. I read tutorials, think I have it correct and it still doesn't meet the correct specs. Thanks in advance.

 

begin
while Delay(1500) do begin
Engine.UseSkill(4);
end;
end.
 
begin
while Delay(11500) do begin
Engine.UseSkill(411);
end;
end.

 

what is after 

end.

is ignored by compiler, what u can do is add both this to procedures and start them with

script.newthread(@procedurename);

or simply add proper checks for this skills and use them one

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...