Maintenance for the week of May 11:
• PC/Mac: No maintenance – May 11

Is GetItemCraftingInfo limited or buggy?

thifi
thifi
Soul Shriven
Hi,

I'm trying to query an item's crafting info inside an addon I'm developing and I'm getting strange results.

For a lot of items GetItemCraftingInfo returns valid values, but for a lot, the returned results are 0.

Example:
- link: [[|H2DC50E:item:45052:19:4:26844:19:4:0:0:0:0:0:0:0:0:0:4:0:0:63:0|h[maple restoration staff of shock^n]|h]]
- returned TradeSkillType = 0
- returned ItemType = 0

I found a lot of items like this in my char's inventory, sample code snippet to prove it:

local x,y = GetItemCraftingInfo(bagId, slotIdx)
local z = GetItemType(bagId, slotIdx)

if (y ~= z) then
debug(colYellow .. "Item: " .. item.itemName .. ", x: " .. x .. ", y: " .. y .. ", z: " .. z)
else
debug(colGreen .. "Item: " .. item.itemName .. ", x: " .. x .. ", y: " .. y .. ", z: " .. z)
end

Is this a bug or a limitation?
  • Cairenn
    Cairenn
    ✭✭✭
    Hi thifi,

    You will probably get help quicker if you:
    a) post in our Dev Discussions section of our forums, and/or;
    b) join us in the ui dev irc channel
    server: irc.freenode.net
    channel: #esouidev
    Cairenn
    Co-founder & Administrator
    ESOUI
  • thifi
    thifi
    Soul Shriven
    Thanks! :) Will do.
Sign In or Register to comment.