Originally Posted by Spawnova
I'm using GetNumGuildMembers to return the number on online members but for some reason it returns less then who is online
Wowpedia says argument1 returns total members and argument2 returns who is actually online but argument2 does not return the correct value, interesting enough if i add an argument3 like so:
_,_,1 = GetNumGuildMembers() it does return the correct value
So my question is this. Is wowpedia/wowwikki not updated on this or am I missing something?
|
I've always gotten correct values if I listen for GUILD_ROSTER_UPDATE and then wait a second or two before calling GetNumGuildMembers.
If you need to force an update and retrieve updated guild information from the server you can call GuildRoster(), which will subsequently cause GUILD_ROSTER_UPDATE to fire when new information is retrieved. Only use this when necessary, however, as it is a server request and will cause a minor game freeze.