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.

Stacked grounditems

Featured Replies

if (GraphicUtilities.isVisibleOnMainScreen(new RectangleDestination(getBot(), groundItem.getModel().getBoundingBox(groundItem.getGridX(), groundItem.getGridY(), groundItem.getZ())).getBoundingBox())) {
						
}

Any ideas why it throws NPE for stacked items(example; if coins are covered with bigger item like kiteshield etc ...) ?

Edited by Ayylmao420

  • Author

 

That looks like an unsafe way of doing

groundItem.isOnScreen()

What is the difference between isVisible() and isOnScreen() ?

  • Author

They're probably the same.

 

That won't help me really since isVisible() fails aswell when item is stacked.

That won't help me really since isVisible() fails aswell when item is stacked.

 

Maybe check if the tile is onScreen that the item is sitting at.

Ugh, why do you keep making visibility threads. Just do:

groundItem.interact("Take");

It figures out if the item is visible or not, rotates the camera, walks to the object, etc. 

  • Author

Ugh, why do you keep making visibility threads. Just do:

groundItem.interact("Take");

It figures out if the item is visible or not, rotates the camera, walks to the object, etc. 

It is for my custom interaction method, that is why.

if (GraphicUtilities.isVisibleOnMainScreen(GraphicUtilities.getModelArea(getBot(), groundItem.getGridX(), groundItem.getGridY(), groundItem.getZ(), groundItem.getModel()))) {
}

Seems to work now.

Edited by Ayylmao420

It is for my custom interaction method, that is why.

if (GraphicUtilities.isVisibleOnMainScreen(GraphicUtilities.getModelArea(getBot(), groundItem.getGridX(), groundItem.getGridY(), groundItem.getZ(), groundItem.getModel()))) {
}

Seems to work now.

 

Probably failed because the RectangleDestination cannot return a valid bounding box if it isn't on screen

 

Create an account or sign in to comment

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.