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.

Check if the menu is of item...

Featured Replies

	public static Rectangle getItemRectangleInBank(int slot) {
		Rectangle rect = getItemRectangle(slot);
		rect.width += 4; 
		return rect;
	}
	
	public static Rectangle getItemRectangle(int slot) {
		int freeSpaceX = 11;
		int freeSpaceY = 5;
		int width = 31;
		int height = 31;
		int x = 563;
		int y = 213;
		
		int newX = x + ((slot % 4) * width) + ((slot % 4) * freeSpaceX);
		int newY = y + ((slot / 4) * height) + ((slot / 4) * freeSpaceY);

		return new Rectangle(newX, newY, width, height);
	}

why :(

To get the rectangle lol?

I don't understand the purpose of what this does.

please explain a case where this would be used

Ok let me help you out there buddy. Like they said thats a bit hard core. I'm not really sure what you trying to do here.

To get the rec of the item use abstract mouse destination class. For bank use BankSlotDestination and for inventory use inventoryslotdestination. Osb already did all the hard coding for us.

To get slot of item in bank or inventory use the itemcontainer abstract class

Use the menu class, it has great methods like select action.

  • Author

You can use this method for your own interacting method. For example you want tp interact with the item on slot 0 but the menu for this item is already open you can check if it's really the menu of this item and interact with it instead of close and reopen it.

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.