Page 1 of 1

Holy Power Explosion

Posted: Sat Jun 08, 2013 2:56 am
by reeprich
Hi,
please can someone help me with script for my P/K?
in 6.0.0 Mana Return skill was changed to Holy Power Explosion.
With ItemPreview I just found that ID for this skill is : 490172, so I tried to add it to skills database:

Code: Select all

  <skill name="KNIGHT_HOLY_POWER_EXPLOSION" id="490172" type="buff" buffname="501827" target="self" />
What I need is:
cast Holy power explosion and then for example Urgent heal to receive mana, instead of using mana potion..

thx

Re: Holy Power Explosion

Posted: Sat Jun 08, 2013 4:22 am
by rock5
Lets start with your skill. It's for recovering Mana right? So maybe you should add a maxmanaper value. If I read it correctly it can recover 30% of your mana. Of course you can be using mana while it's recovering so I would set it about half way at 15%. The cooldown needs to be specified too.

Code: Select all

 <skill name="KNIGHT_HOLY_POWER_EXPLOSION" id="490172" cooldown="40" type="buff" buffname="501827" target="self" maxmanaper="75"/>
Now the bot wont use a healing after using this skill but you can set it up in your profile <onskillcast>

Code: Select all

	<onSkillCast>
		if arg1.Name == "KNIGHT_HOLY_POWER_EXPLOSION" then
			player:cast("PRIEST_URGENT_HEAL")
		end
	</onSkillCast>
Lastly to stop using too many potions just modify you potion settings in your profile. In particular set MP_LOW_POTION and PHIRIUS_MP_LOW to values much lower than the 75% used for the skill, for eg. 50%.

As a user of the skill, let us know if you think any of those settings should be different.

Re: Holy Power Explosion

Posted: Wed Jun 12, 2013 10:03 pm
by reeprich
Nice, thank you...

the only thing I had to add is pause between casting

Code: Select all

if arg1.Name == "KNIGHT_HOLY_POWER_EXPLOSION" then
         yrest(1000);
         player:cast("PRIEST_URGENT_HEAL")
      end
now it is working fine....

ANd what if I want to cast "PRIEST_URGENT_HEAL" several times in a row (preferably until mana is full)? Every cast gives me some amount of mana, when "KNIGHT_HOLY_POWER_EXPLOSION" is active (for 20seconds)....

Re: Holy Power Explosion

Posted: Thu Jun 13, 2013 12:04 am
by rock5
Well you could just cast a few in a row

Code: Select all

         yrest(1000);
         player:cast("PRIEST_URGENT_HEAL")
         yrest(1000);
         player:cast("PRIEST_URGENT_HEAL")
         yrest(1000);
         player:cast("PRIEST_URGENT_HEAL")
Or if you want to check your mp

Code: Select all

repeat
         yrest(1000);
         player:cast("PRIEST_URGENT_HEAL")
         player:updateMP()
until player:hasBuff(501827) == false or player.MP/player.MaxMP*100 >= 100 -- % you want to fill to