Close
Page 1 of 2 1 2 LastLast
Showing results 1 to 10 of 14
  1. #1

    Default How to check if you've stopped following.

    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.
    Someguy: "You must really like playing with yourself"
    Me: "OH HELLS YEAH!"

  2. #2

    Default

    Check out "OhNoes", written by Depherios...

    [Addon] OhNoes: Screen Coloring/Alert addon. Updated!

    It flashes the whole screen red if you drop off follow.

    Not quite what you asked for but thought it worth bringing to your attention

  3. #3

    Default RE: How to check if you've stopped following.

    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.
    Check for the "You are following blah" frame being visible. Don't know it's name, but it's the yellow text in the middle of your screen. This is the absolute most reliable way I found to handle this.
    [> Sam I Am (80) <] [> Team Doublemint <][> Hexed (60) (retired) <]
    [> Innerspace & ISBoxer Toolkit <][> Boxing on Blackhand, Horde <]
    "Innerspace basically reinvented the software boxing world. If I was to do it over again, I'd probably go single PC + Innerspace/ISBoxer." - Fursphere

  4. #4
    Member Ughmahedhurtz's Avatar
    Join Date
    Jul 2007
    Location
    North of The Wall, South of The Line
    Posts
    7169

    Default

    Quote Originally Posted by moog',index.php?page=Thread&postID=105820#post1058 20]Check out "OhNoes", written by Depherios...

    [url='http://www.dual-boxing.com/forums/index.php?page=Thread&postID=93601
    [Addon] OhNoes: Screen Coloring/Alert addon. Updated![/url]

    It flashes the whole screen red if you drop off follow.

    Not quite what you asked for but thought it worth bringing to your attention
    This. HIGHLY recommended. It's a very annoying screen flash, especially if you tweak it a bit. Makes it totally obvious when someone breaks follow. Also doesn't spam you silly with it every time you press the follow key again like that other mod did.
    Now playing: WoW (Garona)

  5. #5

    Default RE: How to check if you've stopped following.

    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

  6. #6
    Member BobGnarly's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere out there.
    Posts
    555

    Default RE: RE: How to check if you've stopped following.

    Quote Originally Posted by 'dardack',index.php?page=Thread&postID=105870#post 105870
    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>;
    Word of warning: I found that "AUTOFOLLOW_END" was somewhat unreliable for some reason. I wrote a mod that used that event, and occasionally I would find a slave not following and had never received any notification. My best guess is that there is some other event that occurs, which also implies AUTOFOLLOW_END, so it doesn't post that event, but I was never able to narrow it down further.

    Zanthor's suggestion has some merit too.

    What I wound up doing is checking distances, and if any of my slaves were beyond a certain distance, it would flash an annoying message. I had it so it could be toggled, in case you had one off training or something. This worked really well overall.
    No matter where you go, there you are.

  7. #7
    Member Ughmahedhurtz's Avatar
    Join Date
    Jul 2007
    Location
    North of The Wall, South of The Line
    Posts
    7169

    Default

    Hmm....apologies for my first response. Space cadet Ugh didn't read. :P On a related note, though, I've NEVER seen that mod fail to report a stopped /follow, so I'd look at the events he's trapping and just do something like that.
    Now playing: WoW (Garona)

  8. #8

    Default

    have you checked out the Multiboxer V2 addon which was created by one of our own and posted on this forum ???

    besides handy tricks like autoaccepting trades and quests it also shows a window
    showing the party members name in green when they are in /follow followed by the name they are following
    and the name in red when they are not in /follow

    let me grab you a link

    edit: [Addon] Multiboxer V2
    edit2: http://www.dual-boxing.com/wiki/inde...n:MultiboxerV2
    Tarrenmill PVP EU
    Zyxxyz Prot Paladin
    Zyxxyx Frost DeahtKnight
    Zyxzyx, Xzyxzy, Xyxxyz, Yxzyxz 4x Shaman
    Zyxxzy, Zyxyxz, Zyxyzx, Zyxzxy 4x Ret Paladin


  9. #9

    Default

    Edited: What I posted, was fixed soon there after, please ignore.

    Thanks for the link. I've written my own that has some of that, but am anxious to check it out, hope i can ditch my own efforts.

  10. #10

    Default

    Quote Originally Posted by 'zanthor',index.php?page=Thread&postID=105821#post 105821
    Check for the "You are following blah" frame being visible. Don't know it's name, but it's the yellow text in the middle of your screen. This is the absolute most reliable way I found to handle this.
    So after working on other higher priority addons, I've recently came back to this...

    In response to zanthor's comment, I went and dug up some wow's ui code

    The following is in ZoneText.lua

    PHP Code:
    function AutoFollowStatus_OnEvent(selfevent, ...)
        if ( 
    event == "AUTOFOLLOW_BEGIN" then
                local arg1 
    = ...;
                
    self.unit arg1;
                
    self.fadeTime nil;
                
    self:SetAlpha(1.0);
                
    AutoFollowStatusText:SetFormattedText(AUTOFOLLOWSTART,self.unit);
                
    self:Show();
        
    end
        
    if ( event == "AUTOFOLLOW_END" then
                self
    .fadeTime AUTOFOLLOW_STATUS_FADETIME;
                
    AutoFollowStatusText:SetFormattedText(AUTOFOLLOWSTOP,self.unit);
                
    self:Show();
        
    end
        
    if ( event == "PLAYER_ENTERING_WORLD" then
                self
    :Hide();
        
    end
    end 
    As you can see, the autfollow status frame is also hidden by the "PLAYER_ENTERING_WORLD" event.

    Perhaps this is the implied AUTOFOLLOW_END that's causing inconsistencies?
    Someguy: "You must really like playing with yourself"
    Me: "OH HELLS YEAH!"

Similar Threads

  1. Keyclone has stopped working
    By scrapdogg in forum Software Tools
    Replies: 7
    Last Post: 04-05-2010, 11:49 AM
  2. Keyclone Has Stopped Working....
    By Flippo in forum Software Tools
    Replies: 21
    Last Post: 07-24-2009, 10:57 AM
  3. Stopped working! Help!
    By Mokoi in forum Software Tools
    Replies: 12
    Last Post: 01-24-2009, 01:16 AM
  4. GameStop has stopped CE pre-orders?
    By Heenan in forum General WoW Discussion
    Replies: 2
    Last Post: 09-19-2008, 07:05 PM
  5. Computer stopped booting
    By Bravo in forum Hardware Tools
    Replies: 12
    Last Post: 07-11-2008, 04:32 AM

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •