Question: onSkillCast
Posted: Fri Jan 21, 2011 8:52 am
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
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>