ryan75195 1 Share Posted April 24, 2018 do { int i = Integer.parseInt(String.valueOf(getWorlds().getRandomWorld(x -> x != null && !x.isF2P() && !x.isDeadmanMode() && x.isHighRisk() && !x.isLastManStanding() && x.isMembers() && !x.isTournamentWorld())).substring(1)); log("World: " + i); getLoginUtility().changeWorld(i); sleep(500); } while (getLoginUtility().isWorldScreenOpen() && Stopped == false); I have this snippet of code here that is supposed to change the world at login screen to the value x defined in int i. the log displays the correct value of i, however getLoginUtility().changeWorld(i); does not seem to be working for some reason. would appreciate any help, thanks. Link to comment Share on other sites More sharing options...
Nuclear Nezz 2056 Share Posted April 25, 2018 1. why are you doing integer.parseInt(String.valueOf you can just do world.getID 2. What isn't working about it, I need a little bit more information. Link to comment Share on other sites More sharing options...
ryan75195 1 Author Share Posted April 25, 2018 1. ah i didn’t see world.getID ill use that instead. 2. the getLoginUtility().changeWorld(i) method will not select world i. the log will display a valid world, however the cursor will hover over a completely different world then just remain there. also getRandomWorld() will always chose world 365. Link to comment Share on other sites More sharing options...
jjggww1414 0 Share Posted April 25, 2018 After testing getLoginUtility().changeWorld(); Will not select the world even if manually specified Link to comment Share on other sites More sharing options...
ryan75195 1 Author Share Posted April 25, 2018 when an integer is manually entered the cursor will hover above the specified world and again will not select it and will just remain there until script is stopped.in this picture the specified world was 313. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.