Page 1 of 1

How to change priority and autouse of skills

Posted: Sat Dec 03, 2011 4:58 am
by Rickster
In some of my WP files I do not need every skill, wich is set up in my profile.
So I read something about the option autouse and added it to the skills, which I do not want to use in generall WP files.

e.g.

Code: Select all

<skill name="KNIGHT_WHIRLWIND_SHIELD" modifier="" hotkey="MACRO" priority="85" autouse="false"/>
Now I want to do three different things:

1. In a WP file I want to activate all skills which are not used in normal WP files. How do I change the autouse option for all pofile skills?

2. For a specific WP file I want to activate an additional skill, not all autouse="false" skills, but one of them.

3. In other WP files I additionally need to change the priority of a skill. Is it possible to do this from within a WP file?

For some WP files it is important to change the skill usings (on/off, priority) within the file, depending on the situation and WP# the bot is at.

Thanx
Ric

Re: How to change priority and autouse of skills

Posted: Sat Dec 03, 2011 5:48 am
by rock5
1.

Code: Select all

for k,v in pairs(settings.profile.skills) do
    v.AutoUse = true
end
2.

Code: Select all

changeProfileSkill(skillname, "AutoUse", true)
3.

Code: Select all

changeProfileSkill(skillname, "priority", 100)

Re: How to change priority and autouse of skills

Posted: Sat Dec 03, 2011 9:23 am
by Rickster
Thank you rock! :)