View Single Post
09/12/15, 10:03 PM   #6
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by Lodur View Post
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:
  1. local itemOneLink = GetItemLink(...)
  2. local itemTwoLink = GetItemLink(...)
  3.  
  4. local itemIdItemOne = select(4,ZO_LinkHandler_ParseLink(itemOneLink))
  5. local itemIdItemTwo = select(4,ZO_LinkHandler_ParseLink(itemTwoLink))
  6.  
  7. if itemIdItemOne == itemIdItemTwo then
  8.    -- their the same item
  9.    -- Although possibly different stats
  10. 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
  Reply With Quote