View Single Post
03/11/14, 05:31 PM   #6
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
Ooh, just looked at what was gonna be the start of my GuildMemberNames addon and realised I did find a GuildData event.

EVENT_MANAGER:RegisterForEvent( "{AddonName}", EVENT_GUILD_DATA_LOADED, GuildDataLoaded)

So you may want to switch out the guild data stuff into that function. I never got to the point of testing that it worked though.

And you could use EVENT_GUILD_MEMBER_ADDED even to display peoples details as they are added instead of in the function that is adding the members.

Oh, and actually, based on my little test run of these functions to see what the difference is, display Name may also be account name. As in it may be the displayname you see for that person, your friend as @Name then that is the name you are seeing etc.

local charName = GetUnitName("player")
local serverCharName = GetUniqueNameForCharacter(charName)
local accountName = GetDisplayName()

Last edited by Xrystal : 03/11/14 at 05:34 PM.
  Reply With Quote