Hey guys! I want to update Dustman addon in order to mark as junk/delete crown related stuff obtained by daily rewards. Problem is that those exact same items can be found also when opening crates and gems can be extracted using them (so I don't want to delete those).
So, is there any method (like canGemsBeExtracted(itemLink)) or id in itemLink that I can use to distinguish the different versions of items?
Here an example of what I am talking about:
copy-paste from esoui code (/esoui/ingame/inventory/sharedinventory.lua):
local isFromCrownCrate = IsItemFromCrownCrate(bagId, slotIndex)
slot.isGemmable = false
slot.requiredPerGemConversion = nil
slot.gemsAwardedPerConversion = nil
if isFromCrownCrate then
local requiredPerGemConversion, gemsAwardedPerConversion = GetNumCrownGemsFromItemManualGemification(bagId, slotIndex)
if requiredPerGemConversion > 0 and gemsAwardedPerConversion > 0 then
slot.requiredPerGemConversion = requiredPerGemConversion
slot.gemsAwardedPerConversion = gemsAwardedPerConversion
slot.isGemmable = true
If you use Dustman you should have the inventorySlot and it's dataEntry.data already given and do not need to create a new itemlink from the inventorySlot.
Just check if dataEntry.daa.isGemmable should be enough then I hope.