Actually, I could probably do this myself whilst waiting between the looooong BG queues on my busy PvE server but if anyone who is more experienced with Ace would want to do it then I won't stand in their way ;)
- Allows auto-invites from guildies, friends, both or everyone.
- Declines auto-invites from guildies, friends, both or everyone.
- Can perform an emote on successful accept or decline. (user configurable emote).
- Can auto-whisper the person who sent the invite on accept or decline (user configurable message).
Just needs to have an auto-accept feature added, that's what I use, and it works great, I love viper and all of his addons. I think somone should just Ace it, or even just add auto-accept, because PopupBlocker is so well done.
That was only one problem, the other was/is that I can't seem to pass the args to my checks, for eg. the playername who sent the invitation. I'll play around with it some, but feel free to do something better .. really, I don't have any hard feelings about that .. I'd never have.
Heh, I actually whittled AutoGroup down to a whopping 20 lines of code :) I only wanted it to auto-accept from friends and guildies so I threw out the auto-decline code. I also tossed in a simple /who on the inviter if it doesn't auto-accept.
The old AG code had a LOT of unneeded fluff, like trying to maintain an up to date guild roster. Wholey unneeded, just scan the roster on an invite. I have a sneakey suspicion you get much fewer invites in a session than GUILD_ROSTER_UPDATE firings.
Anywho if anyone is interested I can post up my code real quick fer ya.
Naturally there's a basic XML frame that calls the OnLoad and OnEvent fuctions at their respective times.
if (event == "PARTY_INVITE_REQUEST") then
if AutoGroup_IsFriend(arg1) then
for index = 1, STATICPOPUP_NUMDIALOGS, 1 do
local frame = getglobal("StaticPopup"..index);
if (frame:IsVisible() and (frame.which == "PARTY_INVITE")) then frame:Hide() end
else SendWho("n-\"".. arg1.. "\"") end
for i=1,GetNumFriends() do if GetFriendInfo(i) == ch then return true end end
if (IsInGuild()) then for i=1, GetNumGuildMembers() do if (GetGuildRosterInfo(i) == ch) then return true end end end