Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Local lvlcrit = 48913
- Local multiplier = 3.5
- Local effect = 2 --- effect that will leave the player / creature taking the critical
- Function onStatsChange (cid, attacker, type, combat, value)
- If type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS and isCreature (attacker) then
- If (getPlayerStorageValue (attacker, lvlcrit) * 3)> = math.random (0,1000) then
- Damage = math.ceil (value * (multiplier))
- DoTargetCombatHealth (attacker, cid, combat, -dano, -dano, 255)
- DoSendAnimatedText (getCreaturePos (attacker), "CRITICAL !!", 22)
- DoSendMagicEffect (getCreaturePos (attacker), effect)
- Return false
- End
- End
- Return true
- End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement