Advertisement
Guest User

Untitled

a guest
Apr 1st, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local lvlcrit = 4500
  2. local multiplier = 2.6
  3.  
  4.  
  5.  
  6.  
  7. function onStatsChange(cid, attacker, type, combat, value)
  8. if isPlayer(attacker) and (not (attacker == cid)) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) then
  9. if (getPlayerStorageValue(attacker, lvlcrit)*80) >= math.random (0,600) then
  10. value = math.ceil(value*(multiplier))
  11. doTargetCombatHealth(attacker, cid, combat, -value, -value, 255)
  12. doSendAnimatedText(getCreaturePos(attacker), "Break", 246)
  13. return false
  14. end
  15. end
  16. return true
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement