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.

Findable (Identifiable & Nameable)

Featured Replies

Please include this into the API:

 

Findable is an interface that extends the following:

  • Identifiable is an interface that contains #getId() : int
  • Nameable is an interface that contains #getName() : String

 

How it works:

New Entity getter methods support 'Findable...' parameter. The method first checks to see if entity's id equals Identifiable#getId(), but if the value equals -1, it then checks specifically for Nameable#getName().

 

Amended to enable name-specific searching. This would be used to find clue scrolls since they're numerous. It can also be used for entities you cannot have the ids for, e.g., objects and NPCs. Another bonus to this is that non-usable names can be used alternatively for the #getName() method (e.g., "Grimy ranarr"), to make it easier to profile enum records without worrying Namable is going to be checked.

 

Why?

Convenient namespaces, that's why. Enums can implement interfaces, and this would allow getter methods to call something like getClosest(Loot.DRAGON_CHAINBODY) instead of the existing way getClosest(Loot.DRAGON_CHAINBODY.getId()).

Edited by liverare

  • Author

quick small change :)

  • 3 weeks later...

Alek what you can do is create the findable interface with the two methods. Then have the Identifiable interface extends the findable interface. The reason why you should do it is in op. Also it's all cool and stuff using filters, but using interfaces are easier.

Edited by josedpay

  • 4 weeks later...

This is a pretty good idea; I'll keep this open until I put something together. Don't expect something soon, but it's definitely on "the list".

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.