Download
(14Kb)
Download
Updated: 08-15-09 08:08 PM
Pictures
File Info
Updated:08-15-09 08:08 PM
Created:unknown
Downloads:7,976
Favorites:84
MD5:

Cirk's Lootcounter  Popular! (More than 5000 hits)

Version: 3.2.0
by: Cirk [More]

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

3.2.0
  • Removed chat frame announcement on login (not needed any more)
  • Changed version to 3.2.0.
3.1.0
  • Fix for a bug where lootcounter couldn't count bags if they weren't equipped.
  • Added an entry for Blizzard's interface options screen that shows a list of the slash commands.
  • Changed version to 3.1.0.
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.
  • Various changes for version 3.0 compatibility.
Post A Reply Comment Options
Unread 11-14-07, 08:20 PM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
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"
Report comment to moderator  
Reply With Quote
Unread 11-15-07, 02:56 AM  
Cirk
A Cobalt Mageweaver
 
Cirk's Avatar
AddOn Author - Click to view AddOns

Forum posts: 226
File comments: 97
Uploads: 11
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...
__________________
Cirk's Addons
Report comment to moderator  
Reply With Quote
Unread 12-06-07, 11:49 PM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
"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 .
Report comment to moderator  
Reply With Quote
Unread 02-03-08, 12:27 PM  
slinc
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Cool addon btw :P
Report comment to moderator  
Reply With Quote
Unread 02-25-08, 01:38 PM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
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.

"Will a fix ever happen?"--on the next Maury .
Last edited by Zidomo : 02-25-08 at 01:46 PM.
Report comment to moderator  
Reply With Quote
Unread 04-15-08, 06:39 AM  
Cirk
A Cobalt Mageweaver
 
Cirk's Avatar
AddOn Author - Click to view AddOns

Forum posts: 226
File comments: 97
Uploads: 11
Originally posted by Zidomo
"Will a fix ever happen?"--on the next Maury .
Lol Zidomo, and yes my bad for being away from the game and my addons for so long (damn the whole working for a living thing).

I'm working on the next version of Lootcounter at the moment and adding a few features I wanted for myself. Will upload soon!
__________________
Cirk's Addons
Report comment to moderator  
Reply With Quote
Unread 10-11-08, 02:29 PM  
IceShadow
A Deviate Faerie Dragon
 
IceShadow's Avatar

Forum posts: 15
File comments: 93
Uploads: 0
Thank you for this addon, it's greatly appreciated.
Report comment to moderator  
Reply With Quote
Unread 10-13-08, 11:14 AM  
Cirk
A Cobalt Mageweaver
 
Cirk's Avatar
AddOn Author - Click to view AddOns

Forum posts: 226
File comments: 97
Uploads: 11
Lootcounter 3.0.0 available

Ready for the 3.0.2 patch - note that this will not work with 2.4.3 or earlier!
__________________
Cirk's Addons
Report comment to moderator  
Reply With Quote
Unread 08-08-09, 03:46 PM  
Jaim Sandar
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 357
Uploads: 1
subtract count?

I was using an AddOn called NowCarrying
http://www.wowinterface.com/download...wCarrying.html
that prints in chat how many of an item you have as you pick them up. It also tells how many you have left if you drop, use, or otherwise subtract an item from your inventory.
Can LootCounter do the subtract notice as well? If not, can it easily be modified to do so?

Thank you!
Report comment to moderator  
Reply With Quote
Unread 08-15-09, 08:28 PM  
Cirk
A Cobalt Mageweaver
 
Cirk's Avatar
AddOn Author - Click to view AddOns

Forum posts: 226
File comments: 97
Uploads: 11
Jaim - Lootcounter doesn't support that at the moment. It probably wouldn't be too hard to add it in, but I'd have to do a bunch of testing on the timing of changes and notifications.

Will keep in mind for the next time I work on Lootcounter functionality
__________________
Cirk's Addons
Report comment to moderator  
Reply With Quote
Unread 12-08-09, 08:01 PM  
Twidget
An Aku'mai Servant
 
Twidget's Avatar

Forum posts: 33
File comments: 401
Uploads: 0
Getting the following error after the patch today:

Date: 2009-12-08 20:59:21
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Lootcounter\Lootcounter.lua line 1644:
attempt to call method 'SetMultilineIndent' (a nil value)
Debug:
[C]: SetMultilineIndent()
Lootcounter\Lootcounter.lua:1644: RegisterOptions()
Lootcounter\Lootcounter.lua:1417: OnLoad()
[string "*:OnLoad"]:1:
[string "*:OnLoad"]:1
AddOns:
Report comment to moderator  
Reply With Quote
Unread 12-10-09, 06:09 AM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
Originally posted by Twidget
Getting the following error after the patch today:...
Same thing here on logon with v3.2.0 in WoW 3.3 live (USEnglish client/server), using BugSack/BugGrabber to record the error:

