Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Correct SkillTracker usage?


    raptor

    Recommended Posts

    What's the correct way to use SkillTracker with TaskNodes?

     

    Currently, whenever I use SkillTracker (whether I use the default client tracker or instantiate a new one), regardless of whether I reset it or start it, I only ever receive back my current levels when I call skillTracker.getGainedLevels(skill).

     

    Thanks in advance.

    Link to comment
    Share on other sites

    You need to start the tracker once the account is logged in. While it's logged out the skills are probably read at 0 because the rs client hasn't set any of the values yet (since you haven't logged in)

    Link to comment
    Share on other sites

    You need to start the tracker once the account is logged in. While it's logged out the skills are probably read at 0 because the rs client hasn't set any of the values yet (since you haven't logged in)

    Thanks Nezz, that makes sense. Is there a way to hook the login completion, or to determine if the player has completed logging into the game?

    Link to comment
    Share on other sites

    Thanks Nezz, that makes sense. Is there a way to hook the login completion, or to determine if the player has completed logging into the game?

    getClient().isLoggedIn() ?

    Link to comment
    Share on other sites

    getClient().isLoggedIn() ?

    returns true before everything is loaded, so checking gamestates or getLocalPlayer().isVisable() or something should help

    Link to comment
    Share on other sites

    I typically check if getLocalPlayer().isOnScreen()

    Thanks, I was able to get the skillTracker working correctly using this as a flag for being logged into the game!

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.