Novak 35 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)
Notorious 342 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/
Novak 35 Author Posted December 16, 2014 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
Pandemic 2821 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
Novak 35 Author 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?
Pandemic 2821 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
Novak 35 Author Posted December 16, 2014 If you're using task script, yeah, I'll build a new version now sweet, lmk when its done bb
Pandemic 2821 Posted December 17, 2014 sweet, lmk when its done bb All done, just re-run the launcher
Novak 35 Author Posted December 17, 2014 All done, just re-run the launcher thanks, works perfect now
Recommended Posts
Archived
This topic is now archived and is closed to further replies.