Get group description - WoWInterface
Thread Tools Display Modes
03-25-19, 12:08 AM   #1
A Rage Talon Dragon Guard
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 310
Get group description

Hi all,

I am trying to create a social alert in chat ( a friend of mine asked for it ).

The code (very buggy indeed is for now something like:

Lua Code:
  1. local gmChatSocAlert = CreateFrame("Frame")
  3. -- [... other code ...]
  5. local function SocialAlert(enable)
  6.     if enable then
  7.         print("Social Alert ENABLED")
  8.         gmChatSocAlert:RegisterEvent("SOCIAL_QUEUE_UPDATE")
  9.         gmChatSocAlert:SetScript("OnEvent", function(self, event, arg1, arg2)
  10.               if event == "SOCIAL_QUEUE_UPDATE" then
  11.                  if arg2 and arg2 >= 1 then
  12.                     local className, classId, raceName, raceId, gender, name, realm = GetPlayerInfoByGUID(select(7,C_SocialQueue.GetGroupInfo(arg1)))
  13.                     print(name .." create a group")
  14.                  end
  15.               end
  16.         end)
  17.     else
  18.         print("Social Alert DISABLED")
  19.         gmChatSocAlert:UnregisterEvent("SOCIAL_QUEUE_UPDATE")
  20.     end
  21. end

The problem is that I have the groupid as arg1 (for example Party-1316-00004435906E) but I was unable to use it for get group informations like description ...

I have checked but I really don't find where and how to use it to get the missing infos.

Thanks for any info/tips and help.
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.

Last edited by gmarco : 03-25-19 at 12:32 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Get group description

Thread Tools
Display Modes

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