[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 ??