LilSparky's Workshop

6 - Count of items column

What is the enhancement in mind? How should it look and feel?
One thing i would love to see from this mod is an additional, probably optional, column that contains how many of the item you have on the current character, all characters, and all characters plus those currently posted in auction house.  It would greatly aid in deciding on what to create to replenish my auctioning supplies.

User When Change
lilsparky May 04, 2009 at 00:25 UTC Changed status from New to Accepted
AceOfAces May 04, 2009 at 00:13 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Subxero Subxero Jun 24, 2010 at 12:38 UTC - 0 likes

    Hi Lilsparky

    The current item count only take care of your items not count any item on other toons (alters)

    using altoholic (datastore) you can change GetItemCount to these... and get all item count.

    	function LSW:GetItemCountTotal(searchedID)
    			local DataStoreCount = 0
    			local character
    			local realm = GetRealmName()
    			local itemCounts = {}
    			for characterName in pairs(DataStore:GetCharacters(realm)) do
    				character = "Default."..realm.."."..characterName
    				itemCounts[1], itemCounts[2] = DataStore:GetContainerItemCount(character, searchedID)
    				itemCounts[3] = DataStore:GetAuctionHouseItemCount(character, searchedID)
    				itemCounts[4] = DataStore:GetInventoryItemCount(character, searchedID)
    				itemCounts[5] = DataStore:GetMailItemCount(character, searchedID)
    				itemCounts[6] = DataStore:GetCurrencyItemCount(character, searchedID)
    				local charCount = 0
    				for _, v in pairs(itemCounts) do
    					charCount = charCount + v
    				DataStoreCount = DataStoreCount + charCount
    		return DataStoreCount
  • Avatar of lilsparky lilsparky Aug 15, 2009 at 22:43 UTC - 0 likes

    i think what i will do is check a global api and let bag mod authors support that api or not.

  • Avatar of synae synae Jun 15, 2009 at 14:44 UTC - 0 likes

    I've created a patch that uses Altoholic to get item counts. LSW should show the same number that item tooltips show for "total owned" when using that feature of Altoholic. It uses the same caching infrastructure as the rest of LSW (since Altoholic is pretty slow to return the item count once you query it for more than a couple items).

    This patch also includes an "LSW: Item Count" sorter for Skillet.

    The patch is based off of r72. I was unable to find a way to add a file to this ticket, so I've added it to pastebin:

    This probable isn't implemented the way you envisioned it, lilsparky, so it doesn't matter to me if you keep it or not. But I needed the feature badly and maybe someone else who uses the same addons also does ;-)

    You should be able to apply the patch to your svn working copy of LSW with any diff tool.

  • Avatar of eteb eteb May 27, 2009 at 00:51 UTC - 0 likes

    Will the next version also include auctions/bags on alts, meaning LSW should be running on those chars too?

  • Avatar of lilsparky lilsparky May 26, 2009 at 23:46 UTC - 0 likes

    yeah, the problem is that everybody has a different scheme for inventory control in bag mods. i actually have a proposed co-operative api in mind that bag authors could implement to make life easier on folks who would like to access that data (instead of having to write a ton of individual support scripts for all the different mods).

    the next version will include the current inventory (including bank) in parenthesis with the number of auctions when hitting alt. so the value column would read 10 (5) for an item with 10 auctions if you have 5 of them in your inventory.

  • Avatar of eteb eteb May 26, 2009 at 21:59 UTC - 0 likes

    Bagnon provides item counts for current char + alts. I'm not sure if it has an API to make this information visible (and thus possible to integrate in LSW) though.

  • Avatar of lilsparky lilsparky May 04, 2009 at 00:30 UTC - 0 likes

    this is the plan.

    right now, you can hit ALT to see auction counts in the "value" column (for items that are best to sell at auction).

    the intention is to also to swap the cost column for an inventory count (for this toon/alts). i could probably add your current auctions to the auction count, too. so hitting alt would do show this:


    a = total auctions A = your auctions

    i = current inventory I = current inventory for all toons



Last updated
Mar 30, 2012
May 04, 2009
Accepted - Problem reproduced / Need acknowledged.
Enhancement - A change which is intended to better the project in some way
Medium - Normal priority.

Reported by

Possible assignees