Jump to content

Check when in trade


Recommended Posts

Posted (edited)

Working on a simple tanner atm and I want to check if I'm in the tanning screen (trading ellis)

To know when to tan the hides.

How would I approach this? I noticed there's an "getInteraction" & stuff but don't really know

what it would have to return.

 

Also I'm using mouse coordinates now for tanning the hides in the tanning screen,

is there a better approach than using mouse coordinates?

 

Thanks in advance

Edited by lisabe96
Posted (edited)

Use the RS2Widgets api and use the widget debugging tool to get action names and to confirm your parent, child and if applicable child++.

What you need:

RS2Widget tanWidget = getWidgets().get(parent,c,c++); //this will be the widget for interacting with tan hide
if(tanWidget != null)
    tanWidget.interact("Your action"); // get this from the widget debugging tool, Actions.
Edited by ZappaScripts
Posted (edited)

 

Use the RS2Widgets api and use the widget debugging tool to get action names and to confirm your parent, child and if applicable child++.

What you need:

RS2Widget tanWidget = getWidgets().get(parent,c,c++); //this will be the widget for interacting with tan hide
if(tanWidget != null)
    make.interact("Your action"); // get this from the widget debugging tool, Actions.

Are the (parent, c, c++) values the number values the widget debugger displays?

Like R: 142

 - 152

 -- 152

 

Nvm figured it out, thanks

Edited by lisabe96

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...