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.

Vertical Dropping - Item Slot (?)

Featured Replies

public void vertical(){
		for(int i = 0; i < 28; i = i + 4){
			if(inventory.getItemInSlot(i) != null){
				inventory.getItemInSlot(i).interact("drop");
			}
		}
	}

The result of using the above mentioned code is this:

giphy.gif

I've been fiddling around for the past hour with this, tried completely different methods, tried adding in sleep functions, nothing seems to work, any help would be greatly appreciated :)

think about that logic.

you're going to go through:

 

0

4

8

12

16

20

24

and you (would) only drop those items.

 

beside that, you're trying to drop the actual Item which is crucially different from the item in the slot. You would want to do something like:

inventory.interact(i, "Drop")

  • Author

Ah, I understand my error, foolish me, thankyou for your help smile.png

Edited by viri

  • Author

For those interested, I ended up going with the following code:

 

for (int rep = 0; rep < 4; rep++) {
	for (int i = rep; i < 28; i = i + 4) {
		if (inventory.getItemInSlot(i) != null) {
		        inventory.interact(i, "drop");
		}
	}
}

Edited by viri

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.