View Single Post
03-20-15, 01:16 AM   #8
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
This is a modified version of my personal AntiDuel addon to respond to party invites.
Lua Code:
  1. UIParent:HookScript("OnEvent",function(self,event,...)
  2.     if event=="PARTY_INVITE_REQUEST" then
  3.         local a1,a2,a3,a4=...;
  4.         DeclineGroup();
  5.  
  6.         if a2 or a3 or a4 then
  7.             StaticPopupSpecial_Hide(LFGInvitePopup);
  8.         elseif a5 then
  9.             StaticPopup_Hide("PARTY_INVITE_XREALM");
  10.         else
  11.             StaticPopup_Hide("PARTY_INVITE");
  12.         end
  13.     end
  14. end);



Though in all honesty, you could just run the following to stop the UI from processing party invites.
This won't actually decline the invite, but it'll stop the UI from telling you about it.
Code:
UIParent:UnregisterEvent("PARTY_INVITE_REQUEST");
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 03-20-15 at 01:24 AM.
  Reply With Quote