- Joined
- Sep 1, 2015
- Messages
- 9
- Thread Author
- #1
Hi, I tried converting one of my scripts from a different api onto runemate api and when I try to run the script I get this error
java.lang.NullPointerException
at com.itzDot.bots.AdvWineGrabber.tasks.WalkToLocation.execute(WalkToLocation.java:22)
at com.runemate.game.api.script.framework.task.TaskScript.onLoop(spb:231)
at com.runemate.game.api.script.framework.LoopingScript.run(gwb:14)
at com.runemate.game.api.script.framework.AbstractScript.start(jpb:51)
at app.TM.run(znb:227)
and the line 22 i'm using the webpath which looks like
final WebPath path = Traversal.getDefaultWeb().getPathBuilder().buildTo(new Coordinate(2931, 3515, 0));
path.step();
java.lang.NullPointerException
at com.itzDot.bots.AdvWineGrabber.tasks.WalkToLocation.execute(WalkToLocation.java:22)
at com.runemate.game.api.script.framework.task.TaskScript.onLoop(spb:231)
at com.runemate.game.api.script.framework.LoopingScript.run(gwb:14)
at com.runemate.game.api.script.framework.AbstractScript.start(jpb:51)
at app.TM.run(znb:227)
and the line 22 i'm using the webpath which looks like
final WebPath path = Traversal.getDefaultWeb().getPathBuilder().buildTo(new Coordinate(2931, 3515, 0));
path.step();