Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local percent = 0.40 -- = 40%
- 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)
- function onGetFormulaValues(cid, level, maglevel)
- doCreatureAddPercentHPMana(cid, percent, 0, true)
- end
- setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
- function onCastSpell(cid, var)
- return doCombat(cid, combat, var)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement