--lookup the players mainhand weapon (slotid==16)
local slot = 16;
local _, itemBasic = GetItemInfo( GetInventoryItemID("player", slot) ); --get the basic itemlink just using itemID
local itemUpgraded = GetInventoryItemLink("player", slot); --get the itemlink for the specific item that the player has equipped with enchants, gems, upgrades, everything.
--if you just compare the two links you see that their info is different, and clicking on them they show different info.
local infoBasic = GetItemInfo(itemBasic);
local infoUpgraded = GetItemInfo(itemUpgraded);
--these two will return the exact same results even tho the itemlink-data isnt the exact same
local statBasic = GetItemStats(itemBasic);
local statUpgraded = GetItemStats(itemUpgraded);
--these two will also return the exact same results even tho the itemlink's are not the same
local delta = GetItemStatDelta(itemBasic, itemUpgraded);
--this will return an empty table; presumably it thinks the items are identical aswell.
return itemBasic, itemUpgraded, infoBasic, infoUpgraded, statBasic, statUpgraded, delta;