All pastes #86576 Raw Edit

Something

public text v1 · immutable
·published 2006-07-13 00:54 UTC
rendered paste body
function GameAmp.ScanLootLink()
	for index, value in ItemLinks do
		local link = "item:"..value.i;
		local itemName, itemLink, _, _, _, _, _, _, itemTexture = GetItemInfo(link);
		local itemID, permEnchant, suffix, extraItemInfo = string.gfind(itemLink, "(%d+):(%d+):(%d+):(%d+)")();
		
		if( itemTexture ) then
			local currItem = GameAmp_DataBase.Items[itemID];
			currItem = {};
			currItem.name = itemName;
			currItem.texture = itemTexture;
		end
	end
end