SRL Archive - OSR Help

Wait time


farkid

2013-05-25 14:34:58

Is there a function/procedure to make the script wait a certain amount of time before doing a action but continuing down the script until the time is up and then do it? The script isn't for RS but I will relate it to RS for better understanding. Say I want the script to pot every 5 mins on the dot, but I want to continue attacking monsters until the 5 mins is up then re-pot.

rj

2013-05-25 14:37:15

Marktime(varhere)

And then you could check it like

If timefrommark(varhere) > 300000 then blah blah lah


300000 is 5 mins btw (milliseconds)

farkid

2013-05-25 14:53:18

You need to use the SRL include for this correct?
Is it good to use SRL inclue for non-RS scripts?

rj

2013-05-25 14:58:37

From: farkid
You need to use the SRL include for this correct?
Is it good to use SRL inclue for non-RS scripts?


Yes you have o use the srl include for that function, I don't know of any non rs related includes

farkid

2013-05-25 14:59:36

Thanks for the help.