View Single Post
08/08/19, 06:34 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,971
Code:
* GetSkillLineDynamicInfo(*[SkillType|#SkillType]* _skillType_, *luaindex* _skillLineIndex_)
** _Returns:_ *luaindex* _rank_, *bool* _advised_, *bool* _active_, *bool* _discovered_
*bool* _advised_
*bool* _active_
*bool* _discovered_
One of these should say true if you have it activated or discovered. Where discovered maybe also true if you have found a book of the mages guild but ar enot member of the mages guild? Not sure, you'd need to test this.

Skilltype = SKILL_TYPE_GUILD
skillLineIndex = The guild's index you want to check

Lua Code:
  1. local function checkIfInSkillGuild(guildSkillIndex)
  2.    if guildSkillIndex <= 0 then return end
  3.    local  rank, advised, active, discovered = GetSkillLineDynamicInfo(SKILL_TYPE_GUILD, guildSkillIndex)
  4.    return active
  5. end

Last edited by Baertram : 08/08/19 at 06:37 AM.
  Reply With Quote