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.

Random resolvers

Featured Replies

I noticed in the API that there seems to be base support available for solving randoms.

Is this still functional?

If so how would I go about using it or extending on it?

You cannot implement a behaviour for each individual random event using the OSBot random solving api  (as in actual runescape random events, not the login screen and other stuff in there). RandomEvent is an enum having no fields for each random event, only the DISMISS_RANDOM field which is used for every event. Each event has a RandomBehaviourHook that describes how the bot will behave if it should activate. So you may be able to use the OSBot random event api to write your own behaviour that applies to all random events but not to an individual one.

 

If you insist to create your own behaviour for every random event in runescape then you can proceed to unregistering the hook for DISMISS_RANDOM so the bot will no longer react to randoms. Now you can define a custom behaviour when a given random is present (context detected using objects/npcs) and you may write your solvers just like any other script functionalities. Finally, create a new RandomBehaviourHook with the solving code and register it using RandomExecutor for the DISMISS_RANDOM field of RandomEvent.

  • Author

You cannot implement a behaviour for each individual random event using the OSBot random solving api  (as in actual runescape random events, not the login screen and other stuff in there). RandomEvent is an enum having no fields for each random event, only the DISMISS_RANDOM field which is used for every event. Each event has a RandomBehaviourHook that describes how the bot will behave if it should activate. So you may be able to use the OSBot random event api to write your own behaviour that applies to all random events but not to an individual one.

 

If you insist to create your own behaviour for every random event in runescape then you can proceed to unregistering the hook for DISMISS_RANDOM so the bot will no longer react to randoms. Now you can define a custom behaviour when a given random is present (context detected using objects/npcs) and you may write your solvers just like any other script functionalities. Finally, create a new RandomBehaviourHook with the solving code and register it using RandomExecutor for the DISMISS_RANDOM field of RandomEvent.

 

Thanks, all I needed to know :)

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.