Jump 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.

How do I use the Worlds API?

Featured Replies

Hey guys, I'm trying to hop worlds in my script, and I'm having a little bit of difficulty understanding the Worlds methods.

In specific, I'm confused about the parameter "all" for the method getAvailableWorlds

public java.util.List<World> getAvailableWorlds(boolean all)
Gets a list with all available worlds to hop to
Parameters:
all - True for all worlds, False to filter out worlds that are not allowed to be hopped to

What is it that all does? If I wanted to just get a list of all P2P, non PVP worlds what would I input?

 

Thanks in advance <3

3 hours ago, ThoughtVNC said:

Hey guys, I'm trying to hop worlds in my script, and I'm having a little bit of difficulty understanding the Worlds methods.

In specific, I'm confused about the parameter "all" for the method getAvailableWorlds

public java.util.List<World> getAvailableWorlds(boolean all)
Gets a list with all available worlds to hop to
Parameters:
all - True for all worlds, False to filter out worlds that are not allowed to be hopped to

What is it that all does? If I wanted to just get a list of all P2P, non PVP worlds what would I input?

 

Thanks in advance <3

all - True for a List all worlds, False to filter out worlds that are not allowed to be hopped to based on osbots criteria of a invalid world (pvp, high-risk, etc.)

 

List<World> w = getWorlds().getAvailableWorlds(true);

want to filter?
List<World> w = getWorlds().getAvailableWorlds(true).stream().filter(world -> world.isMembers() && world.isPvp()).collect(Collectors.toList());

 

  • Author
1 hour ago, Chris said:
all - True for a List all worlds, False to filter out worlds that are not allowed to be hopped to based on osbots criteria of a invalid world (pvp, high-risk, etc.)

 

List<World> w = getWorlds().getAvailableWorlds(true);

want to filter?
List<World> w = getWorlds().getAvailableWorlds(true).stream().filter(world -> world.isMembers() && world.isPvp()).collect(Collectors.toList());

 

Thanks, I appreciate it.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.