GetReagents is a simple reagent restocking utility.
It can auto-stock any item which can be bought at a vendor. While it does come pre-loaded with known reagents for each class (initially set to a stock of 0 for safety), you can add any item you like to the list.
/reagents or /getreagents will open the configuration GUI.* From it, you can change each reagent's stock amount, add new reagents, or remove reagents you will no longer use (see screenshots).
Add Stuff
To add an item, you can either use a slash command with an item link, or the itemID if you know it. To use the slash command simply type /reagents and then shift-click the item you wish to add to the list: /reagents [itemlink] . If you know the itemID, you can open the GUI and enter it in the appropriate box.
Items added to the list do not have to be reagents, specifically. You can add food, water, arrows... Anything a vendor sells can be stocked.
Remove Stuff
To remove an item, open the GUI and select the item you wish to no longer purchase. If you might like to purchase it again in the future, you can simply set the quantity to zero. If you have no intention of ever buying it again, and just want it gone from your list, click the delete button.
Purchase Confirmation
If you do not enable the Confirm purchase option, GetReagents will silently restock your purchase list when the items are available at the vendor. If you would like to decide if the purchases should be made, you can enable this option. GetReagents will open a dialog asking for permission to buy the items.
Confirmation Details
If you would like even more control over what GetReagents purchases, or are simply curious how many of what are being stocked, you can also enable confirmation details. If enabled, the confirmation window will list each reagent it wants to purchase, and allow you to buy them individually, or simply buy them all.
Overstock
GetReagents will not stock more than you specify, so if purchasing more will put you over the stock you set, GetReagents will not buy more. For example, vendors sell [Ice Cold Milk] in stacks of 5. If you have a stock of 20 set, and there are 18 in your bags, GetReagents will not make a purchase. However, if you had 13 in your bags, GetReagents would only purchase one stack of 5, for a total of 18.
------------
* While GetReagents and GetReagents_Options both have little memory footprint, if you choose to do so you may disable GetReagents_Options. GetReagents will stock the amount of reagents you have previously set even without the GUI loaded. You will not be able to access the GUI or change reagent values without it, but it is not necessary to be loaded at all times. Many users will have no need to access the GUI after initial setup, and this allows them to free up the memory used by it.
Change Log - GetReagents
r217:
- Moved bad itemid sanity check to an earlier occurrence to prevent them from slipping through and erroring.
r216:
- Fixed nil value error when deleting a reagent.
- Introduced an option to change the background color of the confirmation window.
- New option to show detail on the confirmation dialog, which will list a breakdown of each reagent to be purchased, with the ability to purchase them individually.
- Removed slider for setting quantity, replaced with an edit box, allowing the user to enter any number they wish (cap removal).
- Enlarged the delete button.
- Inset confirmation options, so they hopefully appear to be more like suboptions of the parent checkbox.
- Added several tooltips for various components to help further explain their functionality in-game.
- Eliminated redundant tables with frames in them for quantity editing. I'm not sure why they were a good idea to begin with...
- Fixed (now) redundant hiding of reagent editing controls.
- Added visual feedback for each menu item, displaying the quantity currently set.
- Removed the Add button for itemid-based adding of reagents. You can simply press the enter button to add the item.
- Simplified the text in the itemid-based reagent adding edit box, as the new tooltips provide the extra information.
- Cleaned up addon description page.
r202:
- Add /reagents [itemlink] to add an item to the purchase list without need for obtaining the itemID.
- Modified add reagent text to indicate reagents can be added with a slash command.
- Moved reagent delete button to a more intuitive location.
- Removed current stock display from slider caption.
- Added dynamically updated edit box with which exact stock can be set.
- Ensured edit boxes can only be submitted with proper values (I think I caught them all).
- Force edit box hint text to return after focus leaves the control.
- Shortened a few variable names.
r199:
- Removed erroring poison itemid's from pre-loaded reagent list.
- Added a check so as not to error from a bad itemid, and remove it from the reagent list as well. If this occurs, you will receive a chat message informing you of the item's removal.
- Fixed pre-loaded reagent persistance. Pre-loaded items will remain deleted after you delete them now.
r198:
- Fix for confirmation math. *makes more coffee* >.>
Originally posted by cawfee This is nice, I've been looking for an all-class EasyPoisons for a while now. Thanks for your contribution C:
Speaking of poisons, I had meant to log into a rogue to test them since they had a large number of default poisons. Since you reminded me, I went ahead and did so... Turns out some of them don't exist for some strange reason? For example Wound Poison 4 and 6 exist, but not 5 (using WoWHead's itemid). Very strange. Anyway, this tosses an error pre-r199.
I've removed the offending poisons as well as added a way for the addon to purge bad itemid's and not error out in the event that a user tosses in a bad itemid or the addon comes with any other pre-loaded erroring itemid's. Sorry for the problem there.
I also realized that my old saved variables code isn't too spiffy for setting the reagents, and I switched to a more intuitive approach. This will ensure that any default reagents which you manually removed will not reappear the next time you load the addon up.
This stuff's all fixed in r199, which I'm currently submitting. Thanks for the patience everyone. I'm glad you're enjoying the addon and hope I can do whatever I can to make it bug free.
__________________
We'd be together, but only diamonds last forever...
Originally posted by Zidomo it does not look like this mod can ask you to confirm the reagent purchases before it does it.
You would be correct, it does not pop open any confirmation. Since you have to manually change stock amounts from zero, as well as add other items, I didn't think it really needed one. I can understand your concern, and it would not be too difficult to implement such a confirmation. I'll toss one in (which can be toggled on/off) in the near future, I suppose.
EDIT: Blargh. I got bored and had some free time. Enjoy in r197+.
__________________
We'd be together, but only diamonds last forever...
Looked through the code and it does not look like this mod can ask you to confirm the reagent purchases before it does it.
There are a million different reagent restocking mods out there and nearly all of them don't confirm with the user before auto-restocking. Meaning they unnecessarily resupply if you don't want to do it at a particular vendor.
The now-discontinued (but still working in WoW 3.1.2) BuyDropper is the only reagent restocker I've come across that can ask you for confirmation before restocking when opening a vendor window. It does so by putting up a frame with "Yes" & "No" buttons when opening a vendor. Its invaluable for people (like me) who like to be prompted before purchasing.
If you could add this single feature to GetReagents, it would be the new restocking mod ticket .