Mercurial > wow > askmrrobot
diff Export.lua @ 191:4aeedce4c995 v93
Added better identification of duplicate items.
author | yellowfive |
---|---|
date | Fri, 30 Oct 2020 21:14:57 -0700 |
parents | a7f2ba17c39a |
children | cb7eb9b9cc24 |
line wrap: on
line diff
--- a/Export.lua Mon Oct 19 11:20:07 2020 -0700 +++ b/Export.lua Fri Oct 30 21:14:57 2020 -0700 @@ -115,12 +115,20 @@ local function scanBag(bagId, isBank, bagTable, bagItemsWithCount) local numSlots = GetContainerNumSlots(bagId) - local loc = ItemLocation.CreateEmpty() + --local loc = ItemLocation.CreateEmpty() + local item for slotId = 1, numSlots do local _, itemCount, _, _, _, _, itemLink = GetContainerItemInfo(bagId, slotId) if itemLink ~= nil then local itemData = Amr.Serializer.ParseItemLink(itemLink) if itemData ~= nil then + item = Item:CreateFromBagAndSlot(bagId, slotId) + + -- seems to be of the form Item-1147-0-4000000XXXXXXXXX, so we take just the last 9 digits + itemData.guid = item:GetItemGUID() + if itemData.guid and strlen(itemData.guid) > 9 then + itemData.guid = strsub(itemData.guid, -9) + end -- see if this is an azerite item and read azerite power ids --[[loc:SetBagAndSlot(bagId, slotId)