July 6, 201510 yr 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?
July 8, 201510 yr 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.
July 10, 201510 yr Author 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
July 10, 201510 yr 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)
Create an account or sign in to comment