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.

"Make X" Option...

Featured Replies

My first time playing with this API. I wanted to figure out how to properly tell the bot to Make X when making arrow shafts.... This is what I got so far..

 

 

public void MakeShaft() throws InterruptedException {
if(this.inventory.contains(Logs)
&& this.inventory.isFull());
Item Knifes = inventory.getItem(Knife);
Item Log = inventory.getItem(Logs);
Knifes.interact("Use");
Log.interact("Use");
interfaces.interactWithChild(305, 2, "Make 1");
while(myPlayer().isAnimating()){
sleep(1000);
}
 
}

The interface takes a second or 2 to appear after using a knife on a log; You don't seem to be waiting for that.

This means that the interaction will likely fail. Perhaps insert a conditionalsleep after using the knife on the log

		new ConditionalSleep(3000) {

			@Override
			public boolean condition() throws InterruptedException {
				return interfaces.getChild(305, 2) != null;
			}
			
		}.sleep();

Edited by FrostBug

 

The interface takes a second or 2 to appear after using a knife on a log; You don't seem to be waiting for that.

This means that the interaction will likely fail. Perhaps insert a conditionalsleep after using the knife on the log

		new ConditionalSleep(3000) {

			@Override
			public boolean condition() throws InterruptedException {
				return interfaces.getChild(305, 2) != null;
			}
			
		}.sleep();

 

Don't just check null, check isvisible as well

  • Author

 

The interface takes a second or 2 to appear after using a knife on a log; You don't seem to be waiting for that.

This means that the interaction will likely fail. Perhaps insert a conditionalsleep after using the knife on the log

		new ConditionalSleep(3000) {

			@Override
			public boolean condition() throws InterruptedException {
				return interfaces.getChild(305, 2) != null;
			}
			
		}.sleep();

 

It still shows up in time, but how do I make the script select "Make X" rather then one, due to it having to RIGHT Click first then select that. 

It still shows up in time, but how do I make the script select "Make X" rather then one, due to it having to RIGHT Click first then select that. 

 

You can interact with the interface like so: 

interfaces.get(PARENT).getChild(CHILD).interact("Make-X");

Fill in the relevant fields of course ^_^

  • Author

You can interact with the interface like so: 

interfaces.get(PARENT).getChild(CHILD).interact("Make-X");

Fill in the relevant fields of course happy.png

 

Does not work, the script just hovers over it. If I made it "Make 1" it would work. 

 

Fixed ** Thanks 

Edited by Kozs

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.