ParrotPLPL
Banned User
- Joined
- May 19, 2024
- Messages
- 8
- Reaction score
- 2
ATKBOOST
CRITICAL
![Screenshot_1.png Screenshot_1.png](https://static3.otland.net/d/attachments/76/76559-f7d69193f8028b2ffee07020e55127cf.jpg)
Lua:
local lvlcrit = 48904
local multiplier = 1.5
function onCombat(cid, target)
if isPlayer(cid) and isCreature(target) then
local criticalChance = getPlayerStorageValue(cid, lvlcrit) or 0
local chance = math.random(1, 1000) -- Alterei para um intervalo mais razoável
if chance <= (criticalChance * 3) then
local damage = 100 -- Valor do dano crítico (ajuste conforme necessário)
doTargetCombatHealth(cid, target, COMBAT_PHYSICALDAMAGE, -damage, -damage, 255)
doSendAnimatedText(getCreaturePos(target), "+BOOSTER!", 31)
doSendMagicEffect(getCreaturePosition(cid), 54)
return true
end
end
return true
end
CRITICAL
Lua:
local lvlcrit = 48913
local multiplier = 1.5
function onCombat(cid, target)
if isPlayer(cid) and isCreature(target) then
local criticalChance = getPlayerStorageValue(cid, lvlcrit) or 0
local chance = math.random(1, 1000) -- Alterei para um intervalo mais razoável
if chance <= (criticalChance * 3) then
local damage = 100 -- Valor do dano crítico (ajuste conforme necessário)
doTargetCombatHealth(cid, target, COMBAT_PHYSICALDAMAGE, -damage, -damage, 255)
doSendAnimatedText(getCreaturePos(target), "DANGER!", 190)
doSendMagicEffect(getCreaturePosition(cid), 52)
return true
end
end
return true
end
![Screenshot_1.png Screenshot_1.png](https://static3.otland.net/d/attachments/76/76559-f7d69193f8028b2ffee07020e55127cf.jpg)