FuBar - GarbageFu

FuBar - GarbageFu is a plugin to FuBar 2.0 that helps you clean your bags of Garbage by letting you drop the least valuable item/s. Or if you are at a merchant you can simply select to sell all your Garbage to him by pressing a button.

Feedback and feature requests are needed.

Features:

Drop least valuable item.
Shows all items that can be dropped along with there total value in a tooltip.
Sell all that are shown in the tooltip or all grey items to a vendor with the press of a button.
Select what to drop and what to keep by Sets, Type, Items and Quality threshold.
Supports several addons for retrieval of price information, including it's own.
Select sets of items to use auction price for instead of vendor price.
Select item quality threshold for when to use auction price instead of vendor price.
Supports Autioneer, KC_Items and WoWEcon for Auction prices.
Display total/free/used bag slots on the toolbar.
Toggle bags display.

Long Description:

Selection of what items to drop are made in the following way. (By decreasing priority)

Keep Items List.
Select to keep an item that would otherwise be dropped.

Drop Items List.
Select to drop an item that would otherwise not be dropped.

Keep Type list.
Select types of items to keep.

Keep Sets List.
Select sets of items to keep.

Drop Type List.
Select types of items to drop.

Drop Sets List.
Select sets of items to drop.

Quality Drop Threshold.
Set the default quality threshold for what items to drop. Default is poor quality item.s

Tooltip that shows all the items in your inventory that can be dropped with the current selections.

By Left Clicking the mouse while holding down shift on the toolbar will drop the item on the top of the list, or sell it if you have a merchant window open. You can also left click the mouse while holding down shift on the Tooltip to drop or sell a specific item in the list.

By left clicking the mouse while holding down control on the toolbar or the tooltip will add that item to the keep items list, those preventing that item from being dropped or sold.

When you have a merchant window open you also have the ability to sell all the items that are shown in the tooltip by either selecting 'Sell All Garbage Items' in the drop down menu, or by clicking the 'Sell All Garbage Item' button on the merchant window. Button on the merchant window can be turned off. You can also select to only sell grey items.

