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.

How to use options on furnace after it's clicked?

Featured Replies

So when you click smelt on a furnace, it brings up a bunch of options like bronze, blurite, iron, all of that. How do I have the bot click on one of those, Can't seem to figure it out and have no idea where to look in the api. I thought it might be interfaces but I didn't know what it meant by parent/child.

interfaces use the debugger in the client

Edited by Novak

  • Author

You need to grab the interface id's for each and interact with them.

Use the interface debugger.

So would It be something like

Entity furnace = objects.closest("Furnace");

furnace.interact("Smith");

Furnace.interact(Id of option after first click goes here?);

RS2Interface(parent) and RS2InterfaceChild(child, grandchild) wink.png

Basicly:

A parent is a collection of childs and grandchilds.

A child can be a collection of grandchilds

So a parent is the main interface, once clicked that becomes the child, and if that's clicked it becomes the grandchild?

interfaces use the debugger in the client

Will it tell me the ID then of the option I want to click? I was messing around with that yesterday on the spinning wheel and couldn't figure it out

So would It be something like

Entity furnace = objects.closest("Furnace");

furnace.interact("Smith");

Furnace.interact(Id of option after first click goes here?);

So a parent is the main interface, once clicked that becomes the child, and if that's clicked it becomes the grandchild?

 

Basicly you can do: (Just a quick example)

RS2Interface parent = script.interfaces.get(582);
   if(parent != null){
      RS2InterfaceChild child = parent.getChild(4);
      if(child != null)
         child.interact("Make 10");
}	

You only have to get the right ID's fromt the furnance text in chatbox wink.png

You can use the interface debugger for that!

Edited by Khaleesi

  • Author

Basicly you can do: (Just a quick example)

RS2Interface parent = script.interfaces.get(582);   if(parent != null){      RS2InterfaceChild child = parent.getChild(4);      if(child != null)         child.interact("Make 10");}
You only have to get the right ID's fromt the furnance text in chatbox wink.png

You can use the interface debugger for that!

So then it is the main interface is the parent, and the different clickable options are the children? And I'm assuming when you say it's not null, that means the text is black and not red? Thanks for the replies by the way, definatly cleared some confusion up.

So then it is the main interface is the parent, and the different clickable options are the children? And I'm assuming when you say it's not null, that means the text is black and not red? Thanks for the replies by the way, definatly cleared some confusion up.

 

Just testing if it exists ... could be that the child could nto be loaded and returned null.

Then a npe would be thrown if you try to interact.

 

It's smart to always null check an object, npc, ... before trying to interact with them.

This will stop your script from jamming :)

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.