------------------------------------------------------
Fizzwidget Reagent Cost
by Gazmik Fizzwidget
http://fizzwidget.com/reagentcost
gazmik@fizzwidget.com
------------------------------------------------------

Once I'd enhanced my (already quite impressive, might I add) Enchant Seller gadget with the ability to estimate and report a total cost of materials for each enchantment, I knew I had to do the same for practitioners of other professions. After all, enchanters aren't the only crafters who'd benefit from a good helping of Goblin business sense!

Not only will this gizmo keep you informed on the current market price of the materials for all your trade skill recipes, it'll also help you choose which items are most profitable to produce for sale! Go make yourself some gold... and remember to tell the mount vendor Gazmik sent ya!

------------------------------------------------------

INSTALLATION: Put this folder into your World Of Warcraft/Interface/AddOns folder and launch WoW. You'll also need one of Auctioneer (http://www.auctioneeraddon.com), KC_Items (http://kaelcycle.wowinterface.com/), or AuctionMatrix (http://ui.worldofwar.net/ui.php?id=821) installed, if you haven't already. Also having ReagentData (http://www.tarys.com/reagents/) will help in some cases, but it isn't required.

USAGE: 
	- Your tradeskill windows will now display an estimated total cost of materials above the listing of required reagents for each recipe. The current market value of each reagent is calculated based on your auction scan data -- so, as is often the case with auction scanners, the more often you scan the AH, the more reliable your data will be. (A "confidence" percentage score is included in gray next to totals so you can get an idea of how reliable the auction data for a particular set of reagents is.) Auction price is only used for reagents not commonly sold by vendors; since it'd be silly to go looking for (for example) thread, vials, or flux at auction instead of buying from a vendor, the vendor price is used when totaling the cost of such reagents.
	- By typing `/reagentcost report`, you can get a list of all the items your tradeskills can produce ranked by estimated profitability, so you can see which items are worth making and selling on the AH and which (if you're not needing to make them for skill-ups) you might be better off selling the reagents for. By default, this list only includes items for which you have at least a minimal amount of auction data, and only items that can be auctioned for at least a break-even price. See "Chat Commands" below for options. (You'll notice the report also includes precentages in gray: this is the same "confidence" score as in the tradeskill windows.)

CHAT COMMANDS:
/reagentcost (or /rc) <command>
	- `help` - Print this helplist.
	- `status` - Check current settings.
	- `reset` - Reset to default settings.
	- `on|off` - Toggle displaying info in tradeskill windows.
	- `report [<skillname>]` - Output a list of the most profitable tradeskill items you can make. (Or only those produced through *skillname*.)
	- `minprofit <number>` - When reporting, only show items whose estimated profit is *number* or greater. (In copper, so 1g == 10000.)
	- `minprofit <number>%` - When reporting, only show items whose estimated profit exceeds its cost of materials by *number* percent or more.

------------------------------------------------------
VERSION HISTORY

v. 1800.3 - 2005/10/19
- Removed Auctioneer from the Optional Dependencies section of our TOC file, as having it there forced Auctioneer to load on login. Now we observe whether Auctioneer is installed without loading it, and load it if it's not loaded already when you open a tradeskill window (assuming you have showing costs in tradeskill windows enabled) or type `/rc report`.
- If we can't find compatible versions of Auctioneer, KC_Items, or AuctionMatrix installed, we don't complain about it until you try to show a tradeskill window (assuming you have showing costs in tradeskill windows enabled) or use one of ReagentCost's slash commands.

v. 1800.2 - 2005/10/17
- Compatible with Auctioneer 3.1. (If you're using Auctioneer as the data source for ReagentCost, this version is now required.)
- Compatible with KC_Items 0.93. (If you're using KC_Items as the data source for ReagentCost, this version is now required.)
- Compatible with AuctionMatrix v8. (If you're using AuctionMatrix as the data source for ReagentCost, this version is now required. AuctionMatrix hasn't been updated for WoW 1.8 compatibility, but v8 works with ReagentCost if you use some sort of workaround to get Blizzard_AuctionUI to load before AuctionMatrix.)
- Fixed an issue where we'd sometimes incorrectly report "insufficient data" for recipes that include vendor-supplied reagents.
- Further refinement of our algorithm for when to trust reagent prices or "sub-reagent" prices (e.g. Bolt of Silk Cloth vs Silk Cloth).
- Fixed an error that could be reported if ReagentCost's display in the TradeSkill/Craft windows was turned off.

v. 1800.1 - 2005/10/11
- Updated for WoW patch 1.8.
- Typing `/rc <item link>` will now output a brief report on the reagents used to craft the item, their estimated costs, the estimated resale value of the crafted item, and the estimated profit/loss if you were to buy all the reagents, make the item, and then auction it.
- General improvements to utility code shared with other Fizzwidget addons (GFWUtils and GFWTable).

v. 1700.3 - 2005/09/24
- Added an additional measure to prevent inappropriate chained trusting of reagent prices, as some Leatherworkers were still seeing recipes whose estimated cost was much higher than expected (due to being based on the cost of some huge amount lower-level leather instead of the correct higher-level leather).
- Compatible with Auctioneer 3.1 beta, and fixed a nil error that appeared when trying to look up sell-to-vendor prices in Auctioneer 3.0.x. (Thanks, Norganna!)

v. 1700.2 - 2005/09/19 (Arrr!)
- Added a measure to limit trusting of chained reagent prices. In other words: we'll trust the price for [Silk Cloth] instead of [Bolt of Silk Cloth] in recipes that use it if it's more reliable, but we're less inclined to use the price of [Light Leather] in estimating the cost of a recipe that uses [Medium Leather]. (Leatherworkers were seeing massively inflated price estimates because we'd sometimes follow the chain all the way down in recipes that use high-level leather.)

v. 1700.1 - 2005/09/13
- Updated TOC for WoW patch 1.7.
- Oops! ReagentData was noted as being optional (and effectively was in the code) in 1600.4, but I forgot to change it to optional in the TOC file. Fixed.
- Cleaned up code shared with other Fizzwidget mods; should no longer produce cryptic error messages if you don't have the latest versions of everything (starting with version 1700.1 of all mods).

v. 1600.4 - 2005/08/27
- Now supports AuctionMatrix or KC_Items (with its KC_Auction module) as alternatives to Auctioneer. 
- We now keep our own (more accurate) list of primarily-vendor-bought reagents (flux, thread, vials, etc.) and their baseline prices; ReagentData is thus no longer a required dependency. (If you have it anyway, you'll get more descriptive messages if `/rc report` encounters an error.)
- Code cleanup and standardization among Fizzwidget mods.
- Supports wowguru.com's UI updater utility (and potentially others).

v. 1600.3 - 2005/08/07
- Much stricter error handling; should no longer hang/freeze/crash WoW when opening tradeskill windows or requesting reports. Should also provide more helpful error messages when a report can't be produced.
- May take an extra second or two to gather data when opening a tradeskill window for the first time. (One of the crash/hang issues involved scanning data too fast.) You probably won't notice this if you're using the tradeskill window normally, but if you request a report and it says you need to open a window that's already open, just wait a couple of seconds before requesting it again. 
- Added an extra command, `/rc reagents [<skillname>]`, which outputs a list of all the items you can make (or all the items for *skillname*) and the reagents needed for each. (Added as a debugging utility, but may become more useful in a future release.)

v. 1600.2 - 2005/07/27
- Should fix a problem where you'd get an error, hang, or WoW crash when we couldn't find data for something.

v. 1600.1 - 2005/07/25
- Initial release.
