Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

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

  • 2 years later...
Postado
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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo