Looter

I have been looking for a mod to auto loot profession windows. For example I want to auto loot whenever I skin something or mine something etc... So after looking for some time with out much luck I stumbled across FastDisenchant by masahikotao. This seemed to do the trick, but it only dealt with disenchanting and prospecting. I decided that wasn't good enough and put my limited coding knowledge to work with my friend to make it work with other professions. Thus looter was born. Though I admit while messing around with the code we came up with several other features we think would be great to add if we can figure out how. Its if far from being a final product, but we figured we would get an alpha release version out to start things off.

Note: Short of thinking of something else, this will one of the last updates to the Looter mod itself, to keep it a nice small and lightweight but does what you want looting mod. Next in line is titan/fubar support (which might be another mod, such as how bankitems does, depending on size of the change) and WoTLK compatibility.

Further "extra" features that will enhance Looter such as been discussed before, such as possibly Loot/Rolling based on wish list in Atlas Loot, or Auctioneer values, and so on, will most likely be turned into another mod such as "LooterExtras" which will require Looter but be an optional addon for those that want the extra features and don't mind the extra memory/performance hit they might cause (again see readme for details).

* Added looting of Quest items (updated as of 1.0.4, see readme)
* Quest item loot list updated on login automatically
* Added /looter add, and /looter remove for adding or removing the mouseovered item to the custom loot list.
* Added looting by item value, read readme for details
* See change log for more details.
* Minimap button is now hideable and showable via slash command or menu option
* Looter will now automatically reset and update the saved settings if the version (or lack of version for even older versions) is older then the current version. This will fix most problems related to having older settings that don't have the new toggles added in later versions.
* Fixed 3 outstanding bugs (listed at the portal below, see there or the changelog for details)
* Should now be fully WoTLK compatible.

Made an author portal at This link where people can more easily post any bug reports or feature requests and easily track them.

Current version:

Working slash command system, using /looter.
Using the above, you can toggle any of the current looting options on or off.
*Added /looter list custom, to list whats in the custom loot list (see gui)
*Added /looter toggle status, to see whats toggled on or off
*Added /looter version, to see what the current version is
*Added /looter reset, to reset the toggles back to default and clear the custom loot list
*Added /looter clear, to clear the custom loot list (and hence not /looter reset, which resets the toggles, or needing to remove each item yourself)

Working Menu/GUI, for now use /looter open menu to access.
Can use the new menu to visually see whats enabled or disabled, as well as change them from the menu, also can use the menu to add items you wish to loot automatically to the custom loot list and click the display button to see whats in there so far.

Working saved options, all toggle options and the custom loot list will now be saved between sessions for each individual character.

Working Minimap button, place it where you want it, and you can left click it to open the menu or right click it to update your quest item loot list (see readme)

Coming soon:
*Localizations
*And more for a full list (or at least current full list) read the included readme.

Should work fine with mods that change the loot frame such as xloot.

1.1.8:
5.2 TOC update, also got all the new herbs, ores etc.. from Mists added, I am still finding the fish but wanted to get this release for everyone, so please let me know if I missed anything besides those. Also fixed a bug with delete after looting that I missed due to the API change mention in the 1.1.7 quickfix (I had missed it as I don't use that feature so I didn't notice it was not working).

1.1.7q:
Quickfix to fix the AoE looting of coins, since the new API to determine if a loot is a coin or not says AoE looted coins are not coins.

1.1.7:
5.0.4 Compatibility, fixed a couple issues that occured due to the patch such as the options menu being back to a black background, and the bug that was preventing looting due to an API change.

1.1.6:
4.1 TOC update (mod worked fine already), fixed the quest item looting broken due to the removal of some item types (librams) bumping quest items to be 10 instead of 12 (many thanks to those who helped track that down/point it out).

1.1.5:
Archaeology looting, keystones will be in the next release.

1.1.4:
Believe all the new cataclysm profession loot are now updated to pickup with looter, if anyone notices some that are missing please post it either in a bug report on the portal or on the Looter comments.

Archaeology didn't quite make it into this release, as the items for it are considered "currency" and not items per se, I will most definately be getting the 'profession/secondary skill' into the next release, but I didn't want to delay the release anymore while I get that working.

