Items that can be converted into gems
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: Thank you! |
I'm assuming you checked for a difference in the item link itself (if any)? A search on the API page gave me this: https://wiki.esoui.com/GetNumCrownGe...alGemification.
|
Quote:
|
copy-paste from esoui code (/esoui/ingame/inventory/sharedinventory.lua):
Code:
local isFromCrownCrate = IsItemFromCrownCrate(bagId, slotIndex) |
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. |
All times are GMT -6. The time now is 10:42 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI