View Single Post
04-16-12, 03:07 PM   #5
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Lua Code:
  1. local frame = CreateFrame'Frame'
  2. frame:RegisterEvent'PARTY_INVITE_REQUEST'
  3. frame:SetScript('OnEvent', function(self, event, name)
  4.     SendChatMessage('Some message to reply here', 'WHISPER', nil, name)
  5.     StaticPopup1Button2:Click()
  6. end)

No need to hook stuff
  Reply With Quote