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
  • How would you set a spell to auto-cast in your script?


    TheAppFoundry
     Share

    Recommended Posts

    @@Man16 What's "Widgets and Settings"

     

    EDIT -- I see widgets in the API but I don't see settings

    Turn on Tools > Widget hover and Tools > Game Debugger > Widgets.

    the WidgetChild id to click auto spell in the combat tab is 593, 24.

     

    So your code to open that would be (Make sure your combat tab is open or this wont work.)

    WidgetChild w = getWidgets().getWidgetChild(593, 24); // set w as the set spell widget
    w.interact("Choose spell"); // interacts with the widget
    

    and from here on you would need to get the widget for the spell you want to autocast.

    Link to comment
    Share on other sites

     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.