Hello, there is heal friend script:
Is there any way to get a target (player who is healed) and allow to heal only player with level lower than 80?
Code:
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_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 10, 14)
function onCastSpell(cid, var)
return doRemoveCondition(cid, CONDITION_PARALYZE), doCombat(cid, combat, var)
end