Use changeProfileSkill ??

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Dittkol
Posts: 18
Joined: Sun Apr 29, 2012 6:45 am

Use changeProfileSkill ??

#1 Post by Dittkol »

Hi @ all

After I searched now for a couple hours i decided to ask here.
My problem is very simple i try to change the "hpper" value out of a WP file i tyhink this is possible (if not let me know) :)
The idea behind is to change this value on a specific WP.

my first try was

Code: Select all

changeProfileSkill("PRIEST_URGENT_HEAL", "hpper", "80");
second try was

Code: Select all

changeProfileSkill("PRIEST_URGENT_HEAL", "hpper", 80);
the problem is it seems not to affect anything.
So if anybody can help me would be great.
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Use changeProfileSkill ??

#2 Post by lisa »

try this

Code: Select all

changeProfileSkill("PRIEST_URGENT_HEAL", "maxhpper", 80);
I would say the issue for you is the name hpper was used so people don't get confused with maxhpper but the bot itself converts the hpper to maxhpper itself.
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: Use changeProfileSkill ??

#3 Post by rock5 »

Also most of the values that get added to the skills get capitalized so I think it needs to be
changeProfileSkill("PRIEST_URGENT_HEAL", "MaxHpPer", 80);
  • 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: Use changeProfileSkill ??

#4 Post by lisa »

rock5 wrote:Also most of the values that get added to the skills get capitalized so I think it needs to be
changeProfileSkill("PRIEST_URGENT_HEAL", "MaxHpPer", 80);
Yup spot on, found it.

Code: Select all

maxhpper = tonumber((string.gsub(v:getAttribute("hpper") or "","!","-")));
if( maxhpper ) then tmp.MaxHpPer = maxhpper; end;
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
Dittkol
Posts: 18
Joined: Sun Apr 29, 2012 6:45 am

Re: Use changeProfileSkill ??

#5 Post by Dittkol »

Right on !! :D

Thank you both for the tips it works perfect.
Post Reply