Lua's tostring cannot convert id64 into a useful form, that's why you see a float number. When you use Id64ToString as Baertram suggests, you will see the proper representation of the 64-bit integer number, which you can store in your saved variables for external applications to use.
As far as I am aware the unique id is unique for each item in any store. It's just that when someone purchases (or cancels) an item and lists it again, it will keep that same unique id, but can have a different price and/or seller.
|