There's InventoryLib by Elkano. I haven't looked into its code though.
There are some tradeoffs with inventory tracking; if you maintain a database indexed by items you will have faster searches and a smaller database size, whereas if you maintain a database indexed by bag number, you will be able to process bag changes more quickly. Other options have their ups and downs. The best method for your addon depends on how it will be used. Addons that display inventory locations in tooltips are best served by Item-indexed tables whereas an addon which does not search often might be better served by a bagID-indexed table. An addon which displays duplicates the appearance of bags from another character would also be best served by a bagID-indexed database.
Just thinking out loud from my experience playing with Possessions... I would love to see a well written, efficient inventory tracking library.
Thanks, MrPlow's bank stacking didn't work for me for a long time either. For a while, I held onto an old Ace addon called Stacker, but eventually got rid of it.
It probably fires twice for the same reason that BANKFRAME_CLOSED fires twice; so that you can still access AH functions as it closes.
You could try this:
local AHClosedOnce = false
function AHDND:AUCTION_HOUSE_CLOSED()
if AHClosedOnce then
if UnitIsDND("player") then
UIErrorsFrame:AddMessage(L['AH DND Mode deactivated!'], 0.0, 1.0, 0.0, 5.0)
SendChatMessage("", "DND")
end
AHClosedOnce = false
else
AHClosedOnce = true
end
0
I would guess that you can search for a single contiguous string within another string, but not a more complex pattern.
0
0
0
Bring some of the functions and DEFAULT_CHAT_FRAME into the local scope?
It'd also be nice to see what exactly was stacked. - Thanks
0
Why not commit it?
0
There are some tradeoffs with inventory tracking; if you maintain a database indexed by items you will have faster searches and a smaller database size, whereas if you maintain a database indexed by bag number, you will be able to process bag changes more quickly. Other options have their ups and downs. The best method for your addon depends on how it will be used. Addons that display inventory locations in tooltips are best served by Item-indexed tables whereas an addon which does not search often might be better served by a bagID-indexed table. An addon which displays duplicates the appearance of bags from another character would also be best served by a bagID-indexed database.
Just thinking out loud from my experience playing with Possessions... I would love to see a well written, efficient inventory tracking library.
0
0
0
FreeRefills does that.
0
0
0
You'll probably have to live with the errors on this one.
0
You could try this:
0
0