Results 1 to 5 of 5

Thread: Reflect.Login.GetClientState results

  1. #1
    Join Date
    Feb 2013
    Location
    Rimmington
    Posts
    319
    Mentioned
    33 Post(s)
    Quoted
    183 Post(s)

    Default Reflect.Login.GetClientState results

    At the moment Reflect.Login.GetClientState is used to see if we're logged in. When the client is loading up a new map area we won't get the same result as we want, typically we want 30, as that's the state of us being logged in. When the client loads up a new map area we get 45, and therefor we won't be "Logged in" in terms of Reflect.Login.GetClientState.

    Discussion, how do we handle this in the best possible way? I want a stable and safe include that can handle the major network problems that OSRS is having.

    Should we just put all the client states into a TIntarray and declare it a win?





  2. #2
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    Just check if the client state is 10 for the loginscreen instead then?
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

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

    Default

    Simba Code:
    if (result = 30) or (result = 45) then
     exit(true);

    Quote Originally Posted by Hawker View Post
    Just check if the client state is 10 for the loginscreen instead then?
    How many other states are there though. Say the state for a "incorrect password" response is 25, therefore something like:

    Simba Code:
    if (not(result = 10))) then
     exit(true);
    would return the wrong value.
    Last edited by KeepBotting; 06-10-2015 at 07:55 PM.
    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

  4. #4
    Join Date
    Feb 2013
    Location
    Rimmington
    Posts
    319
    Mentioned
    33 Post(s)
    Quoted
    183 Post(s)

    Default

    https://github.com/FittaVillavu/OSR-...f38b643d754d6f

    That's how it'll look for now,

    Only problem and reason I'm asking is, I for one, need it to say that it's online even when it's loading. I do NOT know if it's a viable solution due to it might be the same client state when dc'ing





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

    Default

    Quote Originally Posted by Fitta View Post
    https://github.com/FittaVillavu/OSR-...f38b643d754d6f

    That's how it'll look for now,

    Only problem and reason I'm asking is, I for one, need it to say that it's online even when it's loading. I do NOT know if it's a viable solution due to it might be the same client state when dc'ing
    Create a separate routine that looks for the "Connection lost" message.

    Simba Code:
    if (result = 30) or (result = 45) then
     if (not(isDisconnecting())) then
      exit(true);
    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

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
  •