EM

mudar esse script para tfs 0.3.6

Por Emooooo, 22 de nov. de 2024 em Scripts

2
716
EmoooooE
22 de novembro de 2024 às 18:29

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

TryllerT
23 de novembro de 2024 às 06:16
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