RoM Working with profile events

From SolarStrike wiki
Revision as of 09:00, 19 October 2009 by 95.115.63.201 (talk) (New page: = Profile Event <onSkillCast> = There are two main situations to use that event. Emergeny casts and finisher. == Emergeny Casts == == Finisher Casts == There is no skill option to do a...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Profile Event <onSkillCast>

There are two main situations to use that event. Emergeny casts and finisher.

Emergeny Casts

Finisher Casts

There is no skill option to do a finishing skill. But you could to that in the <onCast> event. Insert the skill into your profile, assign a hotkey and set it to autouse=false:

<skill name="MAGE_FIREBALL"        hotkey="VK_R" autouse="false" />

and in the event add the coding:

<onSkillCast>
local target = player:getTarget();
   if( 20 > target.HP/target.MaxHP*100 ) then
       player:cast("MAGE_FIREBALL");
   end;
</onSkillCast>