Jump to content

Check when in trade


lisabe96

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

 

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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