lisabe96 Posted January 2, 2016 Share Posted January 2, 2016 (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 January 2, 2016 by lisabe96 Quote Link to comment Share on other sites More sharing options...
Zappster Posted January 2, 2016 Share Posted January 2, 2016 (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 January 2, 2016 by ZappaScripts Quote Link to comment Share on other sites More sharing options...
lisabe96 Posted January 2, 2016 Author Share Posted January 2, 2016 (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 January 2, 2016 by lisabe96 Quote Link to comment Share on other sites More sharing options...