Purple Ownz 1 Posted October 24, 2023 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.
MaximusPrimo 114 Posted October 24, 2023 (edited) If you could post your code that handles the world hopping that would help see what's going on Edited October 24, 2023 by MaximusPrimo
Diggington 20 Posted October 25, 2023 World world = new World(); if (world.getPopulation() < 2000){ if (WorldHopper.hopWorld(world)){ return; } }
Purple Ownz 1 Author Posted October 25, 2023 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now