BAG_VIRTUAL is the craft bag. You can use the following to find items in it. Note that data is a table for the item. data.name will be the name of it, data.slotIndex is where to find it. If you need something else, do some output in chat.
if SHARED_INVENTORY.bagCache[BAG_VIRTUAL] then
for index, data in pairs(SHARED_INVENTORY.bagCache[BAG_VIRTUAL])do
if isItemYouWant(data) then
return BAG_VIRTUAL, data.slotIndex
end
end
end
The guildbank and buyback ones I'm not sure about. You may want to try going to a merchant for the buyback one, and possibly opening the buyback tab.
|