Jump to content

Combat Stance changing


EsotericRS

Recommended Posts

I was wondering if anyone knows if combat stances are implemented anywhere in the API?

 

I'm looking to create a combat script that levels attack/strength/defence evenly up to 30.

For example, levels 1-10 attack then switches to strength 1-10 etc.

Was just curious if there was a better way to do this other than through widgets...

 

Here is the code I made to solve the issue...

 

 

Edited by EsotericRS
Link to comment
Share on other sites

Look into configs. Every time you change an attack style your config #'s will change. You can do this by going into the OSbot clients Settings<Options<Debug<Configs. Personally haven't used configs yet but i'd imagine you can do something along the lines of this (Don't copy & paste these config #s are made up)

if(getConfigs == 123 && getSkills.getStatic(Skill.ATTACK) == 10) {

change attack style code here, maybe use widgets for this may be easier way.. 

}

 

  • Heart 1
Link to comment
Share on other sites

30 minutes ago, Imthabawse said:

Look into configs. Every time you change an attack style your config #'s will change. You can do this by going into the OSbot clients Settings<Options<Debug<Configs. Personally haven't used configs yet but i'd imagine you can do something along the lines of this (Don't copy & paste these config #s are made up)

if(getConfigs == 123 && getSkills.getStatic(Skill.ATTACK) == 10) {

change attack style code here, maybe use widgets for this may be easier way.. 

}

 

Thanks a lot for this. Got me down the right path. If anyone else is interested there is a detailed explanation into this in this guide under 'Configs'.

 

 

  • Like 1
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...