- Joined
- Sep 22, 2015
- Messages
- 1,613
- Thread Author
- #1
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