View Full Version : AutoFollow Woes
HPAVC
08-02-2007, 09:34 PM
I read some people have problem with autofollows. I wrote an elaborate multiboxing addon that works like as follows. Set your leader, as in follow the leader, as your focus. And you will autofollow them after combat.
I also use a private data channel where I have the state of all my slaves (following, not following, etc).
I have removed the everything not follow related.
[code:1]
GCM.options = {
type = 'group',
args = {
autoFollow = {
type = 'toggle',
desc = 'automatically attempt to autofollow after combat',
name = 'autoFollow',
get = 'IsAutoFollow',
set = 'ToggleAutoFollow',
},
};
function GCM:OnEnable()
-- Called when the addon is enabled
self:RegisterEvent("PLAYER_REGEN_ENABLED");
end
function GCM:FollowFocus()
if ( CheckInteractDistance("focus", 4) ) then
FollowUnit("focus");
else
self:Chat("cannot follow, to far away");
end
end
function GCM:IsAutoFollow()
return self.db.profile.AutoFollow
end
function GCM:ToggleAutoFollow()
self.db.profile.AutoFollow = not self.db.profile.AutoFollow
end
function GCM:PLAYER_REGEN_ENABLED()
-- follow related
if(self:IsAutoFollow()) then
self:FollowFocus();
end
end
[/code:1]
Hey thats pretty hot - might help melee classes somewhat.. considering its out of combat when you need to be following.
In combat sometimes too but this would help quite a bit I would think with the mundane "hit follow to make sure everybody is here".
Nachoes
08-02-2007, 10:11 PM
Nice, can't wait to test this.
Could you post the whole addon (all files)?
HPAVC
08-02-2007, 11:37 PM
Hey thats pretty hot - might help melee classes somewhat.. considering its out of combat when you need to be following.
If your use the 'warrior charges/rogue shadowsteps, everyone looses /follow, ranged people nuke' <combat ends>, 'everyone follows' it works quite well.
Yes for hunters and rogues its aweful and you need to rig feign death to turn it off else as soon as your toon makes likes a corpse it will pop backup and follow the leader/focus ... DOH!
Not to mention the walking into long drops such as LBRS is well known for. But once you get the hang of the response its one less key to press and one less eye movement.
I could probably make this work but .... would be nice to have a packaged file..... or is that all there is to it?
HPAVC
08-03-2007, 10:45 AM
I could probably make this work but .... would be nice to have a packaged file..... or is that all there is to it?
This (http://tinyurl.com/yog5db) is an older version that does almost just that. I will endeavor to make the UI version with that I play with available.
The big issue is that I use a display for various indicators (not enough mana, out of range, you must face the, you dont have a target, you can do that sitting) of my slaves, their status (following, drinking, mounted), and various cooldowns. So much like the many 'timer' addons, but for select information and the rest of my party (and their pets).
Sadly it needs to be more generic for other people to use that are not doing my setup.[/url]
It could always be modified :) What I need are DOT timers for my locks and it would also be nice to have mounted/following/distance(?) and other indicators on my main box.
I always figured you could pass variables through hidden chat channels - telepathy and others have been doing it for a long time.
I will also see about finding your camera mod. It would be VERY nice if when I clicked Rain of Fire / Blizzard / Shadowfury / that it would auto sync the camera angles - even just to an 89 degree pitch..... /following lines them up in the right direction but this is not always enough.
Neat suggestion and code, thank you!
HPAVC
08-04-2007, 01:03 AM
I wrote some code for detecting when people used hellfire in raids, my main toons have always been priests, as I was always scared of loosing the destruction locks that came to the self-immolation-fest dressed as mages. of course back then I just did a CTRA aggro alert style message to myself.
But it would be possible, with some workflow understanding, to do something with the camera when the combat log sees various strings.
Imagine 5 rows of gadgets, each associated with a save view, each toggled on or off for in use and unused, and the actual pattern you want to look for. So as soon as the combat log reads 'unspeakable casts hellfire' (or whatever) the camera for anyone seeing that would swap to saved view #3. Then coupled with a 'when out of combat' jump to view #5.
[code:1]view#,bool,regular expression for combat log
1,on/off,regex
2,on/off,regex
3,on/off,Unspeakable casts.*Hellfire.*
4,on/off,regex
5,on/off,.*durability loss.*[/code:1]
I guess I would have to get my mind around it a little, the scope of party, raid and what not. If you wanted a 'gains stealth' to have a toon switch to above view for example that might be fun, but somewhat silly.
Potentially make SCT drive this might be best since its already doing the same thing grinding through the combat log. I would just need to make a camera view changer plug-in for SCT.
I was thinking something even easier and possibly faster to parse. Since I need the views to flip BEFORE I cast a spell (blizzard, rain of fire, etc) it could not parse the text. It would have to detect that I was casting it - by detecting the button press for that macro. THEN the moment it is activated, sync up the screens and then click the single mouse and presto - channelling the AoEs. So really just on button press (the same one which also called the rain of fire) swap cameras. This is probably doable with just /script commands - embed the script and then /cast Rain of Fire for example - no LUA even needed!
This would not be needed for Hellfire as it is PbAoE and not targeted but I like where you are going with this.
Tested th is with Warlocks and Drain Soul. AMAZING. Works like a dream! Had to of course name the folder properly and put it in the right place :)
Only thing it fails on is Hellfire. Which does not break follow anyway but is generally being cast once combat is over and the game reports you are too busy to follow right now. I would imagine this would also fail on Rain of Fire and Blizzard as well as any other channeled spells that did not end on out of combat (e.g. not drain life or arcane missiles, etc).
Any way to make it not take up channel 1 :) And/or share information with other UI mods in the same channel?
vBulletin® v4.2.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.