It's possible to make the new UH script for TFS 0.3.6 Heal by life Percentual of the player?
Ex: Heal 35% of player health!
If any one knows please tell me!
Ex: Heal 35% of player health!
HTML:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 10, 10, 12, 12)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
If any one knows please tell me!