Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

World hopping in order

Featured Replies

Hello there, ive been stuck at this line of code im trying to create. 

So basically i want to hop P2P worlds but in order 302>303>304>305>306>307>309 etc..

Ive seen this line of code

hopToP2PWorld()
Hops to a random P2P server which is not full or is PvP.
 

 

But this is used for random hopping and not what i need

Any1 could help me out 

 :D

53 minutes ago, legacyZZ said:

Hello there, ive been stuck at this line of code im trying to create. 

So basically i want to hop P2P worlds but in order 302>303>304>305>306>307>309 etc..

Ive seen this line of code

hopToP2PWorld()
Hops to a random P2P server which is not full or is PvP.
 

 

But this is used for random hopping and not what i need

Any1 could help me out 

 :D

hop(int world)

1 hour ago, legacyZZ said:

Just that?

Here's some pseudo-ish code:

get a list of all the worlds i.e. getWorlds.getAvailableWorlds()

Iterate through this list and pick out the ones that are paid worlds using .isMembersWorld() and put them in your own list of worlds maybe call it membersWorldsList

find the index of the current world within that membersWorldsList you just created 

hop to membersWorldsList[index+1] until the end then wrap around... maybe consider a linked list or something

 

Havn't tested or tried this specific problem yet - but thats how Id go about solving it

😀

7 hours ago, legacyZZ said:

Hello there, ive been stuck at this line of code im trying to create. 

So basically i want to hop P2P worlds but in order 302>303>304>305>306>307>309 etc..

Ive seen this line of code

hopToP2PWorld()
Hops to a random P2P server which is not full or is PvP.
 

 

But this is used for random hopping and not what i need

Any1 could help me out 

 :D

    private int nextWorldInOrder(boolean members) {
        return getWorlds().getAvailableWorlds(true)
                .stream()
                .filter(world -> !world.isPvpWorld() && world.isMembers() == members && !world.getActivity().contains("skill") && !world.getActivity().contains("Deadman") && world.getId() > getWorlds().getCurrentWorld())
                .min(Comparator.comparingInt(World::getId))
                .map(World::getId)
                .orElseGet(() -> members ? 302 : 301);
    }

and then 

        getWorlds().hop(nextWorldInOrder(true));

should work for you, if u want to use total level worlds aswell then parseInt of world acrivity and check if ur total level > required

  • Author

Illegal modifier for parameter nextWorldInOrder; only final is permitted

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.