Postado Maio 24, 2016 9 anos Algue pode me ajudar com esse erro na distro ? [24/05/2016 17:27:32] [Error - MoveEvents Interface] [24/05/2016 17:27:32] data/movements/scripts/portrait.lua:onDeEquip [24/05/2016 17:27:32] Description: [24/05/2016 17:27:32] (luaDoTransformItem) Item not found [24/05/2016 17:27:32] [Error - MoveEvents Interface] [24/05/2016 17:27:32] data/movements/scripts/portrait.lua:onEquip [24/05/2016 17:27:32] Description: [24/05/2016 17:27:32] (luaDoTransformItem) Item not found Meu portrait.lua function onEquip (cid, item, slot) if not cid then return true end if item.uid <= 0 then return true end if 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(item.uid, fotos) return true end end end function onDeEquip(cid, item, slot) if not cid then return true end if item.uid <= 0 then return true end if not getItemAttribute(item.uid, "poke") then return true end doTransformItem(getPlayerSlotItem(cid, CONST_SLOT_LEGS).uid, 2395) end
Postado Maio 24, 2016 9 anos Troque doTransformItem(item.uid, fotos) por doTransformItem(getPlayerSlotItem(cid, 7).uid, fotos[i]) Não dou suporte via PM, crie um tópico caso tenha dúvidas. Isso previne que outras pessoas com a mesma dúvida criem tópicos desnecessários.
Postado Junho 10, 2018 7 anos Em 24/05/2016 em 17:30, Bodak Reborn disse: doTransformItem(getPlayerSlotItem(cid, 7).uid, fotos[i]) tou com o mesmo erro mas meu script e deferente um pouco, como resolvo pode me ajudar. function onEquip (cid, item, slot) if not cid then return true end if item.uid <= 0 then return true end if 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) return true end end end function onDeEquip(cid, item, slot) if not cid then return true end if item.uid <= 0 then return true end if not getItemAttribute(item.uid, "poke") then return true end doTransformItem(getPlayerSlotItem(cid, CONST_SLOT_LEGS).uid, 2395) end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.