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.

Interacting two items in inventory?

Featured Replies

Hi,

 

How would I go about making two items interact with each other in my inventory? For example, making a knife interact with a log. I have 

inventory.getItem(knife).interact("Use");

but how would I make the client click the log?

inventory.interact("Use",log);

Edited by Novak

  • Author

inventory.interact("Use",log);

 

This doesn't seem to work for me..there is no use option when you have already clicked the knife..

Edited by Xellic

script.inventory.interact("Use", "Knife");
MethodProvider.sleep(MethodProvider.random(200, 400);
script.inventory.interact("Use", log);

it works fine

Hmm if "Use" doesn't work I'm thinking if you have an item selected and try to click another item instead of "Use" it will be something 

like "Use knife ->" but knife is a different color so you might need to work with that as well. If you want to be lazy you could try null.

	public boolean interactItems(String item1, String item2) throws InterruptedException	{
		if (inventory.getItem(item1).interact("use"))	{
			sleep(700);
			return inventory.getItem(item2).interact(); //
		}
		return false;
	}
	

try that out for size. If you leave the String...actions empty then the client forces a left click.

Guest
This topic is now closed to further replies.

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.