Jump to content

Interacting with NPC's menu items?


Recommended Posts

Posted

Hi

 

I'm trying to interact with the saw-mill operator and click buy all when after I select oak logs. I've been going through the API and can't seem to find the right method to use.

 

Here's what I currently have to interacting with the saw-mill dude. You can see I tried manually buying the logs through the mouse.click method but that didn't seem to be working either... How would I go about using the API for it to detect the menu once I buy-logs from the operator? Thanks

if(sawmilloperator.isVisible()){
    				log("PLANKING!!!!!!!");
    				 sawmilloperator.interact("Buy-Plank");
    				 sleep(3000);
    				Mouse mouse = new Mouse();
    				 mouse.click(334,118,false);


Posted (edited)

Alright so once you interact with the guy, a widget pops up, you can use the widgets api to interact with that thing. In the bot client, check settings->debug->widgetdebugger to find the widget ids wink.png  

hint: use widgets.get, widgets.isVisible and widgets.interact to program the interaction

Good luck, if you can't find the ids or smth feel free to post here or pm me and I'll visit the saw-mill guy to help you out smile.png

Edited by Flamezzz
Posted

Alright so once you interact with the guy, a widget pops up, you can use the widgets api to interact with that thing. In the bot client, check settings->debug->widgetdebugger to find the widget ids wink.png  

hint: use widgets.get, widgets.isVisible and widgets.interact to program the interaction

Good luck, if you can't find the ids or smth feel free to post here or pm me and I'll visit the saw-mill guy to help you out smile.png

Ok, I'm trying to use the widget debugger, but I'm a bit confused on how it works. I'll hover over the plank menu, and the log I want to select, but how do I know which one is the parent, child and grandchild? There's three colors it shows when I hover, green, red and white. What does the 'R' and '-' mean?

 

I wish the api provided a bit more information... any tips?

Posted (edited)

Ok, I'm trying to use the widget debugger, but I'm a bit confused on how it works. I'll hover over the plank menu, and the log I want to select, but how do I know which one is the parent, child and grandchild? There's three colors it shows when I hover, green, red and white. What does the 'R' and '-' mean?

I wish the api provided a bit more information... any tips?

I can help you trough TV. I'll send you my skype Edited by Psvxe

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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