WoW:API GetNumGuildMembers: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Noted that this function is bugged) |
||
| Line 17: | Line 17: | ||
<dl><dd>This function seems to return 0 if you have not yet opened the guild roster. I suspect that a call to GuildRoster(), before calling this function will cause it to return the proper result.</dd> | <dl><dd>This function seems to return 0 if you have not yet opened the guild roster. I suspect that a call to GuildRoster(), before calling this function will cause it to return the proper result.</dd> | ||
<dd>This function will return a maximum value of 500.</dd></dl> | <dd>This function will return a maximum value of 500.</dd></dl> | ||
<hr /> | |||
<dl><dt><em>Warnings</em></dt></dl> | |||
<dl><dd>If the character is not part of a guild, but has left (/gquit) one, it will still return the number of members of the guild the character was last in. This means that GetNumGuildMembers() is not a reliable way to determine if the character is in a guild or not.</dd> | |||
</dl> | |||
<hr /> | <hr /> | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
Revision as of 16:48, 5 July 2006
Returns the number of guild members
- Arguments
- offline - boolean
- Returns
- If called with no argument gets number of online guild members. If offline argument is true get number of all guild members.
- Example
local numGuildMembers = GetNumGuildMembers();
local numAllGuildMembers = GetNumGuildMembers(true);
- Notes
- This function seems to return 0 if you have not yet opened the guild roster. I suspect that a call to GuildRoster(), before calling this function will cause it to return the proper result.
- This function will return a maximum value of 500.
- Warnings
- If the character is not part of a guild, but has left (/gquit) one, it will still return the number of members of the guild the character was last in. This means that GetNumGuildMembers() is not a reliable way to determine if the character is in a guild or not.