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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock