Mercurial > wow > askmrrobot
comparison 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 |
comparison
equal
deleted
inserted
replaced
126:c005f9a393c1 | 127:65c285394049 |
---|---|
176 -- scan the player's bank and save the contents, must be at the bank | 176 -- scan the player's bank and save the contents, must be at the bank |
177 local function scanBank() | 177 local function scanBank() |
178 | 178 |
179 local bankItems = {} | 179 local bankItems = {} |
180 local itemsAndCounts = {} | 180 local itemsAndCounts = {} |
181 | 181 |
182 scanBag(BANK_CONTAINER, true, bankItems, itemsAndCounts) | 182 local bagList = {} |
183 scanBag(REAGENTBANK_CONTAINER, true, bankItems, itemsAndCounts) | 183 table.insert(bagList, BANK_CONTAINER) |
184 table.insert(bagList, REAGENTBANK_CONTAINER) | |
184 for bagId = NUM_BAG_SLOTS + 1, NUM_BAG_SLOTS + NUM_BANKBAGSLOTS do | 185 for bagId = NUM_BAG_SLOTS + 1, NUM_BAG_SLOTS + NUM_BANKBAGSLOTS do |
186 table.insert(bagList, bagId) | |
187 end | |
188 | |
189 for i,bagId in ipairs(bagList) do | |
185 local bagItems = {} | 190 local bagItems = {} |
186 local bagItemsAndCounts = {} | 191 local bagItemsAndCounts = {} |
187 scanBag(bagId, true, bagItems, bagItemsAndCounts) | 192 scanBag(bagId, true, bagItems, bagItemsAndCounts) |
188 | 193 |
189 bankItems[bagId] = bagItems | 194 bankItems[bagId] = bagItems |