1.1.3:
Fixed mount after gathering/mount with modifier, coincidentally how Looter checks for Useful Extras is neater and more efficient. Thanks to DrGaunt and bmccord from WoWI for their bug reports which helped track down both parts of the issue.

Also added a small check when adding items to the custom loot or blocked loot lists to see if the item is already there first.

1.1.2:
Simply the cataclysm/4.01 compatible release, otherwise same as 1.1.1.

1.1.1:
Fixed Delete Loot and Close Loot to be mutually exclusive (conflicted before when having them both enabled). Added a 'block list', items added to the block list will not be looted regardless of any other setting if using the blocklist is checked. Also added 'loot by quality/rarity', which will loot items of that quality or better (select common and it will loot common or better).

1.1.0q:
Quick fix so that the misc profession loot option will actually loot again, thank you for pointing it out sdwwraith on WoWI.

1.1.0:
Decided to jump the version number with the number of additions in this version, but the changes are as follows:
*Add an item to the item list by itemID as well as by exact name (/looter add itemid, or type the id in the area in the menu for adding items to the custom loot list).
*Ability to change the right-click of the looter minimap or LDB (Titan Panel etc..) to something other then reloadui, right now just to open the menu (as leftclick has always and will remain to do).
*Option to close the loot window after everything that meets current looting criteria is looted (instead of closing it on your own or moving or some other way of just closing the window).
*Option to delete any excess items that don't meet the current loot criteria *Use at your own risk*, this has been tested a fair bit, by blizzard api changes really messing with looting api, it won't hurt your items, it will simply loot and delete any items on a corpse not matching current loot criteria. This can cause things that you may want that just happened to be there to be destroyed (quality items, other things) This is use at your own risk, its great for skinning, and those that hate seeing the sparkles after looting a corpse, but it can be dangerous to the items on the corpse.
*Fixed the already being rolled on bug, and added Dragonseyes to the prospecting loot list.

