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]
Connect With Us