Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Open Equipment stats screen?


    labiaKick
     Share

    Recommended Posts

    I'm working on a tutorial island completer and one of the steps after smithing is to open your equipment tab, then the equipment stats screen.

    I can't find in the API how to open this equipment stats screen?

    So I'm looking through the API, I found widgets and menus. I believe the widget is 387, but I don't know how to click on that widget. I can only tell when it's on the screen. It also seems the Menu class is totally deprecated, I don't see a way to get a menu.

    Thanks.

    Edited by labiaKick
    Link to comment
    Share on other sites

    Ok so that is for the equipment tab not what I was looking for. When you are on the equipment tab, you need to open the equipment stats menu. I was able to find the widget and manually interact with it. Also worth noting. The Tab.open(x) doesn't work for the first time opening. I assume it's because it's flashing. Opening by interacting with the widgets worked though, only problem is depending on the screen layout the widget ID change. resizable, vs classic etc.

    This is what I use to open the equipment stats screen and close it for anyone in the future.

            WidgetChild a = Widgets.getWidgetChild(387,2);//Combat stats widget from Equip Tab
            if(a != null && a.isVisible()) {
                a.interact();
            }
            MethodProvider.sleep(2000,4000);
    
            WidgetChild b = Widgets.getWidgetChild(84,3,11);//Close combat stats widget
            if(b != null && b.isVisible()) {
                b.interact();
            }

     

    Link to comment
    Share on other sites

    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
     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.