function GameAmp.ScanAuctioneer() local items = 0; local newItems = 0; local prefix = "^"..GetRealmName() for key, itemTable in AuctionConfig.data do if strfind(key, prefix, 1) then for id, value in itemTable do local link = "item:"..id; 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 end end DEFAULT_CHAT_FRAME:AddMessage("GameAmp/Auctioneer: "..items.." items scanned. "..newItems.." new items found."); end