raptor 10 Posted June 13, 2016 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.
Nuclear Nezz 2107 Posted June 13, 2016 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)
raptor 10 Author Posted June 14, 2016 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?
Mad 86 Posted June 14, 2016 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() ?
raptor 10 Author Posted June 14, 2016 getClient().isLoggedIn() ? I thought this checked if the DreamBot client is logged in? The API isn't explicit about what is logged in where. Checks if you're logged in http://dreambot.org/javadocs/org/dreambot/api/Client.html#isLoggedIn--
Mad 86 Posted June 14, 2016 I thought this checked if the DreamBot client is logged in? The API isn't explicit about what is logged in where. http://dreambot.org/javadocs/org/dreambot/api/Client.html#isLoggedIn-- another way u can do it is check if the gamestate is 30, im actually not sure about that client.isLoggedIn, didnt even think of that lol
Diddy 265 Posted June 14, 2016 getClient().isLoggedIn() ? returns true before everything is loaded, so checking gamestates or getLocalPlayer().isVisable() or something should help
raptor 10 Author Posted June 15, 2016 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!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.