function GameAmp.ScanLootLink() local items = 0; local newItems = 0; for index, value in ItemLinks do local link = "item:"..value.i; local itemName, itemLink, _, _, _, _, _, _, itemTexture = GetItemInfo(link); if (itemLink) then local itemID, permEnchant, suffix, extraItemInfo = string.gfind(itemLink, "(%d+):(%d+):(%d+):(%d+)")(); if( itemTexture ) then items = items + 1 local currItem = GameAmp_DataBase.Items[itemID]; if (not currItem) then currItem = {}; currItem.name = itemName; currItem.texture = itemTexture; GameAmp_DataBase.Items[itemID] = currItem; newItems = newItems + 1; end end end end DEFAULT_CHAT_FRAME:AddMessage("GameAmp: "..items.." items scanned. "..newItems.." new items found."); end