Auction values are collected from Auctioneer, KC_Items or WoWEcon. For Auctioneer you have two way, either directly or cached. Directly requires that Auctioneer is loaded at all time, while cached only requires Auctioneer to be loaded when you want to update what items you want auction values for or when have scanned the auction house to update with updated values. GarbageFu will automaticaly update item values after you scanned the auction house. (WoWEcon don't have a auction house scan. Personal opinion on WoWEcon is that it sucks big time)

You can select what items to use auction prices for by Sets, per item and by quality threshold. If there is no auction value available the vendor price will be used.

You can change in which order GarbageFu will ask both the vendor price addons and auction house addons. Example: You have both Auctineer/Informat and KC_Items loaded and you want vendor prices from KC_Items but auction prices from Auctioneer, just set it up so KC_Items is higher in the list for 'Vendor Addons' option and Auctioneer is higher then in the 'Auction Addons' options. It will then get vendor prices first from KC_Items, and only if it dosn't exist there it will look in Informat/Auctioneer. You can also select to not use a vendor/auction addon by setting it below 'Don't use addons below' in the 'Vendor Addons'/'Auction Addons' in the options. Only addons loaded will be shown in the options. Addons are added when they are loaded (even on demand).

You also have the ability to enter your own price for an item. That price will then override any price gotten from other sources. Price overrides are stored per account, so you only need to enter them once.

Settings are store per profile, so you can choose to have different settings for different chars/classes.

Optional display of Total/Free/Used bag slots. Does not include any ignored special bags. (Ammo, herb soulstone, enchanting).

Double-click to toggle bags. (Does not toggle any ignored special bags)

Sets functionality uses PeriodicTable by Tekkub.
Some code borrowed from ItemizedDeduction by Tekkub.

There are currently no Auto-drop functionality. If it is requested it will be added later.

Installation:

Just unpack in your Interface/AddOns/ folder. No dependancies, all required libraries are embeded.

In the works:
Nothing. Working on some new projects

Know issues:

Auction quailty threshold dosn't work for caching auctioneer.

Patch notes:

2.0.20634
More debug code to try and catch the wrong item error. Warning, special debug build. Will do a complete item check every 60 seconds. May cause lag.
Added check to "Sell All Buttom" that I had missed the last time.

2.0.20111
Hopefully fixed the problem with GarbageFu getting out of sync with what's actually in your inventory. Extra checks still in place.

2.0.19988
Added extra checks that it's the right item that is dropped/sold. Will warn if it detects an inconsistancy in it's data and refuse to drop/sell the item if it dosn't match what it thinks should be in that bagslot.
Fixed the nil,nil,nil prints. (Was an api change in AceConsole-2.0)

2.0.19420
Removed the use of Compost. Not needed since we have lua 5.1.
Fixed a small typo that showed up when Compost was no longer functional.

2.0.19164
Updated toc for WoW 2.0

2.0.16966
Upgraded to AceLocal-2.2 and AceHook-2.1. Fixed TBC compatibility.
Note: You need to remove the embeded Ace2 libs and install the Ace2 TBC standalone version and update the .toc to interface 20000 to get it to work in the TBC beta

2.0.11635
Added recipes as auction set.
Removed Ammo from drop/keep set since it's available in keep/drop type (that is faster to check).
Updated for lua 5.1
Added bag slots display (Total/Used/Free).
Double-click to open bags.
Fixed issue with settings not being saved in the right profile. (Was an issue with FuBar not setting the profile for a new addon)
Added German translation. German translation by Dermott <Azeroths Plage>

1.0.10349
Added support for ItemSync.
Fixed Sell All Items button to only show when there are items to sell.
Added total value of items to sell to the tooltip of sell all items button.

1.0.9990 First non beta release.
Support for more vendor price addons. Including it's own.
Use of Item icon on the toolbar instead of recycle bin.
Option to only autosell grey items to vendor.
Reverted back to AceLocal-2.0 (Since it appears to be faster now)

The PeriodicTable-3.0 folder and LUA file are existant in the GarbageFu Addon folder, but it won't let me use it. Thought I'd post it here to see if anyone else had this problem and was able to fix it.

Getting an error, no message, just an error in the chat log, and only every once ina while. Expected item X in bag X slot X, but got nil. Cant be sure, but it might have something to do with Advanced Bags Plus, though i have been using this mod for a while now, and this hasnt happened before, just the only thing i can think of.

Also, only a minor annoyance, but the option for the "Sell all" button on vendor window, will not stay off. I uncheck it but when I re-log, it is turned back on, although it isnt actually checked. I prefer using KC'sauto-sell feature as it sells everything at once, instead of one by one, so if that could be changed, it would be all the same, because honestly, I'd rather have that incoporated adn be using one less mod.

FuBar - GarbageFu: Error! Expected item [Mageweave Cloth] in bag 0 slot 15, but found nil
FuBar - GarbageFu: Item inconsistency found. Doing a complete rescan. Please report the errors along with what you did the last minute before it happened.

I was skilling up first aid making Heavy Mageweave Bandages. I had just finished banking where I swaped a few potions into the bank and got some additional mageweave cloth out to make the bandages. I *think* that I had just created my 21st bandage (new stack) when the error fired. Took a screenshot with inventory, first aid, and chat window open, if you want it just pm me.

Hope that helps

Edit: Got another error...same text but expected Plaguebloom in Bag 1 slot 15. I was using CT_Mail_Mod's "Mass mail" tab to send multiple items (different stacks of herbs) to an alt

Asta's post looks to be before 2.0.3, so in al fairness, mine was working fine before the patch to. But again, post-patch it has those minor bugs i mentioned and I hope they get worked out soon, love the mod.

Problem with the latest patch, getting an error message (ill post soon) when double clicking on the icon/text to open all bags. It only opens one bag, main backpack, and only displayed total bag slots for the main as well.