Skip 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.

Typing into a dialogue

Featured Replies

Trying to type in the amount of things to make when you interact with an item "Make X".

So far I have this, but I don't think it is the best way to do it.

                widgets.interact(gui.getWidget()[0], gui.getWidget()[1], "Make X");
		cSleep(3000, widgets.isVisible(548, 120));
		sleep(random(150, 250));
		keyboard.typeString("99", true);

Still manages to type 99 into the chat sometimes

 

Also, while Im here I may as well ask

Is there something in the api to "Use" an item on another item

e.g. a Knife on logs.

Right now im doing something like this

	Item item = inventory.getItem("Knife");
		item.interact("Use");
		inventory.getItem(gui.getLogType()).hover();
		mouse.click(false);
  • Developer

 

Trying to type in the amount of things to make when you interact with an item "Make X".

So far I have this, but I don't think it is the best way to do it.

                widgets.interact(gui.getWidget()[0], gui.getWidget()[1], "Make X");
		cSleep(3000, widgets.isVisible(548, 120));
		sleep(random(150, 250));
		keyboard.typeString("99", true);

Still manages to type 99 into the chat sometimes

 

Also, while Im here I may as well ask

Is there something in the api to "Use" an item on another item

e.g. a Knife on logs.

Right now im doing something like this

	Item item = inventory.getItem("Knife");
		item.interact("Use");
		inventory.getItem(gui.getLogType()).hover();
		mouse.click(false);

 

Use this:

if (script.colorPicker.isColorAt(505, 390, new Color(174, 160, 131))) {
   script.keyboard.typeString("" + 99);
}

Checks if you are able to input text, Uses a color to determine if scrollbar is gone.

 

For the "Use" thing:

This is what i use:

public static void useItemOnItem(String name1, String name2, Script script) {
   if (script.widgets.getInventory().getSelectedItemName() != null && script.widgets.getInventory().getSelectedItemName().equals(name1)) {
   Item item = script.widgets.getInventory().getItem(name2);
      if (item != null)
	 item.interact("Use");
   } else {
      Item item = script.widgets.getInventory().getItem(name1);
         if (item != null)
            item.interact("Use");
   }
}

Hope this helped! :)

 

Khaleesi

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.