- Joined
- Apr 18, 2015
- Messages
- 408
- Thread Author
- #1
Not tested that much so if you find any exceptions let me know.
This basically gets the current world from the Friends list.
This basically gets the current world from the Friends list.
JavaScript:
public int getCurrentWorld() {
String world = Interfaces.getAt(550, 53).getText();
if(world != null) {
return Integer.parseInt(world.replaceAll("[\\D]", ""));
}
return 0;
}