I added in the minxx
then added in a value in the profile skills
Code: Select all
<skill name="PRIEST_WAVE_ARMOR" modifier="" hotkey="VK_9" priority="60" minlvl="2" minxx="5" />
Then added in a function in functions.lua
Code: Select all
function checkclass2()
for k,v in pairs(settings.profile.skills) do
if v.minxx ~= 4 then
settings.profile.skills[k].AutoUse = false
else
settings.profile.skills[k].AutoUse = true
end
end
then added in a call to the function in profile
Code: Select all
<onLoad><![CDATA[
checkclass2()
]]></onLoad>
So now I can stop the bot from trying to use any skills from second class even though the skills are setup in it's profile.
Code I put on forum is just a small picture just to give you an idea, there is obviously a lot more to it to cover all classes. Although the usage might not seem clear it really doesn't matter, the important thing is it only lets me add 1 more tag to the skill sets.
Edit:
I spent half a day trying to work out a way to make the name="PRIEST_WAVE_ARMOR" something I could use to detect the class for the skill. In the end I decided it would be much easier to just add another tag, I also wanted to add another tag for a different reason so it seemed logical to put my efforts into that avenue.