Results 1 to 5 of 5

Thread: Wait time

  1. #1
    Join Date
    Mar 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default Wait time

    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.

  2. #2
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Marktime(varhere)

    And then you could check it like

    If timefrommark(varhere) > 300000 then blah blah lah


    300000 is 5 mins btw (milliseconds)

  3. #3
    Join Date
    Mar 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

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

  4. #4
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by farkid View Post
    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

  5. #5
    Join Date
    Mar 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Thanks for the help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •