September 17, 20178 yr I can't seem to figure out which widget contains the options for smithing bars. When I look through the widgets each widget's tooltip seems to be one of the options. I would prefer to work with widgets in this context as opposed to MouseDestinations. Anybody worked with this before?
September 17, 20178 yr Author 3 minutes ago, Kurisu said: use the widget debugger & check which has the action message. Edit: sec ill find an acc to check and give u it I spent like 20 minutes going through all the widgets in the furnace interface. Maybe I was missing something obvious...
September 17, 20178 yr get the bars xy, go to widget debugger and check isVisible=yes just it. in code use widget interact "make x" or "make all" i dont remenber Edited September 17, 20178 yr by RuneMaker4657
September 17, 20178 yr Author 31 minutes ago, Kurisu said: try this RS2Widget barSelection = getWidgets().getWidgetContainingText("Bronze"); // Blurite, ... if (barSelection != null && barSelection.isVisible()){ if (barSelection.interact("Smelt X")){ //your conditional sleep } } Yah, I've been doing that. Even tried out your code. It doesn't work for choosing any of the options because the widget containing "Bronze" doesn't have the options in it if you look at the debugger. Neither does the widget below it which is larger.
September 17, 20178 yr You can actually find the widget through code if the widget debugger fails to find it due to many widgets being on top of each other. But do you really need to find the widget which has that action?
September 17, 20178 yr Author I'm actually an idiot... Thank you so much for the help. I'm just coming back to scripting in osrs and for some reason, I forgot that the interaction event required includes the word of the bar type so "Make X Bronze" instead of "Make X" for the specific Widget. I think I'll do just what you said with the Enum too. Hopefully, I can give back to the community somehow and thanks again!
Create an account or sign in to comment