Posted by hytra on Fri, 10 Jun 2011 23:56:40
If you open up the EPGP table, the current raid members are sorted to the top. I need this in my AddOn but I can't seem to figure exactly how this works .. Does anyone have any idea here?
Posted by Cayenne on Sat, 11 Jun 2011 00:42:15
Posted by hytra on Sat, 11 Jun 2011 10:41:46
Still not sure how to do this .. Can't seem to find a function that returns the guild roster, only guild info, MOTD and such things .. Further help would be appreciated.
Posted by jnwhiteh on Sat, 11 Jun 2011 10:45:06
You didn't say anything about the guild roster, only about your raid.
Shockingly, you want GetGuildRosterInfo and the other guild functions, linked from that page and on the categories page.
Posted by hytra on Sat, 11 Jun 2011 12:53:58
I think I mixed up my several issues here lol, sorry :) However GetGuildRosterInfo only returns info from that specific player.
Posted by jnwhiteh on Sat, 11 Jun 2011 14:07:31
Yes, of course. That's how almost every single function in the API works. Once the guild roster has been loaded you can do something like:
for i = 1, GetNumGuildMembers() do local name = GetGuildRosterInfo(i) if name then print(name, "is in my guild") end end
Again, look at the Guild category of API functions: