Page 1 of 1

Question: onSkillCast

Posted: Fri Jan 21, 2011 8:52 am
by Germangold
hi folks!

follow problem this is my onSkillCast routine for a bossfight in CL
how do I tell the script not to cast PRIEST_REGENERATE??

like If has buff X dont do it

<onSkillCast>

<![CDATA[

if( arg1.Name == "MAGE_FLAME" ) then
yrest(1000);
player:cast("MAGE_PURGATORY_FIRE");player:cast("MAGE_PURGATORY_FIRE");
end



if(99>player.HP/player.MaxHP*100) then
player:cast("PRIEST_REGENERATE");
if(80>player.HP/player.MaxHP*100) then
player:cast("PRIEST_URGENT_HEAL");
player:cast("PRIEST_URGENT_HEAL");
if(50>player.HP/player.MaxHP*100) then
player:cast("PRIEST_HOLY_AURA");
end
end
end


]]>

</onSkillCast>

Re: Question: onSkillCast

Posted: Fri Jan 21, 2011 9:02 am
by rock5
I assume you mean how to only cast it in the onSkillCast section. Just add autouse="false" to the skill.

Re: Question: onSkillCast

Posted: Fri Jan 21, 2011 10:44 am
by lisa
from memory it went something like this, in profile

Code: Select all

		<skill name="PRIEST_REGENERATE"    modifier="" hotkey="VK_6" priority="90" autouse="false"  />
.