Jump to content

Switching attack style


Recommended Posts

Don't quote me on this, but from what I've seen in the api, you'll first need to get the configs for the attack style.

i believe this is '43' and values range from 0 upwards, 0 being attack, then you need to get the widget id's for the given style you want to switch and write a piece of code for it.

        int currentAttackStyle = getConfigs().get(43);

        if (currentAttackStyle == 0 && getSkills().getDynamic(Skill.ATTACK) > 10) {
            // current attack style is 'attack' and our player has an attack level higher then 10
            // this is where you now want to perform widget interactions to change the given attack style to one of your choice.


Should be enough information here for you to accomplish what you need, I'd also advise you taking a look at: 

 it's a very helpful resource.

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.

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...