(226 Kb)
Updated: 04-10-17 01:05 PM
File Info
Tomb of Sargeras (7.2.0)
Return to Karazhan (7.1.5)
Legion (7.0.3)
Updated:04-10-17 01:05 PM
Categories:Auction House & Vendors, Bags, Bank, Inventory, Utility Mods

Reagent Restocker  Popular! (More than 5000 hits)

Version: 10.3
by: CobraA1 [More]

Reagent Restocker is a simple addon for automatically purchasing items, selling unwanted items, and repairing. Unlike many other similar addons, Reagent Restocker supports drag and drop and has a full GUI for editing buy/sell lists.

If you like it, feel free to donate! I highly recommend donating to your favorite addons, it really helps. If every person who downloads this addon donates as little as $1 per month, I could actually work on this addon full time. As it stands, however, it's actually kinda hard to justify putting much time into it at all.

Reagent Restocker now has Google+ and Facebook pages! News, notes, and patch releases will be posted to Google+ and Facebook.

NOTE: I've been seeing copies of Reagent Restocker popping up at other download sites. The only three places I currently upload the addon to are curse.com, wowinterface.com, and solidice.com. I cannot guarantee the integrity of any other download sites.

What can you do with Reagent Restocker? Well, you can do the following:

  • Automatically buy items from vendors.
  • Automatically sell items you can't use.
  • Automatically fix your gear.
  • Warn you when you're getting low on items you automatically buy.
  • Use LDB to show your current stock of items.
  • Automatically mark items in ArkInventory as trash (Note: This feature is maintained by the authors of ArkInventory).
  • Access it via the minimap (must have LibDBIcon installed).
  • When automatically buying water, it can automatically update the buy list to the latest usable water by your character.
  • Stock excess items in your bank or the guild bank.
  • Control buying/selling/repairing based on vendor discounts.
Devs wanted! It's open source, and I've been busy with other things in real life. I'm willing to add more members to the team. Must have a CurseForge account.

If you have LibDBIcon or a LDB compatible bar installed, you can access Reagent Restocker simply by clicking on the icon. Otherwise, you can access it via slash commands.
To start using Reagent Restocker, type /rr at the command line. /rrstock and /reagentrestocker also work.
Raid Roll users: Reagent Restocker may take over /rr - if that happens, use /rrl for Raid Roll.
/rrbuy and /rrsell add items to the sell and buy lists (thanks g3gg0)

The primary portal for Reagent Restocker is at curse.com, even though I also publish the addon to wowinterface.com (the old portal) and solidice.com, and may publish to other places in the future.
The public facing page is here: https://mods.curse.com/addons/wow/reagent_restocker/

The development pages are here: https://wow.curseforge.com/projects/reagent_restocker/

While Reagent Restocker is an open source addon, I do take donations.
Reagent Restocker has its own pages on Google+ and Facebook:
NOTE: I've been seeing copies of Reagent Restocker popping up at other download sites. The only three places I currently upload the addon to are curse.com, wowinterface.com, and solidice.com. I cannot guarantee the integrity of any other download sites.

Updated TOC.
Fixed minor bugs.
Updated website to WoW Interface until I can regain control of my curse.com account.

Updated TOC
Sorry, that's all for now.

Code cleanup, prints message that reagents have been deposited into Reagent Bank.
Fixed stocking from bank.
Fixed automatic moving of reagents to reagent bank.

Fixed bank overstocking
Updated icon
NEW: You can now instruct Reagent Restocker to automatically move reagents to the reagent bank! The new option is in the "Bank" section, and is off by default.

Misc minor bug fixes.
Moved documentation to Markdown. Compatible with Curse, and easily exported to WowInterface and SolidICE.

Removed guild level code, since that functionality has been removed as of Warlords of Draenor.

Bug fixes.
Official release for patch 6.0.2.

v8.4 Beta
Bug fixes and compatibility fixes

v8.3 Beta
Updated for compatibility with Warlords of Draenor beta.

Updated TOC.
Minor UI tweaks.

Updated TOC.
Sorry for the infrequent updates. This is a volunteer thing, it's hard to give it a lot of time.

The ability to keep Soulbound and Bind on Equip items is BACK!! After a rather lengthy debugging session and the help of the Blizzard forums, I was finally able to track down and fix the bug that was preventing tooltip scanning from working.

Updated TOC.
Relaxed the restriction on guild bank withdrawls. Reagent Restocker will now use all except the last withdrawl for automatic processing.
Various optimizations.
Changes made to event processing in an attempt to make overstocking more reliable.

Added monks to automatic selling of useless items.

Profile support added! Now you can save, load, and remove profiles that are shared between characters!
Updated database to use names instead of numbers everywhere.
Added Facebook to "About" section.

Not using Google+? Reagent Restocker now has a Facebook page! facebook.com/ReagentRestocker
Simple and flat is in - Reagent Restocker has a new icon. Works better for the larger minimum photo sizes that Google+ and Facebook are requiring, and has a slightly lighter blue for more contrast with the black border.
Updated TOC for most recent version of WoW.
Since this is a non-code update (mostly news and TOC update), only incrementing the minor version number.

Found a computer to test WoW with, so I can still code in a limited capacity.
Hopefully fixed database upgrade bugs.
Fixed cache bugs.

NOTE: This is the last update for a couple months. I am moving, and my computer won't be available to me for a while.
Fixed potential error in UI.
Fixed: Caged battle pets would cause an error.
Ugly window is . . . less uglier. Still not where I want it to be yet, but making progress.
Added database consistency check, which will run once for this version. Can also be activated manually.

Remove rogue poison warning from description. Apparently they don't use reagents anymore.
Fix playerEnteredTime bug. Not a complete fix, but should stop the error.
Despite switching to a "Chrome like" version numbering, this seems rather minor, so don't increment major version.
Withdrawing World of Addons support. Alas, they are not acting legally. See the Google+ page for details.

Allow players to disable the new UI. I reserve the right to remove or reset this option eventually when everything is finished.
Allow enabling of debug logging. Note that this is EXTREMELY spammy and may affect the performance of the game. It is is used for my own debugging purposes. What appears in here can be pretty much any debugging info I need at the time.
Version numbering based on Google's Chrome browser is now in effect. Expect the "major" number to be updated more often. I don't think I'll be updating as fast as Google, though :).
This version will be uploaded to World of Addons when they confirm my claim to ownership of Reagent Restocker.

v2.7.4 beta
Updated to Ace 3 r1059. Worked with author of Ace to resolve the issue.
This also fixes the known bug with missing buttons.
Various UI tweaks.
If all goes well, Reagent Restocker 3 will be released on Monday. That way, when the servers are back up, you'll be ready with a new version of Reagent Restocker :).
And for the second time in Reagent Restocker's history, I'll be changing the versioning again. Going to a Google like system. Major number will be public releases, minor number will be betas. Alphas will stay the same, as Curse controls the version numbering of alphas. This will start with Reagent Restocker 3's release.

v2.7.3 beta
Fixed reported bug.
Changed all instances of UIPanelButtonTemplate2 to UIPanelButtonTemplate, for compatibility with Mists.
Re-added items in "About" menu. It was a genuine bug on Blizzard's part that they stopped working.
Updated TOC to indicate compatibility with Mists.
KNOWN BUG: The buttons to remove items are missing. This is because the included version of Ace3 is incompatible with Mists.
Ace3 update may happen later rather than sooner, as updating it breaks Reagent Restocker.

v2.7.2 beta
Fixed drag and drop not working with merchant.
UI2.lua wasn't included in the previous betas, added.
New frame now has scrollable list, buttons that will eventually become tabs.
New frame can be used to add/remove items from the different lists. Defaults to the Buy list.
Other minor changes.

v2.7.1 beta
Further work on new frame. Sorry it took so long to get back into it, it's hard to do a lot of programming these days.

v2.7.0 beta
Back in beta for new functionality!
Preliminary Mists of Pandaria beta fixes. The little +'s that appeared in the UI are gone, and unlikely to come back.
Working on new frame for merchants. This will replace the little "+" symbols, and allow you to access RR right from a merchant, rather than from the rather klunky window used by the Ace libraries.
If this works, it will eventually lead to Reagent Restocker 3.
Fixed a rare bug.
Fixed ticket #96 - error on opening bank if not all bank slots purchased
As a result of fixes for MoP, some of the information in the "About" menu is missing. I'll bring the info back when I have a fix.

Removed debug statement that was causing an error.
Fixed the error itself.
Updated Ace libraries.
NOTE: Ace added new files, you have to restart WoW for this update!
Minor UI layout changes. Ace has new features! I may use them more in the future.
Updated news page, I think it was a bit too long, needed to be simpler, and needed to be more focused on what Reagent Restocker does.
Removed Flattr button from news page, nobody was donating regardless. It's pretty tough getting donations. I'll just stick with the built-in donation system. You can still Flattr Reagent Restocker by the donate link on the Google+ page, or directly from the Flattr website.

Reagent Restocker shouldn't try to place things in special bag types.
Only waters in the Buy list should now be upgraded. (NOTE: I am not levelling an alt, so I can't test)

For now, BoE, Soulbound, aren't gonna happen. Instead, limit what is automatically sold by item quality.
Attempt to fix sandboxing bug.
New icon! The icon for the single LDB icon has been changed from an in-game icon to a custom icon. Comments welcome. Original SVG included - created in Inkscape.

Updated TOC for 4.3. Seems to be working fine.
Added compatibility information for Addon Control Panel.

Reagent Restocker now has a Google+ page! Added to About page.
Reagent Restocker now detects when an item in its database is outdated. If you see "(outdated)" text next to an item, it might not be in WoW anymore.
Reagent Restocker wasn't searching the bank itself for items, fixed.

Receipt tweaks. Still needs more work.
Required discount is now reputation. Messing around with formulas turned out to be totally unnecessary. Keep It Simple.

BoE and Soulbound detection disabled until it can be fixed. Sorry, it never really worked anyways.
Fixed water not upgrading to current player level.

Fixed not displaying the cost of repair.
Fixed rrbuy/rrsell.
Trying to account for guild perk "Bartering" again.
Fixed sometimes not being able to add items to the list via text box or rrbuy/rrsell.
Finally figured out what was causing the water upgrading bugs. Fixed.
BOE / Soulbound bugs not fixed yet.

Removed "TotalBiscuit approved!" from top of changelog. He doesn't play the game anymore anyways, and honestly my quality has been lacking the past few releases.
Hopefully fixed issues with slash commands not working correctly.
Fixed error with opening guild bank.
Fixed profit calculation when repairing.
Water upgrading and BOE/Soulbund bugs not fixed yet.

Fixed libraries not loading if it's the only addon loaded.
Fixed "attempt to index global 'RRGlobal' (a nil value) ". Required a new event system that handles Lua environments properly.

Attempt to fix error involving RRGlobal.
Reverted a change to buying based on vendor discount. Need to invetigate the "Bartering" guild perk a bit more.
Fixed some code that was creating an error when it shouldn't.
Fixed colors appearing as strange numbers and letters in "Quality to sell" slider in selling options.

Fixed water upgrading.

Possible fix for an error.

Fixed Guild Bank.
Item stacking should now be a little bit better when automaically withdrawing/depositing items to/from bank or guild bank. Still working on it, though.
Fixed database update code.
Lots of changes to the code dealing with banks and guild banks, hopefully fixing a lot of issues. Unfortunately, there are still some remaining bugs, but it should be better.

Reduced loading time when database doesn't need an upgrade.
Reduced memory footprint by unloading the database upgrade code after it's finished or if it isn't needed. Probably isn't much, but the upgrade code is getting longer with each database update.
Decided that recording debugging messages constantly even while not debugging shouldn't be done, as it's essentially a memory leak.
Rewrote a lot of item queueing code. There's a lot of junk commented out increasing the file size a bit, but I'll clean that up soon.
You WILL need to restart WoW for this update. Don't attempt to upgrade while WoW is running.

Forgot to turn off debugging!!

Fixed receipt message appearing when there is no receipt.
More code in different files, to make things a bit easier.
Rolled back the really buggy rewrite of the bank code, moved it into a new file.
Then rolled it forward again, as I've changed too much to be able to roll it back without consequences.
There are some extra, unused files as a result, which I'll delete when I'm sure everything is working.
Fixed print statement claiming gear has been fixed when it really hasn't. Again. Hopefully this time it's really been fixed.
NOTE: There are still some known bugs in this release, in particular when it comes to moving items to/from the bank. They're some pretty tough bugs, but I'm working on them!

Telling it not to repair with own funds after a guild bank repair fails should work now.

Hopefully now correctly accounts for the guild perk "Bartering" at level 24.
My guild is NOT at level 24 yet, so can't test it!!
Fixed print statement claiming gear has been fixed when it really hasn't.
Well, it's been tested enough as a beta, releasing as stable.

v2.5.7 Beta
Database changes towards the goal of making it easier to work with.
Adding items by typing in name was broken. Fixed.
Fixed item caching issue accidently adding items to item list.
New option to automatically upgrade water.

v2.5.6 Beta
Bug fix creating new database.
Updated toc file this time.

v2.5.5 Beta
Fixed bug 68 - Selling items doesn't always give receipt.

v2.5.4 Beta
More bug fixes.
Extra database integrity checks and fixes.
Should be the last of the known bugs - please report if you find more!

v2.5.3 Beta
Fixed 55 - Lists not updating immediately.
Fixed 62 - Sub-optimal handling of guild repairs option
As far as the UI is concerned, buying and selling is now based purely on the tag system. Hopefully this should clear up some weird behavior and bugs.
Test release - 2.5.3. Let's see how this repository thing works, eh?

v2.5.2 Beta
More unused code removal.
Updated interface version.
Unified file loading into the XML file.
Lots of file restructuring, to make future development easier.
Less reliance on Ace libraries.
Easier event handling (WIP).
Debug printing now a different color (not visible unless debugging is turned on).
Beginnings of a testing framework. See if I can do some test driven development for better code quality.
Fix crashes when adding/removing items from lists.
Fixed some cases of "You are attempting to begin too many transactions in a short time" - hopefully it won't break anything else?
Fixed buying items that use alternative currencies. Adding alternative currency support would likely be complex, so for now they're not supported at all.

v2.5.1 Beta
Fixed some pesky bugs.

v2.5.0 Beta
Moved BoE and Soulbound checks inside of API function for more accurate reporting to other addons.
Removed unused "package" system.
Removed more commented out and unused code.
Decided I'm moving to the tag system - it's fast, effective, and works. It's a bit of a space/speed tradeoff, but it should allow me to remove some deeply nested loops that hurt performance.
New: Reagent Restocker now has access to a database shared between characters, currently used for global caching and will eventually make copying lists between characters possible.
Various other tweaks.
The Reagent Restocker LDB item is now always available.
Added support for launching Reagent Restocker via a minimap icon (requires LibDBIcon-1.0).
Started work on support for guild bank. Unfortunately, due to technical reasons, it's gonna take a while to get it implemented.
Lots of new stuff, likely lots of bugs, so make this a beta.
Option for automatic adding of items to selling list moved to misc menu, in a less prominent position. I really want to discourage using this feature.
WARNING: This update includes rewriting some of the base code, which was needed to make the guild bank feature possible. Some behavior may have changed for restocking to/from the bank.

Bug fix: Don't sell items in buy list.

Fixed shaman armor proficiencies.
Moved some receipt code.
Removed garbage collection calls. The tooltip issue is fixed and the code is a bit more optimized now, it shouldn't be a problem anyways. And it's just plain better programming to let the incremental collector do its job. In any case, CPU usage affects performance a lot more than memory usage. If you're hitting the swap file a lot with an addon that only uses kilobytes or even a few megs, you have bigger problems and the addon should be the least of your worries.

Collect garbage after loading/upgrading database.
Performance tweaks and memory usage tweaks.

Commented out more unused code.
Check for existing LDB objects before creating new ones. Should reduce delays, use less memory. I am aware that there are still some memory issues, I am trying to find them.
Receipt code now uses several lines instead of one big message.
Started some new code for receipts - the plan is to eventually allow players to be able to keep previous receipts (optional, of course). Not available in the game, but may affect download size.
New features: Don't sell soulbound or bind on equip items. I went into the deep, dark depths of tooltip scanning. Not an easy thing to do. But I did it. This also means I can scan for other things in the future :).

Minor bug fixes.
Fixed tooltips.
Got the message loud and clear on the new receipts - reverted some of the code until I can have something better and more complete in place.

Sliders now support tooltips.
Added ability to automatically sell higher quality items.
Added ability to automatically sell food or water. If you want two options (one for food, the other for water), you MUST have the Periodic Table library (version 3.1) installed. Otherwise, your only option is to sell both or none.
Upgraded Ace to current version (r981) to fix some bugs.
New feature: You can now add items to the shopping list directly from a shopkeeper's window.
Receipts now open up in a new window rather than being dumped in chat. In the future, I may add an option to save them.
Various UI and code tweaks.

Forgot I was using the even/odd version numbering system.
Fixed broken faction discount description.
Removed debug info.

Code reduction: Removed some uneeded files.
Added option to automatically sell unusable armor/weapons. WARNING: Mostly untested! I don't have characters of all classes. Based on WoWWiki's tables. Doesn't work for relics.
Fixed a minor spelling error.
Fixed bug adding items to exclusion list.
Happy Thanksgiving to those in the USA (or anybody else celebrating a similar holiday) :).

