If anyone has any comments, let me know, but aside from parsing options -- which I don't want to get into right now -- I'm very happy with it. (This is my first ever program or script, so if I'm missing a best practice or if I'm not using Google Code to the max, let me know also.) I'm interested in writing a module that reads the equipped item list and writes the stats and perhaps other effects to a table, kind of like on http://wowhead.com/?itemset=217 (Judgement Armor) for example. I don't know where to start on that one, though.
(Something that just came to mind is adding Rogue Lockpick skill.)
So, on to my suggestion: What would it take to make an addon that would run and read from this script (or not even from this script, but from wowarmory) so that you wouldn't have to ask every tank-capable class member "Hey, are you up for tanking UB?" or every heal-capable class member "Are you up for healing Mag Terr?".
The addon should be able to pass information on all /who returns. For instance, I type:
/whoshe 50-55 tank
which makes an internal "/who 50-55" call that ultimately returns only tank-capable classes along with their talent specs (either in a UI or the chatbox, though the UI would be better usable, I think, and it wouldn't be subject to chat spam). Like so, perhaps:
And you can immediately know that no one here is a suitable tank, even though their name might belie that (as in the case of the misnamed "Protwarrior").
The dps and heal modules would be similar to the tank module, except the dps module would list all classes with their talent specs and spell damage/AP/RAP. The heal module should display talent spec and +heal and spell crit rate.
Would this be hard to pull off? -- I just learned Python by tinkering with the script mentioned above. I don't know Lua very well at all, and I really don't know the first thing about interfacing them.
The script/addon I propose have should take it from wowarmory on demand, since it doesn't apply only to level 70s. After all, level 70s aren't the only ones that suffer from demand for tanks, dps, and healers. Is it possible to call such a Python (or any other) script from Lua?
Thanks for the explanation. I guess that kills my idea about such an addon. I guess the only way you could pull it off is to have it write to a Lua file (as a SavedVariable file) and have another program receive the data with some frequency which would retrieve the data from the server and parse it, send it back to the SavedVariable file, and the addon could return the data.
With the use of the Unix command watch calling a script.... It could work, but I don't know where to begin as far as the Lua code goes, and I've never made sense of the SavedVariable system. I could write the Python portion, though, I think.
The Lua would need two slash commands (or buttons, as may be the case) -- one to send the data to the parser, one to retrieve the data from the parser -- or perhaps one but then you'd have to have a scheduler written into it.
Does it look more feasible now than it did, and does anyone have any interest in producing something like this?
You would need to violate the ToS by modifying memory blocks of the WoW allocated memory(which isnt even possible that easily as normally every OS kills you directly for it) to make that work or a reloadui everytime before you send the request and after that another reloadui to be able to get the data.