Thread: GetItemUniqueId
View Single Post
02/23/17, 09:52 PM   #3
tomtomhotep
 
tomtomhotep's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 21
Originally Posted by Randactyl View Post
It still seems to be working for me in Item Saver. Is Id64ToString(GetItemUniqueId(bagId, slotIndex)) screwy for you?
No. I've never used Id64ToString(). It generates a hash. I just use the number itself. I have no need to "hash" it. Once you use that function to generate a hash string, there is no function (that I know of) to "un-hash" it back to the original number.

From globalapi.lua:
Lua Code:
  1. -- id64s are stored as lua Number type, and sometimes generate the same hash key for very similar numbers.
  2. -- Use this function to get unique hash key for a given id64.
  3. function zo_getSafeId64Key(id)
  4.      return Id64ToString(id)
  5. end
  Reply With Quote