Updated TOC - I tested it in Cataclysm beta, it works.
Removed beta tag to make it the official current version. It's stable, even if it's not where I want it to be.
Removed options to show debugging info and the "new UI" which might not happen anyways.

v2.3.3 beta
Added UI info to "about" info.
Fixed Cataclysm bug due to API changes.

v2.3.2 beta
Minor bugfixes.

v2.3.1 beta
Minor bugfixes.
Upgraded Ace to current version (r942)
Added Ace info so I know what RR's currently using.

v2.3.0 alpha
Minor tweak to "receipt."
Reworked global function calls, hopefully for a reduced memory footprint.
Beginnings of new UI - NOT FUNCTIONAL! Only available using a button from the old UI.

Automatic destroying of items fixed. WARNING: Destroyed items cannot be recovered. It should show a dialog box before destroying items.

More detailed sale report.
First attempt at automatic destroying of items - dialog box appears, and function tries to run, but for some reason it won't work.

Found new method of detecting whether a vendor is willing to buy an item - hopefully, this will fix a bug and enable a new feature in the future.
It's about time I used tooltips rather than relying on Ace3's status frame, which always has a bad habit of chopping off the text.

Attempted to fix bug where stuff wasn't being added to the exceptions list.
Added a bit of database cleanup code, should improve the loading performance for some people. You will need to install this update, load the game, quit the game normally (no crashes or force quits), then load the game again to benefit from this.

Swatted a bug. D.E.H.T.A. is angry.

Minor bug fixes.
Seems pretty stable, so make the middle number even.

Added sorting to item lists.
Two new APIs for other addon developers that want to communicate with Reagent Restocker:
** ReagentRestocker:getVersion()
** ReagentRestocker:deleteItem(item) < UI now uses this, so it should be hookable.
Except for the exceptions list, all lists now show the UI for the item when it is added to a list.
Clears UI when an item is deleted.
Added titles to the UI if the items when they are selected. Helps a bit when debugging as well.
The ArkInventory addon author is looking at adding support for Reagent Restocker!
Unintentional source of data corruption found and fixed.
A bunch of UI cleanup.

Fix bugs.
Easier than I thought, actually. It was just trying to pull in some functions that it wasn't using anyways.

Attempt to fix a bug.

No news is good news. I'm pretty much assuming the "low reagent warning" bug is fixed now.
Fixed crash when quantity wasn't set.
New list: Exceptions. This lists prevents the automatic selling from selling certain items.
Some functions made available in a public API.
This was a pretty big change to the code (in order to make more lists possible), and a lot could be buggy, so I'm gonna increment the middle number in the version.

More tweaks to the low reagent warning. Note that it only warns when items become low while using them, it doesn't warn of low items when entering a city or anything like that.
I just got a big DUH moment - the warning was deeply nested in a "for" statement, making it conditional on things it shouldn't be conditional on! Fixed. Hopefully, this fixes 99% of the weirdness of the low reagent warning.