1.0.18:
Updated TOC and added a toggle for mount after looting while holding a modifier (alt or control), also made it so that mount after gathering only triggers off gathering herbs, ores, or skins (also made it so it doesn't mount after pickpocketing).

1.0.17q:
Quickfix for quest item looting, made a get to Looter's method of GetItemInfo, thought I'd updated all the calls but apparently I missed the itemType call for quest items, my apologies for missing that and thank you for the reports.

1.0.17:
3.2 Compatibility and TOC Update. Added 3.1/3.2 Profession loot (such as Titanium Powder to prospecting which can now be turned in for Jewelcrafters tokens). Removed the don't loot if in-combat check, as the LootSlot API was thankfully changed back to non-protected (as in, won't throw an error if it's called while still in combat). Also now the Loot by value will work without needing any SellValue mod thanks to the items sell value now being obtainable straight from the API. Some code optimization, and finally getting Looter to use the merge method of updating it's settings like my other mods, so no longer need to rechoose your settings after an update (though it might be a good idea to do a /looter reset for this version just to make sure everythings setup). EMLib Update.

1.0.16q:
Quickfix for an error introduced in the last version with the quest item looting code rewrite, with the old function reference still being in, my apologies for missing that.

1.0.16:
Rewrote the Quest item looting code, should no longer have any problems looting a quest item, even if it is one that is not listed on the quest objectives (such as collecting two parts of an amulet which combine into the final amulet which is the only thing asked for in the quest objectives), and the code is smaller to boot.

1.0.15:
3.1 Compatibility, Added loot everything for pickpocketing, in-combat check for looting since apparently they changed LootSlot to a protected api (can't be used in combat), and TOC update.

1.0.13q:
Quick change to when the Mount after Looting is called for those using that option, should be a bit better.

1.0.13:
Black Vitriol was added to the Misc Profession looting section, a mount after gathering option (see the 'remount' feature request on the portal for more information), possible fix for the once mentioned can't autoloot with modifier down issue.

1.0.12:
Updated Health/Mana and Prospecting with WoTLK items, somehow I missed them on the WoTLK release version so my apologies. Also finally updated Looter to use EMLib.

1.0.11:
Added the Milling and Miscellaneous Profession loot toggles, so for all those inscriptionists out there, you can now automatically loot those pigments from your milling. Also the new toggle for Miscellaneous Profession loot will loot those miscellaneous items used for profession such as Hearts of the Wild, Spider Silks, Venom Sacs, Motes, and so on that don't fit in the main loot categories.

1.0.10:
Changed how the reset & update works when Looter detects the users saved variables are from a version older then the current version, specifically, since how the custom loot list works isn't changed very much, the clearing of it after each new version was removed (if a future version does require it, the manual /looter reset still does a full reset, and I'll make sure to let people know to do it). Also implemented a slash command method of adding items to the custom loot list, for example, mouse over an Iron Ore, and do /looter add, and it'll add iron ore to the custom loot list (coincedentally, mouse over the same iron ore, and do /looter remove, and it will remove it from the list). I'll continue working on a way to do this without needing a slash command, but its there for those that will find it helpful.

1.0.9:
Improved GetSellValue support (thanks Cirk for the help), Looter should now work just fine with any GetSellValue mod. Also implemented is 'Loot by Stack Value', you have an item that is worth 20 copper, stacks in lots of 20, thats 4 silver for one bag slot, if your loot value is 3 silver and you have loot by stack value on, it'd loot those items since the stack can be valued over your loot value. Whether you wish to use stack value looting is up to you.

1.0.8:
Release for 3.0.2, might need a quick fix version later depending, it shouldn't need one as everything should be all set, but as I still can't log into my server to test personally I cannot say. Added most known WoTLK Leather, Mining, Herb, Enchanting and Fishing items to Looter, This will currently only be useful to beta testers, but once WoTLK releases in around a month it'll be all set to go for everyone else.

1.0.7:
WoTLK compatible, see readme for details, but essentially it is just a small change to make the mod compatible, it is still fully compatible with the normal live servers, and there isn't really any reason to upgrade to 1.0.7 over 1.0.6 besides to be fully up-to-date and be compatible when WoTLK is actually released (bar major API changes).

1.0.6:
Added the ability for Looter to tell if the version of the User's saved settings is different then the new version and automatically do a reset and update of their settings (you will have to redo the toggles/custom loot list).

Also fixed the three bugs listed on the portal (to summarize, the bug if not using a "GetSellValue" mod, ala informant, itempricetooltips, etc.. The bug where the loot by value wasn't looting based on users value after a reconnect or reload ui, and Looter not looting heavy stones if mining is on.)

1.0.5:
The minimap button can now be shown or hidden at will with the menu or the /looter toggle minimap slash command. Items can also now be looted based on their value, using the menu to set what you want to loot at or above, with slash toggle and menu option to turn item value looting on or off.

1.0.4:
Added code so that the quest item loot list will automatically update on logging into your character, so you don't have to manually update the list or talk to a quest giver first in order to go out looting quest items if you have quest item looting enabled. Slightly changed the text of Prospecting (so people know gem looting is part of that) and the on/off checkbox to be more understandable (checked being on). Found a uncommon but not so uncommon bug where some quest items would not be added correctly on accepting a quest due to cache, and fixed that. Also added a /looter clear slash command to clear the custom loot list without doing a /looter reset (and hence clearing the toggles as well) or having to 'type and hit remove' for each one.

1.0.3:
Well, after a good bit of time (more then I really should be awake) figured out the way to handle the problem of grabbing quest items after getting a new quest (as removing the items not needed was never a problem), so all should be well now there. Next is to find a way for the mod to 'self-update' for people using older versions that upgrade so that it updates the old saved variable to the new with the new toggles. In the meantime, just do a /looter reset after any version that adds a new toggle you'll be fine.

P.S. For anyone that has all autolooting just stop, the above might be the reason, so just do a /looter reset and it should be fine. (Particularly from people updating from versions prior to 1.0.1 with the Looter on/off toggle)

1.0.2q:
Sorry for another quick fix guys, but I'm sleep deprived and forgot to remove another small debug message pertaining to the new quest item updating method.

1.0.2:
Changed the event that triggers the quest item updating, it should now automatically grab the quest items needing to be looted, and take them off the list when they aren't needed anymore, so in essence manually updating the quest item loot list shouldn't be needed anymore, but its still there if needed.

1.0.1q:
Fixed a small bug with the quest item looting conflicting with the user selected list.

1.0.1:
Added a Looter on/off toggle with slash and menu option, so you can turn off looter whenever you want to just loot things yourself, without having to turn all the checkboxes off. Also added checks for when looting everything with shift-key or blizzard's 'autoloot all' toggle.

1.0.0q:
(figured to use q for quickfix rather then jump the version again since it really is just a small fix) Quickfix in the new quest item setting function to remove a small doubling.

1.0.0:
Added Quest item looting with slash and menu option. Also added /looter reset slash command for reseting the toggle options back to default (on) and clear the custom loot list. Also fixed the version command/version number which wasn't updated in the last version. Also implemented a functional minimap button, with right click to auto-update quest loot items based on active quests (see readme for notes on that and the quest item looting).

0.9.6b:
Added Battleground item looting with appropriate slash toggle and menu option, for the moment its only the different items you can loot and turnin for faction quests in alterac valley, if anyone knows of other battleground items let me know (and that doesn't include the corpse insiginia, as it isn't a physical item/end up your inventory).

0.9.5b:
Implemented saved options. All toggle options and the custom loot list will now be saved between sessions. Next on list is hopefully a working scroll box, minimap button, and then item value loot options.

0.9b:
Implemented a functional gui, read the readme for comments on that, but essentially it allows the easy toggling of the different looting options on or off, as well as adding or removing items to a custom loot list. Also added two new slash commands (/looter list custom and /looter toggle status) which will allow people to see whats in the custom loot list, or what loot options are on or off respectively. Next on the list is getting a scroll box in the menu so that people can easily see whats in the loot list without having it sent to chat, and then probably item value looting options. P.S. its 0.9b instead of 1.0 even though everything on the complete by end of Beta is done, because I don't feel that the menu is *really* done till its got the scroll box, and options are saved over sessions (which is almost done, but I'm too dead tired to finish it tonight).

0.2.1b:
oops, my mistake, quick fix to remove a little debug (not to worry haven't found any) line in regards to money.

0.2b:
Finished a working slash command system using /looter, which lets people toggle the different looting on or off. Also added Health and/or Mana potion looting.

0.1b:
First beta release,
Rewrote the code, now also handles Tailoring and Fishing. Currently when looting corpses for Tailoring, or Fishing for fish, it will loot the cloths or fish, but leave the window open with the rest, next on the list is get the GUI working, so that people can choose what exactly they wish to loot.

0.02a:
Second alpha release,
Leatherworking and Herbalism are working.

0.01a:
First release version (alpha)
Mining, Prospecting and Enchanting are working.

I have Looter pretty much good to go, it is updated for new mists materials in each of the looting categories and so far its worked without error for me anyway.

Could you let me know in what circumstances does that error come up? Such as it just every time you loot, looting certain things (bodies, mining ores, etc..), do you have any items in your custom loot or block lists?

I'll keep trying to see if I can reproduce that, either way that should be the last bit before I have the newest version of Looter released. If I can't reproduce it I will release what I have so far in a couple hours, and I can make a quickfix update after tracking that down later.

yes, i know there is no WoD update yet, but looter still works fine ...
except this itemArray "bug", which i still can't reproduce or even guess when it is happening.

That bug is due to 'currency' items that are looted from a loot window that aren't figured for yet (like garrison resource 'currency'), that should be fixed in the release I'm working on now.

I have Looter pretty much good to go, it is updated for new mists materials in each of the looting categories and so far its worked without error for me anyway.

Could you let me know in what circumstances does that error come up? Such as it just every time you loot, looting certain things (bodies, mining ores, etc..), do you have any items in your custom loot or block lists?

I'll keep trying to see if I can reproduce that, either way that should be the last bit before I have the newest version of Looter released. If I can't reproduce it I will release what I have so far in a couple hours, and I can make a quickfix update after tracking that down later.

yes, i know there is no WoD update yet, but looter still works fine ...
except this itemArray "bug", which i still can't reproduce or even guess when it is happening.

Hi, I just found this addon after starting to work on part of this functionality myself. You're a LOT further along than I am.

I have a question for you. I see there's a "delete junk" option, which presumably loots everything and then deletes things that are considered junk afterwards, to allow skinning/mining/herbalising of the corpse. Does your addon have the option of deleting lower value junk that's already in your own inventory, so you can loot more valuable junk from the corpse?

It does have a delete after looting option which will junk anything that was looted off something that doesn't match your current looting criteria (be that of a certain gold/silver/copper value or higher, green item or higher, a mining mat, etc..). It is a use at your own risk feature, but it has worked well and I haven't personally found any issues with it so far, now please take that with a grain of salt as Looter needs to be updated for recent changes as well as a number of my other mods (Looter itself still works fine in mists but it does need updates).

That's basically what I was starting to work on, a way to delete grey items from you inventory when you run out of space, but hopefully comparing the value of what you have to what you could get and deleting whichever one is worth less.

If yours already does that, then I can happily replace my own stuff with it. If not, perhaps I'll try to merge that idea in sometime.

That is a good idea, I've run into numerous situations where I have to make that comparison myself, it "shouldn't" be too hard, I can probably have a test option for it coded in a couple hours, but it will be delayed by that Looter does need other updates as well, and my availability for a long time hasn't been my normal (hence the lack of updates).

I will be trying to get at least Looter, UE and SPB fully updated and out by Monday, including some new features I've been thinking of but haven't had the time to get in there during my absence from WoW.

And to TatsuOni, yes I do fully intend to get this updated and continue with it.

Hi, I just found this addon after starting to work on part of this functionality myself. You're a LOT further along than I am.

I have a question for you. I see there's a "delete junk" option, which presumably loots everything and then deletes things that are considered junk afterwards, to allow skinning/mining/herbalising of the corpse. Does your addon have the option of deleting lower value junk that's already in your own inventory, so you can loot more valuable junk from the corpse?

That's basically what I was starting to work on, a way to delete grey items from you inventory when you run out of space, but hopefully comparing the value of what you have to what you could get and deleting whichever one is worth less.

If yours already does that, then I can happily replace my own stuff with it. If not, perhaps I'll try to merge that idea in sometime.

Looter and Useful Extras have been updated here and on Curse, if you have any issues feel free to let me know, preferably via a feature request or bug report on the portal, but a comment here or private message on WoWI would also work.

I know fishing will be dodgy in Pandaria, I'm still in the process of finding all the ID's for them, but everything else should be fine.

I'm sorry but I can't reproduce this, if I have the quality set to common it only autoloots common or higher.

One possible cause here though is the loot by value options, if the grey items are worth as much as you have set to loot by value (such as loot if worth more then one gold, but also have use stack value, so 20 silver grey items that stack to 5 or more would be worth more then a gold).

Also if Loot by value is on is on, and the value is set to 0 0 0, it will loot everything no matter what it is (put in for those that wanted to be able to loot everything at times or selectively loot at times without turning the mod off).

i use the option to delete left over junk. that doesnt work. but the option to close the loot window does work.

how i can get the delete option to work?

This I can reproduce and should have fixed and working in the upcoming release. It was actually a simple fix and due to the API change blizzard made in 5.0/5.1, but since I don't personally use the delete after looting option I had missed I hadn't updated that bit after the change like I did the main looting.

I have Looter pretty much good to go, it is updated for new mists materials in each of the looting categories and so far its worked without error for me anyway.

Could you let me know in what circumstances does that error come up? Such as it just every time you loot, looting certain things (bodies, mining ores, etc..), do you have any items in your custom loot or block lists?

I'll keep trying to see if I can reproduce that, either way that should be the last bit before I have the newest version of Looter released. If I can't reproduce it I will release what I have so far in a couple hours, and I can make a quickfix update after tracking that down later.

thank you very much
mostly looter ist working fine (espacially after adding the new stuff to loot in the luas). the only (random) non-reproducable error (for me) is something with "itemarray" around line 4XX but it almost never happens and i can't really remember where exactly the error was

My apologies for the long time without updates, quite simply I haven't had an active warcraft subscription for awhile now as work as been keeping me busy, I do now however and should for the foreseeable future, the first order of business is getting the mods updated to the newest WoW patches, while doing that I'll check into the issues posted by shm0.

I hope that I should have an updated version with any necessary bug fixes out by Sunday, and yes I'll be updating it to curse as well once it is ready.