Page 1 of 1

Use changeProfileSkill ??

Posted: Tue Jul 03, 2012 1:52 am
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.

Re: Use changeProfileSkill ??

Posted: Tue Jul 03, 2012 2:50 am
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.

Re: Use changeProfileSkill ??

Posted: Tue Jul 03, 2012 4:14 am
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);

Re: Use changeProfileSkill ??

Posted: Tue Jul 03, 2012 4:55 am
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;

Re: Use changeProfileSkill ??

Posted: Tue Jul 03, 2012 7:47 am
by Dittkol
Right on !! :D

Thank you both for the tips it works perfect.