I have in my head this grandiose idea for a small mod to do a mindless task for me: restock all my reagents. Yes, I am completely aware that there are at least 4 mods that do this already, but they don't have the functionality I crave.
What am I craving?
A mod that will:
-check the class - do I have any reagents? If I'm playing a warrior, obviously not, stop the addon at this point please.
-check the level - I'm sure a 28 rogue does not need top ranked Deadly Poison, and if I just hit a level, check to see if I can use anything new. (eg, new poisons)
-check the glyphs - unburdened rebirth, water walking, etc.
-check the bags - do I have this item already? If so, how much, or if not, how much should I get? (I don't need an in-game config on this.)
All of this because yes, I am lazy and forgetful, and more than once have I run out of reagents or not had the correct one for a recently learned spell.
So right now, my main question is where to start looking for functions, locals, all that good stuff? because right now, I am terribly confused and am about ready to tear my hair out.
Really? How big would it have to be? I'm just trying to flesh out the idea, see it in action.
The fact that the addon would have to keep its own databases of data abut what classes has reagents, at what levels they can start using it, and the same with glyphs, doesn't make it that small anymore.
I suggest you just go with FreeRefills, simple and easy to use.
Actually, it's really quite simple... you have to go to a vendor to restock anyway, there's no getting around that. If you're not max level when you do, just check to see if you need to change settings.
Besides that, you can still use the lower-level spell/reagents. So the only time you have an unrecoverable failure is when YOU forget to go restock in the first place.
Glyphs are a little problematic, when coupled with multiple specs. How is the addon supposed to handle the case where you have a glyph that removes the necessity for one reagent but only on one spec ?
Apart from that, the addon you describe is indeed very easy and small. As a base, you can look at mine. The version on googlecode is not up-to-date and contains a few wrong itemid. I've fixed it locally but didn't commit that. It works for all class, it maintains "stacks" of reagents. Adding a check for glyphs would be quite easy, once you've decided how to handle the corner case explained above. And it also automatically sells the junk items too.
another REALLY easy way to handle it is to simply "top off" any reagents. if you have a partial stack of something, it'll fill the stack and that's all. if you run out, you need to buy em manually. but this would require 0 config.