comparison Export.lua @ 85:8914581c912f v40

update for scanning relics in bags
author yellowfive
date Wed, 31 Aug 2016 11:01:44 -0700
parents 0515882856f1
children 6bbe64d587b4
comparison
equal deleted inserted replaced
84:641c2f44d3fd 85:8914581c912f
125 for slotId = 1, numSlots do 125 for slotId = 1, numSlots do
126 local _, itemCount, _, _, _, _, itemLink = GetContainerItemInfo(bagId, slotId) 126 local _, itemCount, _, _, _, _, itemLink = GetContainerItemInfo(bagId, slotId)
127 if itemLink ~= nil then 127 if itemLink ~= nil then
128 local itemData = Amr.Serializer.ParseItemLink(itemLink) 128 local itemData = Amr.Serializer.ParseItemLink(itemLink)
129 if itemData ~= nil then 129 if itemData ~= nil then
130
130 -- only add equippable items to bag data 131 -- only add equippable items to bag data
131 if IsEquippableItem(itemLink) or Amr.SetTokenIds[itemData.id] then 132 --if IsEquippableItem(itemLink) or Amr.SetTokenIds[itemData.id] then
132 if isBank then 133 if isBank then
133 _lastBankBagId = bagId 134 _lastBankBagId = bagId
134 _lastBankSlotId = slotId 135 _lastBankSlotId = slotId
135 end 136 end
136 137
137 table.insert(bagTable, itemLink) 138 table.insert(bagTable, itemLink)
138 end 139 --end
139 140
140 -- all items and counts, used for e.g. shopping list and reagents, etc. 141 -- all items and counts, used for e.g. shopping list and reagents, etc.
141 if bagItemsWithCount then 142 if bagItemsWithCount then
142 if bagItemsWithCount[itemData.id] then 143 if bagItemsWithCount[itemData.id] then
143 bagItemsWithCount[itemData.id] = bagItemsWithCount[itemData.id] + itemCount 144 bagItemsWithCount[itemData.id] = bagItemsWithCount[itemData.id] + itemCount