Jump to content

Changing attack style?


Normangorman

Recommended Posts

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?

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...