View Single Post
02/11/17, 05:57 PM   #3
Heppy
AddOn Author - Click to view addons
Join Date: Jan 2017
Posts: 8
Originally Posted by Rhyono View Post
This will loop through the craft bag and spit out every item's item link. Obviously if you want do something else with the data, change the d() line.
lua Code:
  1. for index, data in pairs(SHARED_INVENTORY.bagCache[BAG_VIRTUAL])do
  2.     if data ~= nil then
  3.         d(GetItemLink(BAG_VIRTUAL,data.slotIndex))
  4.     end
  5. end
Thank you!
I was wondering if it had something to do with the BAG_VIRTUAL.
That's exactly what I need! Thanks
  Reply With Quote