hello i want a spell that heals x amount depending on the player level for example if the player is level lets say 50 then the spell will heal him 500 and if the player is level 100 then it will heal him 100 and etc i need atleast 4 options idk please help im currently using this script :
please i need it
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_NONE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
function onCastSpell(cid, var)
doCreatureAddHealth(cid, 600)
return doCombat(cid, combat, var)
end