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.

Using item on item help! :)

Featured Replies

So I have a personal script where I use one item on another and then interact with the widget to "Make All". So far, the script works, but my only problem is that the player will "Use" multiple times before actually interacting with the widget, and then after using the widget "Make All" he'll also select the item in the inventory again randomly until it's time to bank.

 

This doesn't affect the script itself but I feel like its very clearly bot behavior and would like to fix it.

 

Here's my code for that part (I've changed variable names to anonymize it).

 

Thanks in advance for any help!

case MAKE:
                sleep(500);

                if ((getInventory().contains("ITEM1")) && (getInventory().contains("ITEM2")) && !myPlayer().isAnimating()) {
                    inventory.interact("Use", "ITEM1");
                    inventory.interact("Use", "ITEM2");
                    sleep(500);

                    if (getWidgets().isVisible(309, 4)) {
                        getWidgets().interact(309, 4, "Make All");
                        new ConditionalSleep(5000) {
                            @Override
                            public boolean condition() throws InterruptedException {
                                return myPlayer().isAnimating();
                            }
                        }.sleep();
                    }
                }
                break;

Edited by imancity


if (getInventory().contains("ITEM1") && getInventory().contains("ITEM")) {

if (!getWidgets().isVisible(309, 4)) {

if (getInventory().interact("Use", "ITEM1")) {

if (getInventory().interact("Use", "ITEM2")) {

new org.osbot.rs07.utility.ConditionalSleep(5000) {

@Override

public boolean condition() throws InterruptedException {

return getWidgets().isVisible(309, 4);

}

}.sleep();

}

}

} else {

if (getWidgets().interact(309, 4, "Make All")) {

new ConditionalSleep(100_000) {

@Override

public boolean condition() throws InterruptedException {

return !getInventory().contains("ITEM1") || getDialogues().isPendingContinuation();

}

}.sleep();

}

}

}

  • Author
		if (getInventory().contains("ITEM1") && getInventory().contains("ITEM")) {
			if (!getWidgets().isVisible(309, 4)) {
				if (getInventory().interact("Use", "ITEM1")) {
					if (getInventory().interact("Use", "ITEM2")) {
						new org.osbot.rs07.utility.ConditionalSleep(5000) {
							@Override
							public boolean condition() throws InterruptedException {
								return getWidgets().isVisible(309, 4);
							}
						}.sleep();
					}
				}
			} else {
				if (getWidgets().interact(309, 4, "Make All")) {
					new ConditionalSleep(100_000) {
						@Override
						public boolean condition() throws InterruptedException {
							return !getInventory().contains("ITEM1") || getDialogues().isPendingContinuation();
						}
					}.sleep();
				}
			}
		}

 

Perfect!!! :D Thanks a ton man. (I'm sure you know what those 'items' are supposed to be too :P)

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.