ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Wish List (https://www.esoui.com/forums/forumdisplay.php?f=177)
-   -   [outdated] GetItemUniqueId -> GetItemLinkUniqueId (https://www.esoui.com/forums/showthread.php?t=7832)

Baertram 06/02/18 06:31 PM

[outdated] GetItemUniqueId -> GetItemLinkUniqueId
 
Hey chip,

the function GetItemUniqueId(bag, slot) is available to get a unique int64 value of an item from the given bag and slotIndex.
Code:

* GetItemUniqueId(*[Bag|#Bag]* _bagId_, *integer* _slotIndex_)
** _Returns:_ *id64:nilable* _id_

Could we please have the same function for an itemlink as well, if this is possible (not sure how exactly these int64 values are build internally, so maybe you really need the bag and slotIndex in there?).

Lua Code:
  1. * GetItemLinkUniqueId(*string* _itemLink_)
  2. ** _Returns:_ *id64:nilable* _id_


Thanks a lot!

Dolgubon 06/02/18 06:38 PM

This doesn't make sense, when you look at what a Unique ID is. The Unique ID is unique even between items of the same type. So stay you have two stages that are the same and have the same item link, they will still have different Unique IDs. So it doesn't make sense to be able to get it from an item link.

Kyoma 06/02/18 06:45 PM

The only way to get a unqiue item id from an item link would be if it actually contained the unique item id of whatever it was linked from. So yea, Dolgubon is probably right. :p

Baertram 06/03/18 09:00 AM

Ok, I thought the itemLink contains all information about quality, level, enchantment, etc. which builds the unique item ID for an item.
Didn't know the itemLink is the same for these different items but maybe the itemLink only relies on the "itemId" then which isn't unique?

Rhyono 06/03/18 09:03 AM

The item link does contain the stuff you listed, but that's not enough to make it unique. I could make two pieces of identical gear and slap on identical glyphs and their links would be the same. Their UIDs would be different, though.

Baertram 06/03/18 09:12 AM

Someone told me the uniqueIds behave differently in the past. I mean the name "unique" is telling me you are right.
But they said the uniqueId is the same for items that are totally the same.

sirinsidiator 06/03/18 09:37 AM

You are probably thinking about the itemInstanceIds which are generated from the information contained in the link and have changed in the past as new fields have been added.

Baertram 06/03/18 01:21 PM

Well it does not seem to be possible as described above so please close this request then.


All times are GMT -6. The time now is 01:16 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI