View Single Post
02/03/15, 04:47 PM   #14
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by Baertram View Post
There might be other IDs for items, like the 64bit uniqie IDs, but I have read there is some trouble if you save them to the SavedVariables and try to read them back to your addon.
This might get fixed with update 1.6 as there are new 64 uniqie ID functions.
This may or may not be what you are referring to, but I did run into problems if I tried to save the
Lua Code:
  1. GetItemUniqueId(_iBagId, _iSlotId)
to the saved variables. It was a while ago, I don't recall for sure what it was, I'm thinking it wiped out the (e-314) part?

But as long as its converted to a string before I save it I haven't had any problems:
Lua Code:
  1. local sUniqueId = Id64ToString(GetItemUniqueId(_iBagId, _iSlotId))
  Reply With Quote