if(combat == 128 or combat == 1) and getPlayerStorageValue(attacker, 21102) == -1 then -- ataque basico
doSendMagicEffect(getThingPos(cid), 3)
value = getEffectvineCombat(cid, attacker, value)
if value == 0 then
return false
else
value = value * getOffense(attacker) -- buff ataque system
local name = doCorrectString(getCreatureName(attacker))
if pokes[name] and pokes[name].level <= 5 and value ~= 0 then
value = -math.random(pokes[name].offense, pokes[name].offense+5)
end
end
else -- magia
value = getEffectvineSpell(attacker, spellNameFromAttacker, cid) -- checagem de efetividades de magia
if value == 0 then
return false
else
value = value * (1 + getSpecialAttack(attacker) / 100)
end
end
Tenta assim, não é querer se chato mas se não funcionar agora não sei :3













info
Grupo: Visconde
Registrado: 20/03/14
Posts: 367
Reputação: +219
Gênero: Masculino
Essa parte ele verifica se a magia que soltar é imune
se por ~= 0 não irá ter imunidade nas magias.