Jump to content

Using the interface explorer


ItzMe

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 ^_^

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 ^_^
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...