Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lvlcrit = 4500
- local multiplier = 2.6
- function onStatsChange(cid, attacker, type, combat, value)
- if isPlayer(attacker) and (not (attacker == cid)) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) then
- if (getPlayerStorageValue(attacker, lvlcrit)*80) >= math.random (0,600) then
- value = math.ceil(value*(multiplier))
- doTargetCombatHealth(attacker, cid, combat, -value, -value, 255)
- doSendAnimatedText(getCreaturePos(attacker), "Break", 246)
- return false
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement