Is GetItemCraftingInfo limited or buggy?

Maintenance for the week of April 21:
• [COMPLETE] PC/Mac: NA and EU megaservers for patch maintenance – April 21, 4:00AM EDT (8:00 UTC) - 9:00AM EDT (13:00 UTC)
· Xbox: NA and EU megaservers for patch maintenance – April 23, 6:00AM EDT (10:00 UTC) - 12:00PM EDT (16:00 UTC)
· PlayStation®: NA and EU megaservers for patch maintenance – April 23, 6:00AM EDT (10:00 UTC) - 12:00PM EDT (16:00 UTC)
Update 46 is now available for testing on the PTS! You can read the latest patch notes here: https://forums.elderscrollsonline.com/en/discussion/676794
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.