Purple Ownz 1 Share Posted October 24 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 More sharing options...
MaximusPrimo 26 Share Posted October 24 (edited) If you could post your code that handles the world hopping that would help see what's going on Edited October 24 by MaximusPrimo Link to comment Share on other sites More sharing options...
Diggington 16 Share Posted October 25 World world = new World(); if (world.getPopulation() < 2000){ if (WorldHopper.hopWorld(world)){ return; } } Link to comment Share on other sites More sharing options...
Purple Ownz 1 Author Share Posted October 25 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 More sharing options...
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