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 to use methods World class not Worlds class?

Featured Replies

1 hour ago, Pegasus said:


It's deprecated, you shouldn't use it, and it doesn't make any sense to create a World instance yourself. To determine if a world is PVP it just checks the activity String that you provide.

Like mentioned in the other post you should use the widgets from the world switcher, or find a different solution.

 

TL: We have an actual World hook which that class used to represent. When the world switcher came out I only wanted to maintain one form of world hopping, not both the login screen and world switcher. I decided to not use the world hook and only use the world switcher, as this seems more preferable. There were also issues with scripters not understanding that the world accessor was only available when you were completely logged out - which lead to a lot of confusion because all the other API methods were available only when logged in. Since then I moved to have the script only execute when you are completely logged in, which makes this impossible anyways.

TLDR: I use that class internally, it could just be re-written as a private inner class that API users can't access.

  • Alek locked this topic
Guest
This topic is now closed to further replies.

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.