GetItemInfo wants a numeric item id or the string "item:###etc". Which you can get from parsing out the link but the link itself won't work.
This will work:
local _,_,itemID = string.find(GetInventoryItemLink("player",17) or "","item:(%d+)")
local sName, sLink, iQuality, iLevel, sType, sSubType = GetItemInfo(itemID);
|