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
  • How do i get text from a widget?


    MrBigBertil

    Recommended Posts

    7 hours ago, MrBigBertil said:

    Im specifically wondering how to get amount of gold in the coffer in blast furnace. Any ideas?

    Use the widget hover tool to determine IDs. You may need to run a test script with the widget on-screen and play with it a bit to return the right one.

    WidgetChild gold = Widgets.getWidgetChild(XX, XX); //where XX are the parent and child widget IDs - get these with widget hover tool or game explorer with widget on-screen
    if (gold != null && gold.isOnScreen()) { //widget exists
    	log(gold.getText());
    }

    Let me know if i can be of more help. If you hover the widget and take a screenshot i can help you with the getWidgetChild bit.

    Edited by Genius
    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
    ×
    ×
    • 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.