function onCombat(cid, target)
if isMonster(cid) and isPlayer(target) and condição then
return false
end
return true
end
info
Group: Conde
Joined: 16/06/08
Posts: 998
Reputation: +185
Gender: Masculino

function onCombat(cid, target)
if isMonster(cid) and isPlayer(target) and condição then
return false
end
return true
end
info
Group: Visconde
Joined: 05/02/14
Posts: 411
Reputation: +285
Gender: Masculino
Tibia Character: Zeh Sergipano

Ja testei assim, só ta funcionando de PLAYER para PLAYER ou de PLAYER para MOB mas não ta funcionando de MOB para PLAYER
Edited Maio 31 by RigBy
info
Group: Conde
Joined: 16/06/08
Posts: 998
Reputation: +185
Gender: Masculino

Usa statschange:
function onStatsChange(cid, attacker, type, combat, value)
if isMonster(attacker) and isPlayer(cid) then
return false
end
return true
end
info
Group: Visconde
Joined: 05/02/14
Posts: 411
Reputation: +285
Gender: Masculino
Tibia Character: Zeh Sergipano

Vlw, funciono, mas seria uma boa fazer onCombat funcionar com mostro também.
info
Group: Conde
Joined: 07/04/15
Posts: 962
Reputation: +258
Gender: Masculino

Vlw, funciono, mas seria uma boa fazer onCombat funcionar com mostro também.
Sim, mais ai precisaria de alteraçoes na sources.
Topico movido para pedido e duvidas resolvido.
info
Group: Visconde
Joined: 05/02/14
Posts: 411
Reputation: +285
Gender: Masculino
Tibia Character: Zeh Sergipano

Sim, mais ai precisaria de alteraçoes na sources.
Topico movido para pedido e duvidas resolvido.
Eu tenho as sources.
Edited Maio 31 by RigBy
info
Group: Visconde
Joined: 05/02/14
Posts: 411
Reputation: +285
Gender: Masculino
Tibia Character: Zeh Sergipano
Uso a TFS 0.4 r3777
Eu to querendo fazer um script para que o mob não possa atacar o player durante uma condição, mas não ta funcionando com mob.
Tipo eu fiz esse script so para test mesmo, para ver se tava funcionando.