TheAppFoundry 11 Share Posted July 9, 2017 I don't see an option in the DreamBot API for auto-cast and I need to be able to setup autocast when a user wields a staff for an example. Is there any way to achieve this? Link to comment Share on other sites More sharing options...
Manly 879 Share Posted July 9, 2017 There is no method to do it in the api. You need to make ur own using widgets and settings. Link to comment Share on other sites More sharing options...
TheAppFoundry 11 Author Share Posted July 9, 2017 @@Man16 What's "Widgets and Settings" EDIT -- I see widgets in the API but I don't see settings Link to comment Share on other sites More sharing options...
Pyth 127 Share Posted July 10, 2017 @@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 More sharing options...
TheAppFoundry 11 Author Share Posted July 10, 2017 @ Thanks man, appreciate it Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.