Welcome!

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

Sign up now!

Basic Programming Questions

Joined
Dec 21, 2015
Messages
4
Thank you for visiting my thread. I have some basic questions.

I've set up IntelliJ for RuneMate, and I have set up manifest.xml by right clicking on "Runemate.jar" > New > File > Titled it manifest.xml which automatically associated it to a file type. My problem right now is figuring out what file type to associate to my skeleton and everything else.

I've programmed before.... visual basic 6. But of course, it was pretty basic. Someone help me?

How do you get your bot to search for a specific NPC around? I know with objects you use GameObjects.


Also, when you set the bot to interact with an NPC that brings up a dialogue that requires a response, how do you respond?

V/R
 
Last edited:
Joined
Dec 10, 2014
Messages
3,301
Thank you for visiting my thread. I have some basic questions.

I've set up IntelliJ for RuneMate, and I have set up manifest.xml by right clicking on "Runemate.jar" > New > File > Titled it manifest.xml which automatically associated it to a file type. My problem right now is figuring out what file type to associate to my skeleton and everything else.

I've programmed before.... visual basic 6. But of course, it was pretty basic. Someone help me?

How do you get your bot to search for a specific NPC around? I know with objects you use GameObjects.


Also, when you set the bot to interact with an NPC that brings up a dialogue that requires a response, how do you respond?

V/R
The file type extension for Java source files is .java, but when you create a new class in IntelliJ it handles all that.
Good old VB6, I remember using that in high school xD
Most NPC querying and stuff is in the Npcs class, e.g. Npcs.newQuery() and Npcs.getLoaded()

To interact with dialogues you respond using the ChatDialog class.
For example, you have 3 options "Option A", "Option B" and "Option C", and you want to select Option B.
You can do this:
Code:
ChatDialog.Option option = ChatDialog.getOption("Option B");
if (option != null)
    option.select();
 
Joined
Dec 21, 2015
Messages
4
Sweet, thanks! I'll try it out. Yes, I did Vb6 in High School but that was 3 years ago.


How can I exit an interface that pops up? The bot I wrote is working but there's a few little things I need to add. Thanks in advance :)

So many questions.. how do I use Inventory.equip();? It's' asking for "sprites" or something? I don't drink soda.
I'm trying to equip Bronze Arrows
 
Last edited:
Joined
Dec 10, 2014
Messages
3,301
Sweet, thanks! I'll try it out. Yes, I did Vb6 in High School but that was 3 years ago.


How can I exit an interface that pops up? The bot I wrote is working but there's a few little things I need to add. Thanks in advance :)

So many questions.. how do I use Inventory.equip();? It's' asking for "sprites" or something? I don't drink soda.
I'm trying to equip Bronze Arrows
It's asking for SpriteItems, which is the type for the items in your inventory, equipment tab etc.
 
Top