Jump to content

Recommended Posts

Posted

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.
Posted

 

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...