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.

Possible fix for InteractionEvents

Featured Replies

Maybe it is already known, but just wanted to report the reason why lots of interactions (with objects and interfaces) are broken for certain scripts since the latest update:

 

menu#getMenuIndex(Entity entity, String[] actions, String[] names) works slightly different than menu#getMenuIndex(String[] names, String[] actions). The first one (which is now deprecated), allowed you put an empty array as actions. In this case the function returns the index of the first action corresponding to that entity / name. The 2nd function, however, always returns -1 if actions is empty.

 

The reason why this messes up lots of script is because some people prefer to use tree.interact() or item.interact() instead of tree.interact("Chop down") and item.interact("Use"). I suspect that you changed from the 1st getMenuIndex function to the 2nd one in the InteractionEvent code, returning -1 in these cases, so that the interaction fails.

 

 

Solution: let menu#getMenuIndex(String[] names, String[] actions) return the index of the first action corresponding to the names if actions is an empty list.

 

 

 

Edit: whoops, wanted to sent this as PM, but oh well.

Edited by Preliator

I'm glad you posted this here instead of sending this as a PM, in fact I disabled my messenger. I'll take a look into this tomorrow, but I'm pretty sure the null .interact() method should be working. If not, it will.

 

Thanks,

-Alek

Guest
This topic is now closed to further replies.

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.