Jack Shep Posted March 27, 2019 Share Posted March 27, 2019 I can't get getWorlds().hop() to work, here's some code: ladder = getObjects().closest("Ladder"); if (ladder != null) { if (ladder.interact("Climb")) { new ConditionalSleep(20000) { @Override public boolean condition() { return bankArea.contains(myPlayer()); } }.sleep(); } } if (bankArea.contains(myPlayer())) { log("Hop"); worldHop(328); } } public void worldHop(int world) { getWorlds().hop(world); } I've also tried ladder = getObjects().closest("Ladder"); if (ladder != null) { if (ladder.interact("Climb")) { new ConditionalSleep(20000) { @Override public boolean condition() { return bankArea.contains(myPlayer()); } }.sleep(); } } if (bankArea.contains(myPlayer())) { log("Hop"); getWorlds().hop(328) } I get the "Hop" message in the logger, but it doesn't hop. Any ideas? Quote Link to comment Share on other sites More sharing options...
Kramnik Posted March 27, 2019 Share Posted March 27, 2019 Personally I use getWorlds().hopToP2PWorld() works fine for me Also I use sleep before hopping, but this is mostly because if PC is laggy bot sometimes fails to hop 1 1 Quote Link to comment Share on other sites More sharing options...
Jack Shep Posted March 27, 2019 Author Share Posted March 27, 2019 14 hours ago, kramnik said: Personally I use getWorlds().hopToP2PWorld() works fine for me Also I use sleep before hopping, but this is mostly because if PC is laggy bot sometimes fails to hop Putting a 5 second sleep before hopping seemed to do the trick, thanks! 1 Quote Link to comment Share on other sites More sharing options...