ava.lang.NullPointerException
at org.osbot.rs07.api.Worlds.iiiiIiiIIIIi(lf:97)
at org.osbot.rs07.api.Worlds.IIIiiiiIIIii(lf:215)
at org.osbot.rs07.api.Worlds.hop(lf:301)
at MyPackage.task.MyMethodProvider.HopWorldRandom(MyMethodProvider.java:157)
at MyMainClass.task.MyClass.execute(MyClass.java:78)
at MyPackage.MyMainClass.onLoop(MyMainClass.java:43)
at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ch:146)
at java.lang.Thread.run(Unknown Source)
I think I found a bug, I'm trying this now and so far so good:
Any tips on how to detect if I've hopped world?
return CurrentWorld == HoptoWorldfinal;
Is really slow.
Hey I'm new to the bot scene and I'm currently struggling with a nullpointerexception.
It works for a couple of hours before I get a nullpointerexception and then it doesn't, any ideas?
WORLDS[] is simply an array of worlds to choose from when randomly hopping.