View Single Post
05/21/17, 04:12 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
You could use the following function to obtain the guild note of a member

Lua Code:
  1. local _,memberNote = GetGuildMemberInfo(guildId, GetGuildMemberIndexFromDisplayName(guildId, displayNameOfGuildMember) )

-guildId is the id of the guild that you are checking the note for
-displayNameOfGuildMember should be the shown name of the guild member (at the guild roster)

Ther was somethign with guildId if I remember right so that the guild ids were not always 1 to 5 (e.g. if you have left your 3rd guild the id of the guild 3 was removed and 4 got 3, 5 got 4. Or something similar.
After a reloadui the ids could be moved too, but I'm not sure anymore. You need to test this).
  Reply With Quote