Novak 35 Share Posted December 16, 2014 (edited) java.lang.NullPointerException at org.dreambot.api.methods.MethodProvider.getLocalPlayer(MethodProvider.java:23) at org.dreambot.api.methods.input.mouse.destination.EntityDestination.interact(EntityDestination.java:213) at org.dreambot.api.methods.input.mouse.destination.EntityDestination.interact(EntityDestination.java:189) at org.dreambot.api.wrappers.interactive.NPC.interact(NPC.java:158) at nodes.TanNode.execute(TanNode.java:36) at org.dreambot.api.script.impl.TaskScript.onLoop(TaskScript.java:81) at org.dreambot.api.script.AbstractScript.run(AbstractScript.java:125) at java.lang.Thread.run(Thread.java:745) error at: NPC tanner = getNpcs().getClosest(3231); if(tanner.isOnScreen()) { tanner.interact("Trade"); //sleep } why is it throwing this? the npc is valid and visible(yes the id is correct, but does same thing with string) Edited December 16, 2014 by Novak Link to comment Share on other sites More sharing options...
Notorious 341 Share Posted December 16, 2014 java.lang.NullPointerException at org.dreambot.api.methods.MethodProvider.getLocalPlayer(MethodProvider.java:23) at org.dreambot.api.methods.input.mouse.destination.EntityDestination.interact(EntityDestination.java:213) at org.dreambot.api.methods.input.mouse.destination.EntityDestination.interact(EntityDestination.java:189) at org.dreambot.api.wrappers.interactive.NPC.interact(NPC.java:158) at nodes.TanNode.execute(TanNode.java:36) at org.dreambot.api.script.impl.TaskScript.onLoop(TaskScript.java:81) at org.dreambot.api.script.AbstractScript.run(AbstractScript.java:125) at java.lang.Thread.run(Thread.java:745) error at: NPC tanner = getNpcs().getClosest(3231); if(tanner.isOnScreen()) { tanner.interact("Trade"); //sleep } why is it throwing this? the npc is valid and visible(yes the id is correct, but does same thing with string) Actually this has to do with getLocalPlayer Node/TaskScript with the current release. It has already been fixed, though the update hasn't been push. For the meanwhile, a way to get around this is by getPlayers.myPlayer. Though I promise this will be fixed in the upcoming update, which will be hopefully early tomorrow morning. Also, for further issues/errors, you can use our tracker: http://dreambot.org/forums/index.php?/tracker/project-3-dreambot/ Link to comment Share on other sites More sharing options...
Eliot 193 Share Posted December 16, 2014 You should also be doing a null check before tanner.isOnScreen(); Link to comment Share on other sites More sharing options...
Novak 35 Author Share Posted December 16, 2014 (edited) You should also be doing a null check before tanner.isOnScreen(); there is one in the accept method, thank you though Actually this has to do with getLocalPlayer Node/TaskScript with the current release. It has already been fixed, though the update hasn't been push. For the meanwhile, a way to get around this is by getPlayers.myPlayer. Though I promise this will be fixed in the upcoming update, which will be hopefully early tomorrow morning. Also, for further issues/errors, you can use our tracker: http://dreambot.org/forums/index.php?/tracker/project-3-dreambot/ the execute method does not even have a getLocalPlayer or getPlayers method which is why I'm confused as to why its happening Edited December 16, 2014 by Novak Link to comment Share on other sites More sharing options...
Pandemic 2467 Share Posted December 16, 2014 there is one in the accept method, thank you though the execute method does not even have a getLocalPlayer or getPlayers method which is why I'm confused as to why its happening Interacting calls for the player, just look at the stack trace Link to comment Share on other sites More sharing options...
Novak 35 Author Share Posted December 16, 2014 Interacting calls for the player, just look at the stack trace so i will have to wait until the next update for npc interaction to work? Link to comment Share on other sites More sharing options...
Pandemic 2467 Share Posted December 16, 2014 so i will have to wait until the next update for npc interaction to work? If you're using task script, yeah, I'll build a new version now Link to comment Share on other sites More sharing options...
Novak 35 Author Share Posted December 16, 2014 If you're using task script, yeah, I'll build a new version now sweet, lmk when its done bb Link to comment Share on other sites More sharing options...
Pandemic 2467 Share Posted December 17, 2014 sweet, lmk when its done bb All done, just re-run the launcher Novak 1 Link to comment Share on other sites More sharing options...
Novak 35 Author Share Posted December 17, 2014 All done, just re-run the launcher thanks, works perfect now Pandemic 1 Link to comment Share on other sites More sharing options...
Recommended Posts