Advertisement
poxipox

Untitled

Mar 6th, 2023
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local percent = 0.40 -- = 40%
  2.  
  3. local combat = createCombatObject()
  4. setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
  5. setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
  6. setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
  7. setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
  8. function onGetFormulaValues(cid, level, maglevel)
  9. doCreatureAddPercentHPMana(cid, percent, 0, true)
  10. end
  11. setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
  12.  
  13. function onCastSpell(cid, var)
  14. return doCombat(cid, combat, var)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement