View Single Post
12/15/18, 05:20 AM   #5
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
There shouldn't be a dot in that number. Most likely lua transformed the number to a float.
Lua can not handle 64bit integers, so most operations will turn that value into a float. For example trying to save the value in a savedVar or trying to print it on screen (because d(...) and tostring(...) will turn it to a float before turning it to a string).

If you want to properly save/display the information, you will need to use the Id64ToString function Baetram mentioned.

Regarding the uniqueness: I played around with that value when it was first added. Back then (and I guess it should be still the same) the uniqueId is the same as GetItemUniqueId(number Bag bagId, number slotIndex) before listing the item.
So the id is tied to the item. If someone buys and re-lists the item, or if the seller cancels and re-lists the item, it will have the same id. That's why you need to additionally use the seller and price.
  Reply With Quote