Hello. I've tried to implement a systematic world hopping feature into my script that will follow a list of worlds. It starts off fine but then after a few hops it will just hop back and forth between two worlds, occasionally hopping to another world on the list. Sometimes it will hop, log in, and then log right back out and hop again. Here is my world hopping code:
Ohh and it tends to hop between 381 and 394 mainly.
public int[] worlds = {308, 316, 381, 382, 383, 384, 393, 394};
public int i;
for(i = 1; i < 8;) {
worldHopper.hop(worlds[i]);
i++;
new ConditionalSleep(1000) {
@Override
public boolean condition() throws InterruptedException {
return myPlayer().isVisible();
}
}.sleep();
}