January 2, 201610 yr 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, 201610 yr by lisabe96
January 2, 201610 yr 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, 201610 yr by ZappaScripts
January 2, 201610 yr Author 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, 201610 yr by lisabe96
Create an account or sign in to comment