Quantcast
Channel: Recent Additions to 'Possible error in 2nd ed, BagBuddy item search loop'
Viewing all articles
Browse latest Browse all 4

forums/book/120/4

$
0
0
Yes, Lua errors are turned on - but the issue seems to be with the quality value returned by GetContainerItemInfo. I modified the loop as follows and seem to be getting the behavior I expect (hope the formatting doesn't get too scrambled): for bag = 0, NUM_BAG_SLOTS do for slot = 1, GetContainerNumSlots(bag) do local texture, count, locked, _, readable, lootable, link = GetContainerItemInfo(bag, slot) if texture then local itemNum = tonumber(link:match("|Hitem:(%d+):")) local name,_,quality = GetItemInfo(itemNum) local shown = true if BagBuddy.qualityFilter then shown = shown and BagBuddy.filters[quality]:GetChecked() end if shown then if not items[itemNum] then items[itemNum] = { texture = texture, count = count, quality = quality, name = name, link = link, } else items[itemNum].count = items[itemNum].count + count end end end end end Haven't tried it on all my toons yet 8^) but first tests show everything getting the right halo and showing up when the proper button is pushed.

Viewing all articles
Browse latest Browse all 4

Trending Articles