View Single Post
09-04-14, 08:49 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Well, based on the code you posted, that addon is not using very good coding practices, so I would strongly recommend against using it as a learning tool. It also appears to using rather circuitous methods to automate quests, by maniuplating the default UI's frames to replicate exactly what happens when you interact with those frames yourself, rather than doing what an addon should be doing, which is just calling the underlying API methods directly.

It's like designing a machine to cook ramen for you, but instead of just making something like you'd probably imagine -- a self-contained unit, kind of like a rice cooker maybe -- you instead make an android that can do all the things you'd do yourself to cook the ramen for you in a pot on the stovetop. Obviously this is inefficient and will break if you change anything about your kitchen setup. Much easier just to make a self-contained unit you can just hook up to a water line, then drop in a packet of ramen and push a button, so it doesn't need to know what your pots look like, how to use your stove controls, how to open your cupboards, etc.

If you want to use a quest-automating addon to learn about writing WoW addons, I'd suggest looking at the one I linked earlier, as it's author is actually using the API correctly and the addon is written in a sensible way in accordance with current best practices.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.