- Joined
- Oct 24, 2015
- Messages
- 82
- Thread Author
- #1
Hello,
So while i was making my new Questing bot i realized i needed an easy way to interact/talk with NPCs and navigate the menu and select the correct responses to forward the quest. So i created this class to do just that.
It is very easy to use and has not failed me yet. (If there are bugs you see or find please tell me and ill update).
To use the API do something along the lines of:
This is designed for RS3 but may work in OSRS not tested.
To initiate it i recommend doing something in the Main bot file so you can easily re-use it.
Then you just need to do:
To make it run.
Please tell me your thoughts.
I Have done some more comments in the file so enjoy.
Here is the file: npcInteract · GitHub
Cheers
So while i was making my new Questing bot i realized i needed an easy way to interact/talk with NPCs and navigate the menu and select the correct responses to forward the quest. So i created this class to do just that.
It is very easy to use and has not failed me yet. (If there are bugs you see or find please tell me and ill update).
To use the API do something along the lines of:
Code:
Actor a = Npcs.newQuery().names("NPC_NAME").results().first();
Object[] list = {1, "Test!", 4}
talk(a, list)
- This will then talk to the NPC, select the first choice option.
- Then on the second one it will look for the one with the exact name of "Test!" and select that.
- Then finally it will choose the 4th option on the 3 Choice section.
This is designed for RS3 but may work in OSRS not tested.
To initiate it i recommend doing something in the Main bot file so you can easily re-use it.
Code:
public npcInteract npc = new npcInteract();
Code:
bot.npc.talk(NPC, list);
Please tell me your thoughts.
I Have done some more comments in the file so enjoy.
Here is the file: npcInteract · GitHub
Cheers