erro script

oralb
Por oralb
em Scripts

oralb

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/01/14Posts: 68
[20:53:09] Fabiano Alberto: [20:52:25.531] [Error - CreatureScript Interface]
[20:52:25.531] data/creaturescripts/scripts/vampire.lua:onStatsChange
[20:52:25.531] Description:
[20:52:25.531] (luaGetPlayerSlotItem) Player not found
function onStatsChange(cid, attacker, type, combat, value)
if getPlayerSlotItem(attacker, 5).itemid == 7438 or getPlayerSlotItem(attacker, 6).itemid == 7438 and getPlayerSlotItem(attacker, 10).itemid == 2352 then
if type == STATSCHANGE_HEALTHLOSS and combat == COMBAT_PHYSICALDAMAGE and isPlayer(attacker) or (getCreatureCondition(cid, CONDITION_MANASHIELD) == TRUE) then
doCreatureAddHealth(attacker, value*0.10)
end
end
return true
end

Alguém pode ajudar nesse erro ??

zipter98

avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 20/09/12Posts: 2553Gênero: Masculino

Por favor, seja mais específico no título de seu tópico (o atual está fora das regras).

Sobre seu erro:

 

function onStatsChange(cid, attacker, type, combat, value)
    if isPlayer(attacker) then
        if getPlayerSlotItem(attacker, 5).itemid == 7438 or getPlayerSlotItem(attacker, 6).itemid == 7438 and getPlayerSlotItem(attacker, 10).itemid == 2352 then
            if type == STATSCHANGE_HEALTHLOSS and combat == COMBAT_PHYSICALDAMAGE or getCreatureCondition(cid, CONDITION_MANASHIELD) then
                doCreatureAddHealth(attacker, value*0.10)
            end
        end
    end
    return true
end

Não respondo PMs solicitando suporte. Já existem seções no fórum para isto.

oralb

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/01/14Posts: 68

vlw rep+

zipter98

avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 20/09/12Posts: 2553Gênero: Masculino

Tópico movido para a seção de dúvidas e pedidos resolvidos.

Não respondo PMs solicitando suporte. Já existem seções no fórum para isto.