Results 1 to 7 of 7

Thread: Stopping a loop in a random

  1. #1
    Join Date
    May 2007
    Location
    Everywhere
    Posts
    1,428
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Stopping a loop in a random

    How would you stop a loop in a random?

    Let's say you're autoing alchemy, and you get teleported to an island. Will the script log you out or do you have to insert your own termination method?

    If it does not, how would you go about this? The only way I could think of is that you get a message saying "You can't do that here", but I want to cover all randoms.

    Any ideas? Thanks

  2. #2
    Join Date
    Feb 2009
    Location
    AZ, USA
    Posts
    460
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    FindNormalRandoms will check to see if you're in a random, and if SRL can solve the random, then try to solve it, if it can't solve it or fails to, it will logout.
    Is your account in an old-school random? Help SRL-OSR solve randoms!

  3. #3
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    Or if you are using reflection its R_FindRandoms
    Click here to find out how to get full screen without members! | Click here to check out my Ultimate Bitmap Tutorial! Edited to work with Simba! |

  4. #4
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Yes like cycro and Ogre said. You would just insert one of those procedures into your alching procedure, so it would check to see if you're in a random event after every alch or something like that.

  5. #5
    Join Date
    May 2007
    Location
    Everywhere
    Posts
    1,428
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Would it be wrong to use

    Code:
    begin
    repeat
    procedure 1
    procedure 2
    R_FindRandoms
    FindNormalRandom
    until (false)
    end;
    Assuming I'm using SMART/SRL/Reflection?

  6. #6
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by cstrike View Post
    Would it be wrong to use

    Code:
    begin
    repeat
    procedure 1
    procedure 2
    R_FindRandoms
    FindNormalRandom
    until (false)
    end;
    Assuming I'm using SMART/SRL/Reflection?
    Not wrong, but you don't need both FindNormalRandoms and R_FindRandoms. If you're using Reflection, then R_FindRandoms is enough.

  7. #7
    Join Date
    Feb 2009
    Location
    AZ, USA
    Posts
    460
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by cstrike View Post
    Would it be wrong to use

    Code:
    begin
    repeat
    procedure 1
    procedure 2
    R_FindRandoms
    FindNormalRandom
    until (false)
    end;
    Assuming I'm using SMART/SRL/Reflection?
    Yes, like Coh3n said, you only need one of the random procedures, however, if you're using Reflection, you don't have to use R_FindRandoms, you can use FindNormalRandoms, just a note.

    Also, you shouldn't make it until false if you plan to actually put that in a script, at least make it until not LoggedIn so that it won't continue if your character is logged out for some reason.
    Is your account in an old-school random? Help SRL-OSR solve randoms!

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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