Page 1 of 1
changeprofileoption for profile skill?
Posted: Fri Apr 22, 2011 3:53 pm
by hagenleu
There is a command similar to changeprofileoption to "change" during the path a skill of the current loaded profile?
i.e. flame, in the profle is set in this way:
Code: Select all
<skill name="MAGE_FLAME" modifier="" hotkey="MACRO" priority="80" autouse="false"/>
but at a certain WP i want that it become:
Code: Select all
<skill name="MAGE_FLAME" modifier="" hotkey="MACRO" priority="80"/>
so that the spell inhibited is now able to be cast at will.
If the changeprofileoption is the right command can you tell me the right sintax?
I also tried to change the entire profile with:
Code: Select all
settings.loadProfile("NAMEPROFILE");
but it gives me the following error:
Error: You assigned the key '0' double: for 'MACRO' and for 'MACRO'
Please check your settings: Ingame -> System -> Hotkeys and in your profile
Some suggestions?
Re: changeprofileoption for profile skill?
Posted: Fri Apr 22, 2011 8:03 pm
by rock5
changeprofileoption
is only for 'options' not skills. The skills are kept in settings.profile.skills. You would have to search for the skills and then change it. I do this in the onLoad section of my mage/priest to make Rising Tide instant cast.
This is how you can do it.
Code: Select all
for k,v in pairs(settings.profile.skills) do
if v.Name == "MAGE_FLAME" then
v.AutoUse = true
end
end
Maybe there should be a changeProfileSkill command. That's probably a bit too complex for the regular user to do and there is a need to sometimes change skill values. I'll think about adding it.
Re: changeprofileoption for profile skill?
Posted: Sat Apr 23, 2011 12:08 am
by rock5
I added changeProfileSKill(_skill, _option, _value) in rev 599. I'll add an entry in the wiki soon.
Re: changeprofileoption for profile skill?
Posted: Sat Apr 23, 2011 12:31 am
by hagenleu
Time to change rev!
Tnx
Re: changeprofileoption for profile skill?
Posted: Tue May 03, 2011 12:51 pm
by Questionmark
Could you please help me with the "changeprofileoption". I can't figure out how to get it to work. My Warrior/Rogue has different settings for Moon Cleave, but my Warrior/Knight has the standard ones. I've tried several times, but it doesn't seem to work.
Code: Select all
<onLoad>
changeProfileSkill("WARRIOR_MOON_CLEAVE", rage, 40);
changeProfileSkill("WARRIOR_MOON_CLEAVE", cooldown, 10);
</onLoad>
Re: changeprofileoption for profile skill?
Posted: Tue May 03, 2011 8:21 pm
by rock5
The function sees rage and cooldown as a variable. They aren't defined so they would equal nil. So you are sending
Code: Select all
changeProfileSkill("WARRIOR_MOON_CLEAVE", nil, 40);
changeProfileSkill("WARRIOR_MOON_CLEAVE", nil, 10);
What you need to use is a string of the option name. Try this.
Code: Select all
changeProfileSkill("WARRIOR_MOON_CLEAVE", "Rage", 40);
changeProfileSkill("WARRIOR_MOON_CLEAVE", "Cooldown", 10);
Re: changeprofileoption for profile skill?
Posted: Sat May 07, 2011 11:26 am
by Questionmark
Code: Select all
changeProfileSkill("WARRIOR_MOON_CLEAVE", "Rage", 40);
changeProfileSkill("WARRIOR_MOON_CLEAVE", "Cooldown", 10);
This doesn't work for me. I get the following error.
Code: Select all
[string "..."]:5: attempt to call global 'changeProfileSkill' (a nil value)
Re: changeprofileoption for profile skill?
Posted: Sat May 07, 2011 11:57 am
by rock5
What "'changeProfileSkill' (a nil value)" means is 'changeProfileSkill' doesn't exist, so you must have an older version of the bot. Try updating it.
Re: changeprofileoption for profile skill?
Posted: Sat May 07, 2011 12:36 pm
by Questionmark
Ah, I thought my rombot was up-to-date. Well, it wasn't. Updated according to the site's threads. Function is working now. Thanks.

Re: changeprofileoption for profile skill?
Posted: Thu May 12, 2011 10:57 am
by lisa
rock5 wrote:I added changeProfileSKill(_skill, _option, _value) in rev 599. I'll add an entry in the wiki soon.
Does the old changeProfileOption still work. Mine seems to not be working. It prints in MM that it is changing it but the change doesn't occur.
Re: changeprofileoption for profile skill?
Posted: Thu May 12, 2011 12:20 pm
by rock5
It should. I just did a small test and it worked. What were you trying to change?
Re: changeprofileoption for profile skill?
Posted: Thu May 12, 2011 2:42 pm
by Questionmark
This is what I came up with and it's working.
Code: Select all
<onLoad><![CDATA[
changeProfileSkill("WARRIOR_MOON_CLEAVE", "Rage", 40);
changeProfileSkill("WARRIOR_MOON_CLEAVE", "Cooldown", 10);
]]></onLoad>
Re: changeprofileoption for profile skill?
Posted: Thu May 12, 2011 9:15 pm
by lisa
LOOT to true in the onload of a WP.
It's the same WP I've been using for around 4 months and it always used to work. It prints changing LOOT from 'true' to 'true' but the bot doesn't try to loot. I removed the onload section with LOOT and it now loots as it should. So I know there is a definate issue with it.
Re: changeprofileoption for profile skill?
Posted: Fri May 13, 2011 1:53 am
by rock5
Can we have a look at the command that you used?
Re: changeprofileoption for profile skill?
Posted: Fri May 13, 2011 2:54 am
by lisa
I deleted it, it's possible I didn't have the code correct usage though, from memory I had
Code: Select all
changeProfileOption("LOOT", "true");
instead of
Code: Select all
changeProfileOption("LOOT", true);
Re: changeprofileoption for profile skill?
Posted: Fri May 13, 2011 3:54 am
by rock5
Yeh, that's why I asked. So does it work now?