Advertisement
Guest User

Kawarimi Heal.lua

a guest
Apr 10th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. function onStatsChange(cid, attacker, type, combat, value)
  2. if type == STATSCHANGE_HEALTHLOSS then
  3. if isPlayer(cid) then
  4. if exhaustion.check(cid, 19999) then
  5.  
  6. local health = (getCreatureMaxHealth(cid) - getCreatureHealth(cid))
  7.  
  8. doCreatureAddHealth(cid, health)
  9. doSendAnimatedText(getThingPos(cid), "+".. health, 240)
  10. end
  11. end
  12. end
  13. return true
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement