mudar esse script para tfs 0.3.6

Emooooo
em Scripts

Emooooo

Stalingrado
avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 01/07/18Posts: 118Gê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

Tryller

avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 05/10/10Posts: 238Gênero: MasculinoChar no Tibia: Yirosh
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
    end

    return true
end

Creio que TFS 0.3.6 nao possui a função onStatsChange na source, voce teria de adicionar ela