Hello y'all,
I just started making my first private script and it is close to finished however worldhopping is not working for me for some reason.
Worlds worldhop = new Worlds();
store.close();
if(worldhop!=null) {
worldhop.getWorlds().hopToF2PWorld();
this.x = x - x;
}
This is the code and I get this in the logger:
[ERROR][Bot #1][07/01 08:30:41 PM]: Error in script executor!
java.lang.NullPointerException at Main.onLoop(Main.java:51)
at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(kl:223)
at java.lang.Thread.run(Unknown Source)
line 51 is worldhop.getWorlds().hopToF2PWorld();
The problem has nothing to do with store.close(); I already tested this.
Does anybody have a clue why I get this error? If I fix this my first script is finally done ?
Thanks in advance for all the help!