View Single Post
09-07-11, 07:27 AM   #2
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
I don't know if there are any addons for specifically this, but this snippet should be able to do what you want
Lua Code:
  1. local f = CreateFrame("Frame")
  2.  
  3. local function OnEvent(self, event)
  4.     if event == "PARTY_INVITE_REQUEST" and UnitIsAFK("player") then
  5.         AcceptGroup()
  6.         f:RegisterEvent("PARTY_MEMBERS_CHANGED")
  7.     elseif event == "PARTY_MEMBERS_CHANGED" then
  8.         StaticPopup_Hide("PARTY_INVITE")
  9.         f:UnregisterEvent("PARTY_MEMBERS_CHANGED")
  10.     end
  11. end
  12.  
  13. f:RegisterEvent("PARTY_INVITE_REQUEST")
  14. f:SetScript("OnEvent", OnEvent)
http://www.mmo-champion.com/threads/...lve-easy-steps
Attached Files
File Type: zip AutoAcceptAFK-v0.1.zip (741 Bytes, 1235 views)

Last edited by Ketho : 09-07-11 at 04:39 PM.
  Reply With Quote