i wanted to write a function whitch gives me full HP after a fight (damn elite worms in limo
function(s) (addon_heal.lua)
Code: Select all
function heal_after_cast()
if(50 > player.HP/player.MaxHP*100 ) then
player:cast("PRIEST_URGENT_HEAL");
player:cast("PRIEST_REGENERATE");
player:cast("PRIEST_URGENT_HEAL");
player:cast("PRIEST_URGENT_HEAL");
end
end
function full_heal()
while (99 > (player.HP/player.MaxHP*100))
do
player:cast("PRIEST_URGENT_HEAL");
end;
endCode: Select all
<onLeaveCombat>
full_heal();
</onLeaveCombat>
<onSkillCast>
heal_after_cast();
</onSkillCast>
Code: Select all
scripts\rom/bot.lua:25: .../micromacro/scripts/rom/userfunctions/addon_heal.lua:1: unexpected symbol near '´'