Code:
["message"] = {
                "LootCounter-3.2.0\\Lootcounter.lua:1644: attempt to call method 'SetMultilineIndent' (a nil value)\nLootCounter-3.2.0\\Lootcounter.lua:1417: in function `OnLoad'\n<string>:\"*:OnLoad\":1: in function <[string \"*:OnLoad\"]:1>\n\nLocals:|r\nself = LootcounterFrame {\n 0 = <userdata>\n}\n_thisFrame = LootcounterFrame {\n 0 = <userdata>\n}\n_patternList = <table> {\n 1 = \"^You create: (.+)x(%d+)%.\"\n 2 = \"^You create: (.+)%.\"\n 3 = \"^You receive item: (.+)x(%d+)%.\"\n 4 = \"^You receive item: (.+)%.\"\n 5 = \"^You receive loot: (.+)x(%d+)%.\"\n 6 = \"^You receive loot: (.+)%.\"\n 7 = \"^Received (%d+) of item: (.+)%.\"\n 8 = \"^Received item: (.+)%.\"\n 9 = \"^(.+) received%.\"\n}\n_globalLootStrings = <table> {\n 1 = \"LOOT_ITEM_CREATED_SELF_MULTIPLE\"\n 2 = \"LOOT_ITEM_CREATED_SELF\"\n 3 = \"LOOT_ITEM_PUSHED_SELF_MULTIPLE\"\n 4 = \"LOOT_ITEM_PUSHED_SELF\"\n 5 = \"LOOT_ITEM_SELF_MULTIPLE\"\n 6 = \"LOOT_ITEM_SELF\"\n 7 = \"ERR_QUEST_REWARD_ITEM_MULT_IS\"\n 8 = \"ERR_QUEST_REWARD_ITEM_S\"\n 9 = \"ERR_RECEIVE_ITEM_S\"\n}\n_inventorySlots =", -- [1]
                " <table> {\n WristSlot = 9\n BackSlot = 15\n Trinket0Slot = 13\n TabardSlot = 19\n FeetSlot = 8\n NeckSlot = 2\n Finger1Slot = 12\n ChestSlot = 5\n Trinket1Slot = 14\n HeadSlot = 1\n MainHandSlot = 16\n RangedSlot = 18\n ShirtSlot = 4\n SecondaryHandSlot = 17\n Finger0Slot = 11\n LegsSlot = 7\n WaistSlot = 6\n HandsSlot = 10\n ShoulderSlot = 3\n}\n_itemRarityColorHex = <table> {\n 1 = \"|cffffffff\"\n 2 = \"|cff1eff00\"\n 3 = \"|cff0070dd\"\n 4 = \"|cffa335ee\"\n 5 = \"|cffff8000\"\n 6 = \"|cffe6cc80\"\n 7 = \"|cffe6cc80\"\n 0 = \"|cff9d9d9d\"\n}\n_itemRarityByColor = <table> {\n ffffffff = 1\n ff1eff00 = 2\n ffe6cc80 = 7\n ff0070dd = 3\n ffff8000 = 5\n ffa335ee = 4\n ff9d9d9d = 0\n}\n_itemRarityName = <table> {\n 1 = \"common\"\n 2 = \"uncommon\"\n 3 = \"rare\"\n 4 = \"epic\"\n 5 = \"legendary\"\n 6 = \"artifact\"\n 7 = \"heirloom\"\n 0 = \"poor\"\n}\n\n  ---", -- [2]
            },
            ["type"] = "error",
            ["session"] = 16,
            ["counter"] = 1,
        }, -- [6]
This mod needs updating to account for WoW 3.3 changes.
Report comment to moderator  
Reply With Quote
Unread 12-11-09, 05:58 PM  
EvilRick
A Defias Bandit

Forum posts: 3
File comments: 5
Uploads: 0
I commented out lines 1643 thru 1647

Code:
--			if (string.sub(uncolored, 1, 1) == "/") then
--				line:SetMultilineIndent(16);
--			else
--				line:SetMultilineIndent(0);
--			end
I get no error on login and it looks like it's showing the correct amounts in the log.

Not done much testing, but this may be a temp fix for now.


Originally posted by Zidomo
Same thing here on logon with v3.2.0 in WoW 3.3 live (USEnglish client/server), using BugSack/BugGrabber to record the error:

