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.

Item Interface and Item Bounds

Featured Replies

Item Interface

There should be an item interface that offers the bare essential methods for items. This interface would be applied to GroundItem and Item.

  • This would relate GroundItem to Item, despite their 2D/3D differences...
  • Which would make it easier to create a generic filter for all items, not needing to create two separate filters, filtering for the same items, for both objects.

You can chose what to call this new interface. I'd go with something innocuous; XItem

The interface methods will include:

  • getId() : int
  • getName() : String
  • getAmount() : int
  • isNote() : boolean
  • getNonNotedId() : int
  • getMarketPrice(boolean) : int

 

Item Bounds

As for Item, why can't I access the bounding box? I can access the "owner" widget. And sure, I could call #getMouseDestination() method for each item container. But why must I use some hackery route, simply to acquire the bounds for an item that's already been found and defined? I mean, there exists Item#interact(String...) and Item#hover(), so the bounds must be accessible at this level.

 

MouseDestination slot = new InventorySlotDestination(getBot(), getInventory().getSlot(getInventory().getItem("item")));

Rectangle bounds = slot.getBoundingBox();

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.