Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved How to find interface?

Joined
Jun 15, 2016
Messages
2
Hi, I'm trying to make my first bot and I'm slowly learning the API as I make progress.

The only thing so far that I can't seem to figure out on my own is how to get the bot to locate and interact with an interface in RS3? I believe it uses the InterfaceComponent class (might be wrong), but I'm not sure how to get it to find a specific interface.

Any help is greatly appreciated.
 
Go check out new bots and give helpful feedback.
Joined
Jan 31, 2016
Messages
5,413
Interfaces.newQuery().names("Name here").results().first(); //The first interface with the given name
Interfaces.newQuery().texts("Text here").results().first(); //The first interface with the given text
 
Joined
Dec 10, 2014
Messages
3,332
Open Interface Explorer is a tool that might help, although apparently it's having issues being ran from the bot store, you can download the source and run it locally.
 
Top