Code:
["message"] = {
                "LootCounter-3.2.0\\Lootcounter.lua:1644: attempt to call method 'SetMultilineIndent' (a nil value)\nLootCounter-3.2.0\\Lootcounter.lua:1417: in function `OnLoad'\n<string>:\"*:OnLoad\":1: in function <[string \"*:OnLoad\"]:1>\n\nLocals:|r\nself = LootcounterFrame {\n 0 = <userdata>\n}\n_thisFrame = LootcounterFrame {\n 0 = <userdata>\n}\n_patternList = <table> {\n 1 = \"^You create: (.+)x(%d+)%.\"\n 2 = \"^You create: (.+)%.\"\n 3 = \"^You receive item: (.+)x(%d+)%.\"\n 4 = \"^You receive item: (.+)%.\"\n 5 = \"^You receive loot: (.+)x(%d+)%.\"\n 6 = \"^You receive loot: (.+)%.\"\n 7 = \"^Received (%d+) of item: (.+)%.\"\n 8 = \"^Received item: (.+)%.\"\n 9 = \"^(.+) received%.\"\n}\n_globalLootStrings = <table> {\n 1 = \"LOOT_ITEM_CREATED_SELF_MULTIPLE\"\n 2 = \"LOOT_ITEM_CREATED_SELF\"\n 3 = \"LOOT_ITEM_PUSHED_SELF_MULTIPLE\"\n 4 = \"LOOT_ITEM_PUSHED_SELF\"\n 5 = \"LOOT_ITEM_SELF_MULTIPLE\"\n 6 = \"LOOT_ITEM_SELF\"\n 7 = \"ERR_QUEST_REWARD_ITEM_MULT_IS\"\n 8 = \"ERR_QUEST_REWARD_ITEM_S\"\n 9 = \"ERR_RECEIVE_ITEM_S\"\n}\n_inventorySlots =", -- [1]
                " <table> {\n WristSlot = 9\n BackSlot = 15\n Trinket0Slot = 13\n TabardSlot = 19\n FeetSlot = 8\n NeckSlot = 2\n Finger1Slot = 12\n ChestSlot = 5\n Trinket1Slot = 14\n HeadSlot = 1\n MainHandSlot = 16\n RangedSlot = 18\n ShirtSlot = 4\n SecondaryHandSlot = 17\n Finger0Slot = 11\n LegsSlot = 7\n WaistSlot = 6\n HandsSlot = 10\n ShoulderSlot = 3\n}\n_itemRarityColorHex = <table> {\n 1 = \"|cffffffff\"\n 2 = \"|cff1eff00\"\n 3 = \"|cff0070dd\"\n 4 = \"|cffa335ee\"\n 5 = \"|cffff8000\"\n 6 = \"|cffe6cc80\"\n 7 = \"|cffe6cc80\"\n 0 = \"|cff9d9d9d\"\n}\n_itemRarityByColor = <table> {\n ffffffff = 1\n ff1eff00 = 2\n ffe6cc80 = 7\n ff0070dd = 3\n ffff8000 = 5\n ffa335ee = 4\n ff9d9d9d = 0\n}\n_itemRarityName = <table> {\n 1 = \"common\"\n 2 = \"uncommon\"\n 3 = \"rare\"\n 4 = \"epic\"\n 5 = \"legendary\"\n 6 = \"artifact\"\n 7 = \"heirloom\"\n 0 = \"poor\"\n}\n\n  ---", -- [2]
            },
            ["type"] = "error",
            ["session"] = 16,
            ["counter"] = 1,
        }, -- [6]
This mod needs updating to account for WoW 3.3 changes.
Last edited by EvilRick : 12-11-09 at 05:58 PM.
Report comment to moderator  
Reply With Quote
Unread 12-11-09, 10:09 PM  
NuckingFuts
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Originally posted by Twidget
Getting the following error after the patch today:

Date: 2009-12-08 20:59:21
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Lootcounter\Lootcounter.lua line 1644:
attempt to call method 'SetMultilineIndent' (a nil value)
Debug:
[C]: SetMultilineIndent()
Lootcounter\Lootcounter.lua:1644: RegisterOptions()
Lootcounter\Lootcounter.lua:1417: OnLoad()
[string "*:OnLoad"]:1:
[string "*:OnLoad"]:1
AddOns:
Same here... exact same error message at every log in.
Report comment to moderator  
Reply With Quote
Unread 12-13-09, 06:49 AM  
Kazragore
A Deviate Faerie Dragon

Forum posts: 14
File comments: 118
Uploads: 0
Same here. Pls update. It's my last error message since 3.3.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: