Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • How do I stop bot hopping to worlds that are full


    Purple Ownz

    Recommended Posts

    Hello, my script hops to worlds that are full and I'm not sure why. I have checks to make sure it hops to members worlds, "normal" worlds, worlds without total level requirements, etc. and those checks all work.

     

    But when I check for worlds that are full (or nearly full) using getPopulation() < 1980 or getPopulation() != 2000 the bot still hops to worlds with 2000 pop using the ingame world hopper interface and subsequently auto logs to title screen because of it.

     

    Thought I'd pop the question in here after a forum search returned nothing. Instead of doing late night debugging. Cheers.

    Link to comment
    Share on other sites

    10 hours ago, MaximusPrimo said:

    If you could post your code that handles the world hopping that would help see what's going on

     My method to hop worlds in order:

    private int nextWorldInOrder() {
        return Worlds.getNormalizedWorlds()
                .stream()
                .filter(world -> world.getWorld() > Worlds.getCurrentWorld() && world.isMembers() &&
                        world.isNormal() && world.getMinimumLevel() == 0 && world.getPopulation() < 1980)
                .min(Comparator.comparingInt(World::getWorld))
                .map(World::getWorld)
                .orElse(302);
    }
    
    WorldHopper.hopWorld(nextWorldInOrder());

    Problem is it still hops to worlds that are full

    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.