Thread Tools Display Modes
05-31-06, 01:50 PM   #1
AlH
A Kobold Labourer
Join Date: May 2006
Posts: 1
AcceptGroup() API

Hi,
I'm trying to automatically accept group invitations from certain ppl in my addon using AcceptGroup within the PARTY_INVITE_REQUEST event. I got this working, it accepts the invite, I'm added into the group, but the invitation dialog remains on the screen. It does not matter whether accept or decline is pressed as niether of them do anything at that point, but the dialog is an annoyance. How do I keep this dialog from popping up?

Thanks
  Reply With Quote
06-02-06, 12:32 AM   #2
Dhraga
A Fallenroot Satyr
Join Date: Apr 2005
Posts: 23
Have you tried AceAutoInvite : http://www.wowinterface.com/download...utoInvite.html

Either it does the job for you or you might get some ideas from the code

Good luck,
/Dhraga
  Reply With Quote
11-04-06, 09:42 AM   #3
Airlag
A Deviate Faerie Dragon
Join Date: Nov 2006
Posts: 12
Old Question, new answer:

Code:
Old_StaticPopup_Show = StaticPopup_Show;

function StaticPopup_Show(which, text_arg1, text_arg2, data)
  if( which == "PARTY_INVITE" and additionalCondition ) then
--  dialog supressed
    return;
  else
    return Old_StaticPopup_Show(which, text_arg1, text_arg2, data);
  end
end
What the code does:
  • Save the old function for popup dialogbox
  • overwrite that function
  • if it is another dialog or if my own conditions are not met then call the old routine

Overwriting that function is definitely bad style but it works
  Reply With Quote
11-04-06, 09:54 AM   #4
Airlag
A Deviate Faerie Dragon
Join Date: Nov 2006
Posts: 12
Okay, StaticPopup_Hide("PARTY_INVITE"); is the better solution.
How do you guys find all those functions???
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » AcceptGroup() API


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off