Originally Posted by Lodur
I was comparing itemlinks to find duplicate items in user mails. That does not seem to be perfect now.
|
Maybe I misunderstood what you want. I thought you were just trying to compare items to see if they are the same? If so all you need is the code I posted.
Lua Code:
local itemOneLink = GetItemLink(...)
local itemTwoLink = GetItemLink(...)
local itemIdItemOne = select(4,ZO_LinkHandler_ParseLink(itemOneLink))
local itemIdItemTwo = select(4,ZO_LinkHandler_ParseLink(itemTwoLink))
if itemIdItemOne == itemIdItemTwo then
-- their the same item
-- Although possibly different stats
end
I'm not sure what you are trying to do with the GetItemLinkKey() code you posted above. If you can post more details about what you are trying to do I could be of more help.
If your trying to create links, this page has some examples on it
(you have to scroll down to the item link section & its at the bottom) http://wiki.esoui.com/ZO_LinkHandler_CreateLink