algo assim
local StorageDmg = 55234function onStatsChange(cid, attacker, type, combat, value) if isPlayer(attacker) and (not (attacker == cid)) and (type == STATSCHANGE_HEALTHLOSS) then if getPlayerStorageValue(attacker, StorageDmg) > 0 then percent = getPlayerStorageValue(attacker, StorageDmg) * (value/100) dmg = math.ceil(value+percent) doTargetCombatHealth(attacker, cid, combat, -dmg, -dmg, 255) return false end end return trueend
iria aumentar o dano do player em % igual ao storage só precisaria fazer uma função para adicionar a storage ao player