Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resource [RS3] Getting the current world

Joined
Apr 18, 2015
Messages
408
Not tested that much so if you find any exceptions let me know.

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;
    }
 
Top