Normangorman Posted July 6, 2015 Share Posted July 6, 2015 Hi all. I'm trying to work out how to change attack style (e.g. from "Chop" to "Hack"). It seems that there should be a method in org.osbot.rs07.api.Combat such as 'setAttackStyle' - but this does not seem to be the case. Is there an equivalent method somewhere in the API that I am missing? Quote Link to comment Share on other sites More sharing options...
FrostBug Posted July 8, 2015 Share Posted July 8, 2015 You should be able to get the button widget by the index of the attack style (eg. child Id 0 for accurate, child Id 3 for defensive), and then interact with the widget. Quote Link to comment Share on other sites More sharing options...
Normangorman Posted July 10, 2015 Author Share Posted July 10, 2015 You should be able to get the button widget by the index of the attack style (eg. child Id 0 for accurate, child Id 3 for defensive), and then interact with the widget. Thanks FrostBug - your comment led me to org.osbot.rs07.api.Widgets which has the methods in to do what I need to do Quote Link to comment Share on other sites More sharing options...
celty Posted July 10, 2015 Share Posted July 10, 2015 Yes, you will have to find the widget and interact with it. You can use Configs to get the current attack style (index 43 - a value of 0 tells that the current style is the top left button, 1 is the top right button, 2 is the bottom right button and 3 is the bottom left button) Quote Link to comment Share on other sites More sharing options...