Hi all
Sorry for the late reply, RL got a bit hectic.
@Xrystal - Thanks for the links.
With the
GetContainerItemID it requires the BagID and the BagSlot, I cannot see any function to get the itemID orBagID and BagSlot by hovering.
I did not know I could iterate through the dungeon guide however I would still hit the same issue as I need to get the itemID on hover.
@sezz
Your chunk would seem to be the answer that I am looking for however I have not been able to get it to work in game.
Based on the advice your both provided I have read up and mucked around to finally come up with the following;
Lua Code:
local itemName, itemLink
GameTooltip:HookScript('OnTooltipSetItem', function(self)
_, itemLink = self:GetItem()
print(itemLink)
end)
This chunk spam prints out the itemLink on hover, however, I still have had no succes in capturing the itemLink for use.
I test all code chunks in game using the
Rehack addon.
Any further help would be great.