[24/06/2012 22:22:50] (luaDoTransformItem) Item not found
SCRIPT:
function onEquip (cid, item, slot)
if not cid then return true end
if item.uid <= 0 then return true endif not getItemAttribute(item.uid, "poke") then
return true
end
for i, x in pairs(fotos) do
if string.lower(getItemAttribute(item.uid, "poke")) == string.lower(i) then
doTransformItem(getPlayerSlotItem(cid, 7).uid, fotos[i])
return true
end
end
endfunction onDeEquip(cid, item, slot)
if not cid then return true end
if item.uid <= 0 then return true endif not getItemAttribute(item.uid, "poke") then
return true
end
doTransformItem(getPlayerSlotItem(cid, CONST_SLOT_LEGS).uid, 2395)
end
TERIA COMO COLOCAR UMA TAG PARA QUE QUANDO TIVESSE O ERRO ELE NÃO IR PARA O DISTRO?
Pergunta
96736649 4
ERRO:
[24/06/2012 22:22:50] [Error - MoveEvents Interface]
[24/06/2012 22:22:50] data/movements/scripts/portrait.lua:onEquip
[24/06/2012 22:22:50] Description:
[24/06/2012 22:22:50] (luaDoTransformItem) Item not found
SCRIPT:
TERIA COMO COLOCAR UMA TAG PARA QUE QUANDO TIVESSE O ERRO ELE NÃO IR PARA O DISTRO?
Editado por JinkwinkLink para o comentário
https://xtibia.com/forum/topic/188670-ajuda-com-erro-portrait/Compartilhar em outros sites
6 respostass a esta questão
Posts Recomendados