Fixed an unintended crash when dragging and dropping an item onto the text field. Probably in there as a previous experiment to add drag and drop?
As a result of fixing the bug, you can now drag and drop items on the text field to add them to the list. Note that it may not be reliable.
Added a bit of new debugging code - puts more information in crash messages.

Another attempt to fix low reagent warning.

Tried to fix reagent warning not appearing at all.
Disabled debugging (did I leave that on? oops!)
Explanation of the bug I'm tracking down: It seems that when WoW first loads, the inventory will act as if there's nothing in it. Therefore, if I check for low reagents right away when RR loads, it will detect them as low and give the player a warning. In 2.0.6, I've been telling it to ignore them until a certain event happens which seems to tell me when the inventory is available again. Alas, the event I chose doesn't always happen, so I've added another event in an attempt to make the detection more reliable.
Alas, there is no documented "correct" event to check for this, so it's largely a shot in the dark. I'm hoping this is the last I see of this bug, but no complete guarantees. Please report it if it happens again.

Fixed database bug that could cause crashes.
Fixed bug that inappropriately warned reagents were low after a loading screen.

Why yes, if I compare it to nil, I want to know if it's nil.
Get rid of some debugging messages that were just causing errors.
Added delay before checking for low items in an attempt to avoid a bug.

Fixed a bug where a debug message was being displayed inappropriately.
Added option to disable low reagent warnings.
Attempted to fix warning that something is low when it isn't.
Fixed a bug when loading the database.
Started some code for a new feature.

Added bug reporting link to About page.
Fixed bug where the merchant refused to take the item, but still counted as being sold, resulting in inaccurate selling profit.
Added warning when item drops below an amount set by the user. Compatible with Mik's Scrolling Battle Text.

Raid Roll detection improved.
Apparently, the old way of just detecting the slash command conflict stopped working. Thankfully, the Raid Roll author added a way to detect that it's been loaded.
Added "About" section.

Library and code cleanup - removed unneeded stuff, should make download smaller :).
2.0 is released!
Waterfall is no more. Ace3 is now the primary driver of the UI.
Fixed bug where bank itself wasn't included when stocking to/from bank.

v1.9.11 beta
Turned off debug flag.
Various bug fixes
To prevent people with large lists from having an explosion of LDB items, it now defaults to only a single item.
LDB: Now loads icon for items when a new LDB object created, rather than loading the icon later - fixes bug with some plugins.
Added option to use text instead of labels - some LDB plugins don't support labels.
Closed all bugs. Unfortunately, one I wasn't able to reproduce :(. If it happens again, the workaround is to just visit the vendor again. Please record any errors - sometimes the error will appear in a chat message.
Start tracking Reagent Restocker version in database - may help if I want to change how the database works in the future.
If nothing major is reported, this is likely to be the last beta.

v1.9.10 beta
Fix UI bugs.
Well, as far as I know it's stable. Barring any new major bug reports, it'll go to stable, which will be released as 2.0.

v1.9.9 beta
Made sliders act more like they do in the 1.2.x code.
Fixed typing in the numbers in the sliders.
Erased some debug prints. Debug printing still turned on for the beta testing, though.

v1.9.8 beta
Fixed checkmarks not working. Placed something in the wrong argument for a function.

v1.9.7 beta
Fixed checkmarks not working. Hopefully this time they're really fixed.

v1.9.6 beta
Fixed checkmarks not working.

v1.9.5 beta
Yes, updates are rolling in rapidly . . .
More bug fixes. Testing on my main now.

v1.2.4 and v1.9.4 beta
Fixed loading bug when Ace3 is loaded and LDB is absent.
Minor bug fixes.

v1.9.3 beta
Major bug fix: Now loads database properly.
Now sliders go their full length.
UI tweaks.
Disappearing window fixed.
Other various minor bugfixes

v1.9.2 beta
Released as beta! Please test, please report bugs!
Finally got everything I wanted to get working, working.
Integrates with WoW's addons tab in the interface menu.
Updated toc to current patch version.
It's been a long, hard road, I hope it's worth it. Finally, I can get back to playing the game and fixing minor bugs.
I accept donations, go to the website and find the donate button.

v1.9.1 alpha
Various bug fixes, working on reducing name clashes.

v1.9.0 alpha
Moved to Ace3 libraries.
Known bug: Frame intended to be inside Blizzard's UI appears underneath it.

Fixed case where, when Raid Roll loaded after Reagent Restocker, it would wipe all three slash commands.
Not really Raid Roll's fault, it just appears that when you register slash commands as a group, overriding one wipes the others in the group. Solution was to register "/rr" separately.

Attempt to fix some icons not showing up.
Added option to use a single LDB object instead of one per item.

Detect Raid Roll, and do not override its slash command if it has set one.
Added /rrstock to the slash commands. Same as /rr.
Remember, you can always use /reagentrestocker to open reagent restocker.

Minor graphical adjustments.
No more crashes reported, only minor graphical complaints, so releasing as stable!

v1.1.8 beta
Waterfall was acting up, so I jailed it.
In other words, it runs in its own environment now and doesn't pollute the global namespace.
Hopefully this should be the final fix for incompatibilities with other addons.

