Example of Lootcounter adding totals to loot messages
Cirk's Lootcounter
Lootcounter is a relatively small addon that aims to do two simple things - it tells you how many of something you have when you loot more of them, and it keeps track of the items you have on each character so that you can search for items through a small set of slash commands.
Lootcounter's slash commands
Lootcounter supports the following options:
/lootcounter on enables Lootcounter for the current character (the default). /lootcounter off disables Lootcounter for the current character. /lootcounter ui on tells Lootcounter to show loot messages and counts in the middle of your screen, a bit like they would show for quest items. /lootcounter ui off tells Lootcounter to only show loot messages and counts in the usual chat window (the default). /lootcounter compact tells Lootcounter to try and compact any stacks of items you have (doesn't move stacks that are already complete though). /lootcounter show [searchterm] shows you a list of all your items (on you, and in the bank) that match the search term and their total counts in the default chat window. The search term can be part of an item name, an item type, or even an item link. /lootcounter showbank [searchterm] does the same thing as /lootcounter show but only shows matches in your bank. /lootcounter showbag [searchterm] does the same thing as /lootcounter show but only shows matches in your current bags or inventory. /lootcounter showalt <charactername> [searchterm] does the same thing as /lootcounter show but for the named alternate character. /lootcounter showall <searchterm> does the same thing as /lootcounter show but searches through all your characters at once. /lootcounter reset [charactername] resets the stored data for either your current, or the named character. /lootcounter resetall resets the stored data for all your characters. /lootcounter data on turns on storing of information for the current character (which is the default). /lootcounter data on turns off the storing of information for the current character - you might want to do this if you use another addon that provides a similar feature. /lootcounter status shows Lootcounter's status.
You can also just use /lc for these slash commands, unless you have Ybe's LootCount addon enabled, in which case Lootcounter will play nice and not register itself for the /lootcount or /lc slash commands (since those are what LootCount uses).
Lootvalue integration
If you are using Cirk's Lootvalue, Lootcounter can provide count information for items directly to Lootvalue, so you can see them in your mouseover tooltips, without having to use lootcounter's slash commands.
Enjoy!
-- Cirk of Doomhammer
Change Log - Cirk's Lootcounter
3.0.2
Fix issue that arises when logging in on a newly created character or after reinstalling WoW due to client messages arriving in unexpected order.
Changed version string to v3.0.2.
3.0.1
Fixed a bug where Lootcounter was comparing items with the player levels included (so it wouldn't see the same item on two different characters as being the same if the character's levels were different).
Added support for the new currency change, that moved Badges of Justice and BG tokens out of your bags and into the new currency screen.
Changed version string to v3.0.1.
3.0.0
Changed version string to v3.0.0.
Added the ability for Lootcounter to save each characters items for referencing from other characters.
Lootcounter now counts your keys and equipped items as well.
Added search capabilities to Lootcounter (using the show, showall, showbags, or showbank options).
Provides a hook for Lootvalue to automatically show counts of items on each character in the tooltip.
LootCounter-2.3.0\\Lootcounter.lua:633: attempt to index field '?' (a nil value)\nLootCounter-2.3.0\\Lootcounter.lua:679: in function `OnEvent'\n<string>:\"*:OnEvent\":1: in function <[string \"*:OnEvent\"]:1>
is still occurring in WoW 2.3.3 live. Happens more frequently than it used to, as in every other logout on average. Have stopped using it for now.
"LootCounter-2.3.0\\Lootcounter.lua:633: attempt to index field '?' (a nil value)\nLootCounter-2.3.0\\Lootcounter.lua:679: in function `OnEvent'\n<string>:\"*:OnEvent\":1: in function <[string \"*:OnEvent\"]:1>" happened again tonight (Dec. 7) after logging out .
Thanks Zidomo - thats the infamous "logout before login event handled" bug that I keep forgetting to make the code robust to (it isn't supposed to happen, but seems to every new patch or client crash).
I'll get a fixed version up soon, but otherwise it shouldn't occur every time...
First try of the mod (v230_071113). Error thrown up logging out of WoW 2.3 live (US Eng/server client, recorded with the BugSack/BugGrabber mod):
"LootCounter-2.3.0\\Lootcounter.lua:633: attempt to index field '?' (a nil value)\nLootCounter-2.3.0\\Lootcounter.lua:679: in function `OnEvent'\n<string>:\"*:OnEvent\":1: in function <[string \"*:OnEvent\"]:1>\n\n"