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.

Greasy Nigel

Members
  • Joined

  • Last visited

  1. Solved, it is an RS2Object. I tried to get a powerup by method of getObjects().closest(n -> n.hasAction("Activate")); and logged powerup.getName() and it turns out that they are formatted like this: <col=ff9040>Recurrent damage
  2. Hey guys, so I want to interact with some of the powerups in nmz. This is what ive written: RS2Object powerup = getObjects().closest(n -> powerups.contains(n.getName())); if (powerup != null) { powerup.interact(); Sleep.sleepUntil(() -> powerup == null || !powerup.hasAction("Activate"), 5000); } Where powerups is a list containing the names of the powerups that I want to interact with. I've tried powerup as an NPC as well as a RS2Object, but no matter what, they are always null. Any ideas? SOLVED (see below): I decided I might as well share the snippet I eventually used in case it is of use to anyone else: List<String> powerups = Arrays.asList("Zapper", "Recurrent damage"); public boolean listContainsStringContaining(List<String> list, String string) { for (String listString : list) { if (string.contains(listString)) { return true; } } return false; } public void activatePowerups() { RS2Object powerup = getObjects().closest(n -> listContainsStringContaining(powerups, n.getName())); if (powerup != null) { powerup.interact(); Sleep.sleepUntil(() -> powerup == null || !powerup.hasAction("Activate"), 5000); log(powerup.getName()); } }

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.