Count of items column #6


  • Accepted
  • Enhancment
Open
Assigned to _ForgeUser280725
  • namahanna created this issue May 3, 2009

    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.

  • namahanna added the tags New Enhancment May 3, 2009
  • _ForgeUser280725 removed a tag New May 3, 2009
  • _ForgeUser280725 added a tag Accepted May 3, 2009
  • _ForgeUser280725 posted a comment May 3, 2009

    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:

    skil........a/A........i/I

    a = total auctions A = your auctions

    i = current inventory I = current inventory for all toons

  • _ForgeUser10799 posted a comment May 26, 2009

    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.

  • _ForgeUser280725 posted a comment May 26, 2009

    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.

  • _ForgeUser10799 posted a comment May 26, 2009

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

  • _ForgeUser264294 posted a comment Jun 15, 2009

    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: http://pastebin.com/f15954427

    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.

  • _ForgeUser280725 posted a comment Aug 15, 2009

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

  • _ForgeUser149874 posted a comment Jun 24, 2010

    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
    				end
    				DataStoreCount = DataStoreCount + charCount
    			end
    		return DataStoreCount
    	end
    

To post a comment, please login or register a new account.