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 the interface explorer

Featured Replies

The script I'm currently working on has a dialogue box that will occasionally pop up and I need to be able to click through it. Using the explorer I can put boxes around parts of the dialogue, but I really am unsure of what I'm supposed to be seeing and what information I need to grab.

 

Could anyone give me a quick explanation?

The script I'm currently working on has a dialogue box that will occasionally pop up and I need to be able to click through it. Using the explorer I can put boxes around parts of the dialogue, but I really am unsure of what I'm supposed to be seeing and what information I need to grab.

 

Could anyone give me a quick explanation?

the interface debugger only shows information for known interface IDs

you need to use the option 'interface' in the left hand list, then it will show the ID of 

what you hover over <3

When you hover over a part of the interface, it gives you parent (P) & child © info somewhere color coded on the screen.

What you need to do is hover over the item you are trying to find the ID's of and look at the rectangle color that appears around this region. Then look at the corresponding color in the list of values given and that's your parent + child info for that interface.

Hope this helps ^_^

  • Author

That was very helpful, thank you.

 

Now my final question is in regards to the parameters I need to use when initializing my dialogue objects. The constructor given in the api is as follows:

RS2Interface(org.osbot.engine.Bot bot, int id)

I'm unsure of what the first parameter is. On a whim I tried:

dialogueBox1 = new RS2Interface(bot, dialogueID1);

without any errors. Is that what I should put there or is that something unrelated?

When you're using just the "parent" value, the like is as follows:

RS2Interface inter = client.getInterface(parent_ID);
When using parent & child values it's as follows:

RS2InterfaceChild inter = client.getInterface(parent_ID).getChild(child_ID);
Note: in both cases you can change the name of your interface I just used "inter" as an example to you ^_^
  • Author

Fantastic, thank you. 

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.