View Single Post
Old 04-15-2009   #3
Borlox
Full Member
 
Borlox's Avatar
 
Join Date: Nov 2006
Location: Germany
Posts: 141
Default Re: AcceptGroup() and StaticPopup_Hide()

Putting the following code before the call to StaticPopup_Hide should prevent the Popup from declining the invite:

Code:
for i=1, STATICPOPUP_NUMDIALOGS do
    local dlg = _G["StaticPopup"..i]
    if dlg.which == "PARTY_INVITE" then
        dlg.inviteAccepted = 1
        break
    end
end
It loops through all StaticPopups and sets the inviteAccepted flag for the one that is showing the invite message.
__________________
http://xkcd.com/378/
Borlox is offline   Reply With Quote