[17/09/2013 19:03:57] [Error - MoveEvents Interface] [17/09/2013 19:03:57] data/movements/scripts/portrait.lua:onDeEquip [17/09/2013 19:03:57] Description: [17/09/2013 19:03:57] (luaDoTransformItem) Item not found [17/09/2013 19:03:58] [Error - MoveEvents Interface] [17/09/2013 19:03:58] data/movements/scripts/portrait.lua:onEquip [17/09/2013 19:03:58] Description: [17/09/2013 19:03:58] (luaDoTransformItem) Item not found
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