Loading...

TBC added a new bank bag - and it's not sorting  [Accepted Answer]

1
As the title suggests (and for some reason the only post about this is locked with no reply?) the new bag added in TBC appears to be ignored by the sorting algorithm.

I did some digging and here's what I found:

Code: Select all

function _G.SortBankBags()
	CONTAINERS = {-1, 5, 6, 7, 8, 9, 10}
	for i = #CONTAINERS, 1, -1 do
		if GetBankBagSlotFlag(i - 1, LE_BAG_FILTER_FLAG_IGNORE_CLEANUP) then
			tremove(CONTAINERS, i)
		end
	end
	Start()
end
The containers table needs to have bank bag 11 added. As there are now seven bank bag slots in addition to the -1 bag. Like so:

Code: Select all

function _G.SortBankBags()
	CONTAINERS = {-1, 5, 6, 7, 8, 9, 10, 11}
	for i = #CONTAINERS, 1, -1 do
		if GetBankBagSlotFlag(i - 1, LE_BAG_FILTER_FLAG_IGNORE_CLEANUP) then
			tremove(CONTAINERS, i)
		end
	end
	Start()
end
I made this edit and this solves the issue.