changeprofileoption for profile skill?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
hagenleu
Posts: 28
Joined: Sun Jan 02, 2011 11:20 am

changeprofileoption for profile skill?

#1 Post 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?
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: changeprofileoption for profile skill?

#2 Post 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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: changeprofileoption for profile skill?

#3 Post by rock5 »

I added changeProfileSKill(_skill, _option, _value) in rev 599. I'll add an entry in the wiki soon.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
hagenleu
Posts: 28
Joined: Sun Jan 02, 2011 11:20 am

Re: changeprofileoption for profile skill?

#4 Post by hagenleu »

Time to change rev!
Tnx
User avatar
Questionmark
Posts: 31
Joined: Mon Apr 11, 2011 3:06 am

Re: changeprofileoption for profile skill?

#5 Post 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>
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: changeprofileoption for profile skill?

#6 Post 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);
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
Questionmark
Posts: 31
Joined: Mon Apr 11, 2011 3:06 am

Re: changeprofileoption for profile skill?

#7 Post 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)
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: changeprofileoption for profile skill?

#8 Post 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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
Questionmark
Posts: 31
Joined: Mon Apr 11, 2011 3:06 am

Re: changeprofileoption for profile skill?

#9 Post 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. :D
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: changeprofileoption for profile skill?

#10 Post 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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: changeprofileoption for profile skill?

#11 Post by rock5 »

It should. I just did a small test and it worked. What were you trying to change?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
Questionmark
Posts: 31
Joined: Mon Apr 11, 2011 3:06 am

Re: changeprofileoption for profile skill?

#12 Post 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>
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: changeprofileoption for profile skill?

#13 Post 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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: changeprofileoption for profile skill?

#14 Post by rock5 »

Can we have a look at the command that you used?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: changeprofileoption for profile skill?

#15 Post 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);
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: changeprofileoption for profile skill?

#16 Post by rock5 »

Yeh, that's why I asked. So does it work now?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
Post Reply