v1.1.7 beta
If you come to a fork in the road, take it. Or, in this case, if you modify a library, fork it.

v1.1.6 beta
With a new day for a fresh set of eyes - a some "if" statements and "function" closures in my code were closing in weird places. May have been responsible for flaky behavior and performance issues. Fixed.

v1.1.5 beta
More LDB fixes.

v1.1.4 beta
Bug/performance fixes.

v1.1.3 beta
Minor UI and LDB bug fixes.

v1.1.2 beta
Fix Broker2FuBar compatibility.
Add some text to LDB feed.
Increase intensity of colors at user request.

v1.1.1 beta
LDB support added.
Increased visibility of resize handles.
Fixed a fix.

v1.1.0 beta
Give Cheeken credit in TOC.
Hopefully fix vendor discount bug.
Versioning set to be more Linux-like. This is still a beta release, so odd second number.
Drag and drop support now added! Easier, and more reliable since no dependency on the name.
Rquired modifications to the Waterfall library. Consider the library branched . . .
Wider area for longer description viewing. May adjust more in the future.
Formatting of news and changelog adjusted to be more Wiki-like.

v1.0 beta
Added MIT license to code.
(gonna publish to curse.com)
Added /rrbuy and /rrsell to add items to the sell and buy lists (thanks g3gg0).
Per the advice of rerunx5, replaced LibStub with Ace 3.0 LibStub.
Updated Waterfall library.
Updated Ace 2 libraries.
Updated TOC.

First change with new author (CobraA1).
Increased maximum shopping quantities; should allow players to fill some of the more specialized bags.
Changelog and news now included as text files in the addon.
Note that I have not updated the interface version yet - I want to make sure most of the known bugs are fixed first.

Improved interface (thanks to the excellent Waterfall library)
Added ability to turn overstocking on and off
Fixed problem finding items with hyphens (-) in them

This update will delete your settings, but it will also work with the 2.3.2 update
Improved bag-movement "AI"
Improved reporting
Cleaned things up a bit; should be less prone to bugs

Improved bank logic
Multiple bug fixes
The Bad News: Due to a significant code rewrite, v0.6 will reset your settings. You will have to re-enter them.
The Good News: Reagent Restocker now has limited bank support. Enable the appropriate options and Shopping List items will be pulled from or deposited into your bank. Also a few other handy features were added, such as auto-population of the Selling List.
Optional Files (0)

Archived Files (21)
File Name
03-04-15 10:44 AM
01-18-15 01:08 PM
11-25-14 10:20 PM
10-29-14 11:00 AM
10-15-14 07:33 PM
10-14-14 05:28 PM
8.4 Beta
08-09-14 06:23 PM
8.3 Beta
07-20-14 05:48 PM
10-06-13 01:07 PM
05-21-13 11:31 PM
03-25-13 11:34 PM
03-23-13 09:48 PM
01-29-13 07:33 PM
01-21-13 07:46 PM
01-01-13 01:36 PM
10-28-12 01:51 AM
10-23-12 12:26 PM
08-29-12 12:54 PM
08-27-12 01:57 PM
02-25-12 08:02 AM
01-21-12 11:48 AM

Post A Reply Comment Options
Unread 02-28-11, 07:11 AM  
A Cliff Giant
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
Encountered an issue with v2.4.6 that would be nice to see feature implemented in the next alpha/beta/release. Automatic reagent level buying increases, as is implemented in another mod of this type: Tekkub's StealYourCarbon (not linking, but its on mod sites).

For example, you are level 80-84 and have ReagentRestocker set to buy Sparkling Oasis Water. Then you turn 85. You head to a vendor to sell your junk before visiting the trainer and...whoops, ReagentRestocker buys stacks of your old water. Which is now unwanted at 85; instead, you want Highland Spring Water. So you waste money. Same thing can happen with health-restoring food, etc..

Its an issue I encountered recently on an alt. The above mentioned mod is a lot more basic than ReagentRestocker (no reputation qualifiers, etc.) but it does have the ability to automatically upgrade to the right level water without you having to redo your stock list. It doesn't handle health food upgrades, though (I assume because there are so many more food types than water types and that author usually limits options in his/her mods).

So would be nice to see this feature from that mod added to ReagentRestocker. And food too if its not too gigantic a hassle.
Report comment to moderator  
Reply With Quote
Unread 02-21-11, 11:22 PM  
A Cliff Giant
CobraA1's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 98
Uploads: 3
Thanks for the report, will be fixed in the next beta.
Report comment to moderator  
Reply With Quote
Unread 02-21-11, 07:52 PM  
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 118
Uploads: 2
Been getting this first time I open a vendor/bank and RR doesn't work

