alkku15 Posted March 24, 2018 Share Posted March 24, 2018 i looked up some posts but still couldnt get it to work case CRAFT: if (!smeltarea.contains(myPlayer().getPosition())) { getWalking().webWalk(smeltarea); } else { RS2Object Furnace = getObjects().closest("Furnace"); RS2Widget smeltinterface = widgets.get(446, 1); if (smeltinterface != null && smeltinterface.isVisible()) { smeltinterface.interact("Make-All"); } else { if (Furnace != null && Furnace.exists()) { Furnace.interact("Smelt"); } } } break; then i tried something like "RS2Object kek = widgets.getWidgetContainingText("Make-All")" then kek.interact("Make-All" etc etc doesnt work.... (IM TRYING TO SMELT GOLD BARS INTO GOLD RINGS IN AL-KHARID" Quote Link to comment Share on other sites More sharing options...
Deceiver Posted March 24, 2018 Share Posted March 24, 2018 Quote Link to comment Share on other sites More sharing options...
alkku15 Posted March 24, 2018 Author Share Posted March 24, 2018 5 minutes ago, Deceiver said: hey thanks for your help BUT, i forgot to mention im a beginner, so what im asking is that is there a more simplier way to add this? im using this skeleton for my script " or is there a way to do this without adding any extra stuff? " Quote Link to comment Share on other sites More sharing options...
Deceiver Posted March 24, 2018 Share Posted March 24, 2018 add the 2 classes, just copy n paste them. then follow the example tom put and change it to what ur doing when u interact with the furnace Quote Link to comment Share on other sites More sharing options...
alkku15 Posted March 24, 2018 Author Share Posted March 24, 2018 (edited) 1 hour ago, Deceiver said: add the 2 classes, just copy n paste them. then follow the example tom put and change it to what ur doing when u interact with the furnace okay! added them like this: https://ibb.co/ebdOx7 then got this: https://ibb.co/iJxDVS and in the actual .java file where my script is written i get this: https://ibb.co/mxXGH7 .......................................... why doesn't this interaction work? why is all this shittt needed RS2Widget smeltinterface = widgets.get(446, 1); smeltinterface.interact("Make-All"); Edited March 24, 2018 by alkku15 Quote Link to comment Share on other sites More sharing options...
Deceiver Posted March 24, 2018 Share Posted March 24, 2018 (edited) 2 hours ago, alkku15 said: okay! added them like this: https://ibb.co/ebdOx7 then got this: https://ibb.co/iJxDVS and in the actual .java file where my script is written i get this: https://ibb.co/mxXGH7 .......................................... why doesn't this interaction work? why is all this shittt needed RS2Widget smeltinterface = widgets.get(446, 1); smeltinterface.interact("Make-All"); idk man i tried it myself too before i added it and its like it doesnt exist really edit; for the fix change it to this in utilwidget; public static RS2Widget getWidget(Script i, String action, String spellName) { List<RS2Widget> widg = i.getWidgets().filter(new WidgetActionFilter(action), new WidgetSpellFilter(spellName)); if (widg != null) { return widg.get(0); } return null; } Edited March 24, 2018 by Deceiver Quote Link to comment Share on other sites More sharing options...
liverare Posted March 25, 2018 Share Posted March 25, 2018 Save the source code in a new file called "AmountAPI.java", and put it where your script file is. Then, follow the example code. Quote Link to comment Share on other sites More sharing options...