11 horas atrás, Emooooo disse:function onStatsChange(cid, attacker, type, combat, value)
-- This should block all damage monster cause on eachother expect player summons
if isMonster(cid) and isMonster(attacker) then
local master = getCreatureMaster(cid)
if not master or not isPlayer(master) then
return false
end
endreturn true
end
Creio que TFS 0.3.6 nao possui a função onStatsChange na source, voce teria de adicionar ela


info
Grupo: Artesão
Registrado: 01/07/18
Posts: 118
Reputação: +1
Gênero: Masculino
function onStatsChange(cid, attacker, type, combat, value)
-- This should block all damage monster cause on eachother expect player summons
if isMonster(cid) and isMonster(attacker) then
local master = getCreatureMaster(cid)
if not master or not isPlayer(master) then
return false
end
end
return true
end