4x ReagentRestocker-2.5.0 Beta\Core.lua:2092: bad argument #1 to 'pairs' (table expected, got nil)
ReagentRestocker-2.5.0 Beta\Core.lua:2092: in function `?'
CallbackHandler-1.0-6 (Ace3):147: in function <...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:147>
<string>:"safecall Dispatcher[1]":4: in function <[string "safecall Dispatcher[1]"]:4>
<in C code>: ?
<string>:"safecall Dispatcher[1]":13: in function `?'
CallbackHandler-1.0-6 (Ace3):92: in function `Fire'
AceEvent-3.0-3 (Ace3):120: in function <Ace3\AceEvent-3.0\AceEvent-3.0.lua:119>

1x ReagentRestocker-2.5.0 Beta\Core.lua:2930: attempt to compare nil with number
ReagentRestocker-2.5.0 Beta\Core.lua:2748: in function `moveItems'
ReagentRestocker-2.5.0 Beta\Core.lua:2116: in function `?'
CallbackHandler-1.0-6 (Ace3):147: in function <...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:147>
<string>:"safecall Dispatcher[1]":4: in function <[string "safecall Dispatcher[1]"]:4>
<in C code>: ?
<string>:"safecall Dispatcher[1]":13: in function `?'
CallbackHandler-1.0-6 (Ace3):92: in function `Fire'
AceEvent-3.0-3 (Ace3):120: in function <Ace3\AceEvent-3.0\AceEvent-3.0.lua:119>
Report comment to moderator  
Reply With Quote
Unread 12-29-10, 12:57 AM  
A Cliff Giant
CobraA1's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 98
Uploads: 3
Meh, I removed the calls anyways. I figure I fixed the major leaks. And fixed a couple more bugs.
Report comment to moderator  
Reply With Quote
Unread 12-29-10, 12:27 AM  
A Cliff Giant
CobraA1's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 98
Uploads: 3
Technically, your argument is very sound.

From the perspective of users who love to use addons like BrokerCPU to snoop on memory usage, however, they love to complain about memory usage even though it may be causing zilch actual performance issues and is harmless and will be collected eventually.

So, to make them happy, I collect.

But yeah, I will reconsider it soon, as I have learned a few more things about Lua memory management in inner loops and am optimizing some code to not generate so many objects. Hopefully when I have more optimized, I can remove it without upsetting the BrokerCPU bean counters.

I did have a legit memory bug when I implemented the tooltip scanner, so I have learned to be a bit more careful with memory. (Note to self: String concatenation inside a three deep nested loop is a very, very bad idea - new strings are new objects)

Even though this is a bit of a personal project, I do consider myself here to serve those who use my addon, so yeah I may sometimes do something to satisfy them rather than the technically correct thing. Dunno if that's the philosophy other addon authors use, but that's the philosophy I have.

But yeah, I will be reconsidering the garbage collect, along with making sure my memory usage is at a minimum.
Report comment to moderator  
Reply With Quote
Unread 12-28-10, 06:27 PM  
A Cliff Giant
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
Two problems with r2.4.4:

Its still giving unnecessary Reagent Restocker: ==== RECEIPT ==== text spam at vendors from which things on your buy list cannot be purchased.

Also, addons should really not be doing arbitrary automated calls to collectgarbage()...as in every time the database is loading as you have it set now. You are essentially letting the addon hang the user's machine while doing something that is done far better by the built-in WoW incremental garbage collector. User initiated calls, on the other hand, can be OK. Such as when a user deletes items from their sell lists.

GC used to be an issue long ago. But not since WoW changed to LUA 5.1 & its built-in incremental garbage collector around WoW 2.0. More information & discussion in this thread.
Report comment to moderator  
Reply With Quote
Unread 12-11-10, 09:36 AM  
A Cliff Giant
CobraA1's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 98
Uploads: 3
Reagent Restocker uses Blizzard's API to get information about items. Right now, it does not save any information about items other than the items that are already in the lists.

That being said, if an item is already in one of the lists (ie, it uses the same ID number as an older item), the list is used before Blizzard's API, and it won't detect item updates.

You may have to delete the vanishing powder then add the dust to update the addon's internal database.
Last edited by CobraA1 : 12-11-10 at 10:31 AM.
Report comment to moderator  
Reply With Quote
Unread 12-11-10, 05:24 AM  
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 19
File comments: 280
Uploads: 12
Is the LDB feed handling the new dust of dissapearance instead of vanishing powder?
Report comment to moderator  
Reply With Quote
Unread 12-02-10, 07:13 AM  
A Cliff Giant
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
One more problem with v2.4.2 (posting separately in case you've already looked at prior post): you can improperly checkmark multiple choices for Require Faction Discount. Checkmark Exalted, for instance, and you can still checkmark every one of the others.

Only one of those choices should be able to be checkmarked at a time.
Report comment to moderator  
Reply With Quote
Unread 12-01-10, 06:33 PM  
A Cliff Giant
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
Thanks very much for the reply; look forward to the changes.

One big (new) issue in v2.4.2, though. Every single time you open a vendor, whether or not its one from which you can obtain things on your buy list, the following message goes out to the main chat frame:

Reagent Restocker: ==== RECEIPT ====

If something is bought via your Reagent Restocker Shopping list, the following text is added under that:

Purchased (number) (item), costing a total of (money spent).

= No items sold =

That's OK. But having the first part of that receipt show up in chat after opening a vendor from which nothing is bought is actually more bothersome here than the bought-items-only receipt frame that was in v2.4.1...heh.
Report comment to moderator  
Reply With Quote
Unread 11-29-10, 07:57 PM  
A Cliff Giant
CobraA1's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 98
Uploads: 3
Yes, as the previous poster mentioned below, an option to output to chat instead of that non-movable "receipt" frame would be nice; good to hear things are upcoming. Another option for the output: Sink-2.0.
Thanks for the suggestion . I'll take a look at Sink. The change to the receipts was an experiment of sorts, and can easily be rolled back. I'm certainly looking for better ways to handle receipts.

I'm also thinking about storing receipts in the database for future reference (optional, of course, since that would increase the database size).

The downloads are for some reason embedding (the discontinued) Ace 2's AceLibrary & AceOO-2.0 libraries. Despite no parts of the current mod version making reference to them (line 50 in Core.lua is commented out, etc.)
Thanks for the info. Yeah, there's a lot of cleanup I have to do, and a lot of junk code floating around as well. I miss not having the option to trace dependencies like I can in Java and C#. Cleanup is likely to be a long term project.

I changed the libraries twice - once from Waterfall, which stopped being maintained a long time ago, and again moving from Ace2 to Ace3. I also moved a lot of UI code to a separate file for easier maintenance and to avoid cluttering up the core code.

Because of that, yeah there's a lot of junk in the code right now. At its core, it's not actually a very complex addon, and I could probably shave a few KB from the download size with some cleanup.

The ability to confirm whether or not you want to purchase your set items or not via a "yes/no" popup box.
Sounds like a good idea . I'll look into it.

Edit: one more thing just seen. The Overstock option under the Shopping header has an improper tooltip. It states: "Reagent Restocker will only purchase Shopping List items from vendors with a 20% discount". Its a slight modification of the current Exalted (20%) tooltip.
Thanks - and looks like that's not the only mistake in the tooltip code, either. Looks like I copied and pasted a bit too much when I moved everything to Ace. Will be fixed in the next release.

FYI, development may be slow until mid-December, as I am finishing some classes at college. But I will do my best to continue to update it.

EDIT: I've gotten enough complaints about it from various places that I've temporarily disabled the new receipt system in the 2.4.2 release. I really need to do it right before I make it available.
Last edited by CobraA1 : 11-29-10 at 11:52 PM.
Report comment to moderator  
Reply With Quote
Unread 11-29-10, 06:39 PM  
A Cliff Giant
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
Giving this a try as all other vendor-discount-qualifier buy mods are no longer updated/working in WoW 4.x.

So far, looks reasonable. And nice to see the active development. A couple things so far in testing.

Yes, as the previous poster mentioned below, an option to output to chat instead of that non-movable "receipt" frame would be nice; good to hear things are upcoming. Another option for the output: Sink-2.0. Directing the output through that library allows a choice of chat, the default raid warning frame, a bunch of scrolling text mods and so on. As well, being able to completely disable all of the output would be nice, if you decide not to use Sink.

The downloads are for some reason embedding (the discontinued) Ace 2's AceLibrary & AceOO-2.0 libraries. Despite no parts of the current mod version making reference to them (line 50 in Core.lua is commented out, etc.)

One thing that would be nice to see added, as this is already full-featured. Something (the dead in 4.x, on this site) BuyDropper & GetReagents mods had. The ability to confirm whether or not you want to purchase your set items or not via a "yes/no" popup box.

Having both the faction qualifier and the confirmation active at the same time doesn't make sense, of course. But for those who prefer qualified buying without faction restrictions, its very useful. For example, if you are questing extensively in an area not near a discount vendor and you sometimes want to fill up on things occasionally, but not always. And other instances.

Then there are those who may want only faction discount purchases at any time, in which case the current option is sufficient. So adding a confirmation (box/popup/etc.) option as other such mods have had would expand the usefulness for more people.

Edit: one more thing just seen. The Overstock option under the Shopping header has an improper tooltip. It states: "Reagent Restocker will only purchase Shopping List items from vendors with a 20% discount". Its a slight modification of the current Exalted (20%) tooltip.
Last edited by Zidomo : 11-30-10 at 03:17 AM.
Report comment to moderator  
Reply With Quote
Unread 11-28-10, 11:42 PM  
A Cliff Giant
CobraA1's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 98
Uploads: 3
Thanks for the input. It isn't really finished yet - I have more modifications to make.
Report comment to moderator  
Reply With Quote
Unread 11-28-10, 09:06 PM  
A Deviate Faerie Dragon

Forum posts: 18
File comments: 101
Uploads: 0
As an aside I was happy wiht receipts in chat and would prefer one less click to click. Separate window to get rid of is actually an imposition of sorts.
Report comment to moderator  
Reply With Quote
Unread 10-16-10, 03:17 AM  
A Cliff Giant
CobraA1's Avatar
AddOn Author - Click to view AddOns

Forum posts: 73
File comments: 98
Uploads: 3
If I can get the info on both the old and new poisons, perhaps I could make it aware of the changes. I don't play a rogue, sorry.

If you haven't already deleted the old poisons, the information should be in the ReagentRestocker.lua file from the "World of Warcraft\WTF\Account\<account>\<server>\<character name>\SavedVariables" folder.
Report comment to moderator  
Reply With Quote
Post A Reply

Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.