(See
Github for a slightly better formatted version)
LibGuildInfo
Author - Wobin
Date - 25/05/2014
Game -
Elder Scrolls Online
This library will retrieve and store guild member information for easy access via account name or character name
Setup- Place the library in your addon folder
- Reference LibStub in your manifest
- Reference LibGuildInfo in your manifest
- Reference LibGuildInfo in your code:
Code:
local LibGuildInfo = LibStub("LibGuildInfo-1.0")
API
The following API is defined:
GetGuildMemberByMemberName
Code:
LibGuildInfo:GetGuildMemberByMemberName(name)
- name - being either the account name with the @ symbol or the character name
Returns-
guildInfo - an object that contains all guild info used in the guild panel
GetClassNumByMemberName
Code:
LibGuildInfo:GetClassNumByMemberName(name)
Returns-
classNum - a number representing the class
- [1] = "Dragon Knight"
- [2] = "Sorcerer"
- [3] = "Nightblade"
- [6] = "Templar"
GetClassNameByMemberName
Code:
LibGuildInfo:GetClassNameByMemberName(name)
Returns-
className - The english representation of the class
GetLevelByMemberName
Code:
GetLevelByMemberName(name)
Returns- level - Numerical representation of the player character's level. Veteren ranks represented by 'Vx'
GetAllianceNumByMemberName
Code:
GetAllianceNumByMemberName(name)
Returns-
allianceNum - Numerical representation of the alliance the currently logged in player is a member of
- [1] = "Aldmeri Dominion"
- [2] = "Ebonhart Pact"
- [3] = "Daggerfall Convenant"
GetAllianceNameByMemberName
Code:
GetAllianceNameByMemberName(name)
Returns-
allianceName - The english representation of the Alliance
GetGuildRankIndexByMemberName
Code:
GetGuildRankIndexByMemberName(name)
Returns-
rankIndex - Numerical representation of the account's guild rank (1 is Guild Leader)
GetGuildRankByMemberName
Code:
GetGuildRankByMemberName(name)
Returns-
rank - A more textual representation 'GL' for Guild leader and 'Rx' for subsequent membership