Quote Originally Posted by 'mmcookies',index.php?page=Thread&postID=105805#po st105805
I'm trying to write an addon that sends a messsage from my slaves to my main whenever they stop following, but there doesn't seem to be anything in the API that returns whether or not the character's in the "following" state.

Wondering if anyone has some good ideas about how to do this.
There is an event in the API AUTOFOLLOW_END. So when your addon loads make sure you run <frame name>:RegisterEvent("AUTOFOLLOW_END");, than in your event function you can check (i would check that you aren't in combat first because you stop following if you attack something a lot of times, and you don't want the spam, or maybe you do), combat is also an event PLAYER_ENTER_COMBAT (or LEAVE, dont' forget to check for both, just like follow follows other is BEGIN). Anyways in the event function if (not in combat and autofollow_end) then sendchatmessage("<name> has stopped following you.","WHISPER","COMMOND",<name of main>);

This is all off the top of my head, so grammar and maybe i got something wrong, but generally this is how you do that. I used to write addons, but now i just do it for myself. I used to get alot of tells on my other toons, so i wrote addon to autoreply with a canned response, I also can whisper my other accounts and make them do stuff (although that i don't do as much anymore since i've found this sight and AHK, i've been dual boxing for over a year, but was very inneffecient), but anytime I need something simple, and don't need a huge mod to take care of it, i'll just write it myself. If you ever need api info the WoWWiki is where I usually go to find it. http://www.wowwiki.com/World_of_Warcraft_API