So I have made a very beginner script but it did the job until I wanted to add world hopping.
Each time my code is executing, the script doesn't wait for the world hopping to take place, it just opens the world hopping menu and goes to trade once again.
I tried adding sleeps too after "worldHop1" but it only made the world hopping take this amount of time and still didn't even hop afterwards, just trades again.
I would really appreciate it if someone can help me regarding this!
Here is the part of my script that I am talking about:
@Override
public int onLoop() throws InterruptedException {
isReadyToTrade();
trade();
sleep(3000);
Buy();
sleep(3000);
ExitStore();
sleep(5000);
checkInventory();
sleep(3000);
worldHop1();
return 0;
}
public void worldHop1(){
getWorlds().hop(308);
}