Determine if an item is soulbound
I am parsing the tooltip for gear in my bags, and for each item it tells me either "Binds when picked up" or "Binds when equipped". It does that on gear that's either used/soulbound or unused in the bags.
For "Binds when equipped" gear, is there a way to find if it has been used, ie has become soulbound? |
Your tooltip should show it.
This is taken from my addon ... Lua Code:
|
Thanks, I need to try that.
Currently I am using ... -- https://wow.gamepedia.com/API_GetCursorInfo local infoType, cursorItemID, cursorItemLink = GetCursorInfo(); ... because the item is on the cursor. I am also using the "GET_ITEM_INFO_RECEIVED" event and the "CHAT_MSG_LOOT" messages to get hold of item strings, therefore the items may not in my bags at all. Therefore for the tooltip I use GameTooltip:SetOwner(UIParent,"ANCHOR_NONE"); GameTooltip:SetHyperlink(itemLink); |
You can do this without tooltip scanning now, with the C_Item APIs:
Code:
C_Item.IsBound(ItemLocation:CreateFromBagAndSlot(bag, slot)) |
All times are GMT -6. The time now is 06:24 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI