tuduras
Well-Known Member
- Joined
- Jun 4, 2017
- Messages
- 351
- Solutions
- 2
- Reaction score
- 59
Hello. Does anyone have a critical system for otx 2.16 based on 0.3.7. I have script in creaturescript but not works.
Here post critical from /data/creaturescript
PS: I think so, that's necessary to source edit. ;p
best regards
I Tried this tutorial but many error Feature - Critical Chance Hit (https://otland.net/threads/critical-chance-hit.115609)
Here post critical from /data/creaturescript
LUA:
function onStatsChange(cid, attacker, type, combat, value, target)
if (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) and isPlayer(attacker) then
if (getPlayerStorageValue(attacker, 48904)*1) >= math.random (0,1000) then
dano = math.ceil(value*(0.5)) -- aqui o multiplicador de dano
doTargetCombatHealth(attacker, cid, combat, -dano, -dano, 20) -- aqui é o valor que vai dar a mais de dano. no caso esta 20
doSendAnimatedText(getCreaturePos(attacker), "Critical!", 100)
end
end
return true
end
PS: I think so, that's necessary to source edit. ;p
best regards
I Tried this tutorial but many error Feature - Critical Chance Hit (https://otland.net/threads/critical-chance-hit.115609)
Last edited: