Mercurial > wow > askmrrobot
diff Export.lua @ 127:65c285394049 v59
Fixed an issue with reading bank data.
author | yellowfive |
---|---|
date | Tue, 17 Jul 2018 16:32:12 -0700 |
parents | e31b02b24488 |
children | 3be9cc6f7d20 |
line wrap: on
line diff
--- a/Export.lua Tue Jul 17 09:59:18 2018 -0700 +++ b/Export.lua Tue Jul 17 16:32:12 2018 -0700 @@ -178,10 +178,15 @@ local bankItems = {} local itemsAndCounts = {} + + local bagList = {} + table.insert(bagList, BANK_CONTAINER) + table.insert(bagList, REAGENTBANK_CONTAINER) + for bagId = NUM_BAG_SLOTS + 1, NUM_BAG_SLOTS + NUM_BANKBAGSLOTS do + table.insert(bagList, bagId) + end - scanBag(BANK_CONTAINER, true, bankItems, itemsAndCounts) - scanBag(REAGENTBANK_CONTAINER, true, bankItems, itemsAndCounts) - for bagId = NUM_BAG_SLOTS + 1, NUM_BAG_SLOTS + NUM_BANKBAGSLOTS do + for i,bagId in ipairs(bagList) do local bagItems = {} local bagItemsAndCounts = {} scanBag(bagId, true, bagItems, bagItemsAndCounts)