raptor 10 Share 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. Link to comment Share on other sites More sharing options...
Diddy 265 Share Posted June 13, 2016 remember to use getSkillTracker().start(); in your onStart() Link to comment Share on other sites More sharing options...
Nuclear Nezz 2040 Share 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) Link to comment Share on other sites More sharing options...
raptor 10 Author Share 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? Link to comment Share on other sites More sharing options...
Mad 86 Share 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() ? Link to comment Share on other sites More sharing options...
raptor 10 Author Share 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-- Link to comment Share on other sites More sharing options...
Mad 86 Share 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 Link to comment Share on other sites More sharing options...
Diddy 265 Share Posted June 14, 2016 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 More sharing options...
Hopewelljnj 46 Share Posted June 14, 2016 I typically check if getLocalPlayer().isOnScreen() Link to comment Share on other sites More sharing options...
raptor 10 Author Share 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! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.