[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_) Lua Code:
Thanks a lot! |
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.
|
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
|
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? |
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.
|
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. |
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.
|
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 02:49 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI