88

Critical +

Por 880123, 06 de jan. de 2022 em Scripts

2
1.2k
8801238
06 de janeiro de 2022 às 09:11

Entao galera, atualmente eu uso esse script de critical, porem esse script ele nao da critical no monstros, somente em player...teria como alguem jogar a funçao 

if isPlayer(cid) and isMonster(target) then

que esta no script 1 no script critical 2. para que no script 2 o critical garre nos mostros pf !

Citar

SCRIPT 2 =

local lvlcrit = 48913
local multiplier = 1.7

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)*1) >= math.random (0,250) then
dano = math.ceil(value*(multiplier))
doTargetCombatHealth(attacker, cid, combat, -dano, -dano, 215)
doSendAnimatedText(getCreaturePos(attacker), "Critical", 180)
return false
end
end
return true
end

 

8801238
07 de janeiro de 2022 às 08:43

up