Diddy 265 Share Posted August 26, 2015 That can be fixed by starting the script logged in. If you start outside of the game, YOUR TOTAL xp is added when you log in. thanks for reply, but it doesn't make a differents if I'm already logged in or not :/ No big deal though Link to comment Share on other sites More sharing options...
Computor 178 Author Share Posted August 26, 2015 thanks for reply, but it doesn't make a differents if I'm already logged in or not :/ No big deal though Are you starting the XP counter in your onStart() method? Meaning: getSkillTracker().start(Skill.WOODCUTTING); Diddy 1 Link to comment Share on other sites More sharing options...
Diddy 265 Share Posted August 26, 2015 holy moly, thaaaaanks!!!! Link to comment Share on other sites More sharing options...
Computor 178 Author Share Posted August 27, 2015 holy moly, thaaaaanks!!!! np Link to comment Share on other sites More sharing options...
Diddy 265 Share Posted August 29, 2015 Made this myself thanks to this guide Link to comment Share on other sites More sharing options...
Computor 178 Author Share Posted August 29, 2015 Made this myself thanks to this guide That looks sick! Diddy 1 Link to comment Share on other sites More sharing options...
dacs123 0 Share Posted August 31, 2015 (edited) Really really loved this! thanks a billion. even with my minimal knowledge this helped me pick up the general idea. John's Beer Buyer seemed to stop working, so out of curiosity i decided to try and make one myself for fun, and all of it seems to be working aside getting the Bartender NPC instead of closest NPC, which is usually the Bartender anyways but sometimes the other NPCS walk behind the bar and mess it up. I tried using npc.equals("Bartender") but it didnt work. Edited August 31, 2015 by dacs123 Link to comment Share on other sites More sharing options...
qbots 239 Share Posted August 31, 2015 holy moly, thaaaaanks!!!! Also if you want to start it logged out and have the exp tracker work you can try something like this: private boolean firstlog = true; public void onLoop() { if(firstlog) { getSkillTracker().start(); firstlog = false; } //REST OF YOUR CODE HERE return 100; } Diddy 1 Link to comment Share on other sites More sharing options...
Computor 178 Author Share Posted August 31, 2015 (edited) Really really loved this! thanks a billion. even with my minimal knowledge this helped me pick up the general idea. John's Beer Buyer seemed to stop working, so out of curiosity i decided to try and make one myself for fun, and all of it seems to be working aside getting the Bartender NPC instead of closest NPC, which is usually the Bartender anyways but sometimes the other NPCS walk behind the bar and mess it up. I tried using npc.equals("Bartender") but it didnt work. You'd need to do: NPC bartender = getNpcs().closest("Bartender"); OR NPC bartender = getNpcs().closest(npc -> npc != null && npc.getName().equals("Bartender")); the .equals operator would be checking the object itself, and the NPC (object) is not equal to the string "Bartender" (object). Edited August 31, 2015 by Computor Link to comment Share on other sites More sharing options...
dacs123 0 Share Posted August 31, 2015 AHHHHH, I forgot the getName. Thank you very much! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now