Ir para conteúdo

Featured Replies

Postado
Isso esta acontecendo quando jogou a portrait no chão.
 
[29/06/2015 19:59:27] [Error - MoveEvents Interface] 
[29/06/2015 19:59:27] data/movements/scripts/portrait.lua:onDeEquip
[29/06/2015 19:59:27] Description: 
[29/06/2015 19:59:27] (luaDoTransformItem) Item not found
 
meu script 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(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

 

Postado
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[i])
            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
                              _
                          .-'` `}
                  _./)   /       }
                .'o   \ |       }
                '.___.'`.\    {`
                /`\_/  , `.    }                                      ME DA UMA NOZ!
                \=' .-'   _`\  {
                 `'`;/      `,  }
                    _\   @   ;  }
                   /__`;-...'--'

Cluck!

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