Jump to content

Smithing Widget Help


Recommended Posts

Posted
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. :(

Posted

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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