Results 1 to 4 of 4

Thread: Correct usage of sixHourFix under SRL-6?

  1. #1
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default Correct usage of sixHourFix under SRL-6?

    Under SRL-5, you'd just call SixHourFix; in the mainloop and put
    Code:
    if not LoggedIn then LoginPlayer;
    at the start of every procedure...is it still done the same way under SRL-6?
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  2. #2
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Simba Code:
    if (not isLoggedIn()) then
      players[currentPlayer].login();

  3. #3
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Under SRL-5, you'd just call SixHourFix; in the mainloop and put
    Code:
    if not LoggedIn then LoginPlayer;
    at the start of every procedure...is it still done the same way under SRL-6?
    You never have to call SixHourFix() in your script in both srl5/6. There may be a need to call ^ more than just at the start of a method depending on your script flow/structure etc.

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

    Default

    If your mainloop is written correctly you should only have to have "if (not isLoggedIn()) then exit;" at the beginning of every procedure and SRL will automatically restart SMART when needed.

    I wouldn't recommend calling players[currentPlayer].login() in every procedure. Generally you want your player to start at the beginning after logging in.

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
  •