1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved WorldOverview filter broken?

Discussion in 'Developer Support' started by qverkk, Aug 7, 2017.

  1. qverkk

    Joined:
    Sep 22, 2015
    Messages:
    1,603
    Likes Received:
    381
    Code (Text):
    1. private void selectNewWorld() {
    2.         WorldOverview worldOverview = Worlds.newQuery().member().filter(a ->
    3.                 !a.isBounty() &&
    4.                         !a.isHighRisk() &&
    5.                         !a.isDeadman() &&
    6.                         !a.isPVP() &&
    7.                         !a.isSkillTotal1250() &&
    8.                         !a.isSkillTotal1500() &&
    9.                         !a.isSkillTotal1750() &&
    10.                         !a.isSkillTotal2000() &&
    11.                         !a.isSkillTotal2600() &&
    12.                         !a.isLegacyOnly() &&
    13.                         !a.isEoCOnly() &&
    14.                         !a.isQuickChat() &&
    15.                         !a.isVIP() &&
    16.                         !a.isTournament()).results().random();
    17.         selectedWorld = worldOverview.getId();
    18.     }
    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

     
  2. Best Answer:
    Post #3 by qverkk, Aug 7, 2017
  3. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    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.
     
    qverkk likes this.
  4. qverkk

    Joined:
    Sep 22, 2015
    Messages:
    1,603
    Likes Received:
    381
    Didn't know about that, thanks!! Will check out in few hours :D

    Sent from my MI 5s using Tapatalk
     

Share This Page

Loading...