WoW:API GetGuildInfo: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Indicated where index began on rank index) |
||
| Line 9: | Line 9: | ||
:;guildName : String - The name of the guild the unit is in (or nil?). | :;guildName : String - The name of the guild the unit is in (or nil?). | ||
:;guildRankName : String - unit's rank in unit's guild. | :;guildRankName : String - unit's rank in unit's guild. | ||
:;guildRankIndex : Integer - unit's rank (index). - zero based index | :;guildRankIndex : Integer - unit's rank (index). - zero based index (0 is Guild Master, 1 and above are lower ranks) | ||
Revision as of 19:02, 9 June 2008
← WoW API < GetGuildInfo
Returns guild-related information about a unit.
guildName, guildRankName, guildRankIndex = GetGuildInfo(unit);
Parameters
Arguments
- unit
- UnitId - The unit whose guild information you wish to query.
Returns
- guildName
- String - The name of the guild the unit is in (or nil?).
- guildRankName
- String - unit's rank in unit's guild.
- guildRankIndex
- Integer - unit's rank (index). - zero based index (0 is Guild Master, 1 and above are lower ranks)