Code: Select all
<onSkillCast><![CDATA[
-- Additional Lua code to execute when casting a skill
-- Note: arg1 contains the skill being used.
-- i.e. arg1.Name will be the name of the skill being cast
-- e.g.:
-- if( 50 > player.HP/player.MaxHP*100 ) then
-- if player.Class1 == CLASS_PRIEST then
-- player:cast("PRIEST_SOUL_SOURCE");
-- player:cast("PRIEST_URGENT_HEAL");
-- end
-- if player.Class2 == CLASS_PRIEST then
-- player:cast("PRIEST_HOLY_AURA");
-- player:cast("PRIEST_URGENT_HEAL");
-- player:cast("PRIEST_URGENT_HEAL");
-- end
-- elseif( 75 > player.HP/player.MaxHP*100 ) then
-- if player.Class1 == CLASS_PRIEST then
-- player:cast("PRIEST_HOLY_AURA");
-- player:cast("PRIEST_URGENT_HEAL");
-- end
-- if player.Class2 == CLASS_PRIEST then
-- player:cast("PRIEST_URGENT_HEAL");
-- end
-- end;
]]></onSkillCast>