View Single Post
02/01/15, 07:24 PM   #9
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by Baertram View Post
This could be the reason then, but I don't know any solution so far as the item ID will be the same for identical items (this is why e.g. the potions will all be marked even if you don't stack them, which is needed imo).
I only scanned the code, but if your refering to using this in FCO ItemSaver:
Lua Code:
  1. itemId = SignItemId(GetItemInstanceId(bagId, slotIndex))

There is a uniqueID for items (convert it to a string before saving), this is what I used in FilterIt to uniquely identify items:
Lua Code:
  1. local sUniqueId = Id64ToString(GetItemUniqueId(_iBagId, _iSlotId))

I convert it to a string to save in a saved variable table, then when I want to check it against an item, do the same thing. Get the unique id, convert it to a string, & check it against the saved unqueID strings.
  Reply With Quote