Welcome!

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

Sign up now!

Resolved WorldOverview filter broken?

Joined
Sep 22, 2015
Messages
1,613
Code:
private void selectNewWorld() {
        WorldOverview worldOverview = Worlds.newQuery().member().filter(a ->
                !a.isBounty() &&
                        !a.isHighRisk() &&
                        !a.isDeadman() &&
                        !a.isPVP() &&
                        !a.isSkillTotal1250() &&
                        !a.isSkillTotal1500() &&
                        !a.isSkillTotal1750() &&
                        !a.isSkillTotal2000() &&
                        !a.isSkillTotal2600() &&
                        !a.isLegacyOnly() &&
                        !a.isEoCOnly() &&
                        !a.isQuickChat() &&
                        !a.isVIP() &&
                        !a.isTournament()).results().random();
        selectedWorld = worldOverview.getId();
    }

The bot tries to enter worlds that are filtered to not being able to worldhop to. For example it'll hop to f2p worlds even if there's #.member() in the query. It'll hop to EoC world or LegacyOnly even if it's not supposed to.

@Party @Cloud
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
If any of those methods used in the filter call are marked as either OSRSOnly or RS3Only (look for the annotation in the api), then invoking it on the other game type will throw an exception, resulting in behavior that you don't desire.
 
Joined
Sep 22, 2015
Messages
1,613
If any of those methods used in the filter call are marked as either OSRSOnly or RS3Only (look for the annotation in the api), then invoking it on the other game type will throw an exception, resulting in behavior that you don't desire.
Didn't know about that, thanks!! Will check out in few hours :D

Sent from my MI 5s using Tapatalk
 
Top