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:
local function checkIfInSkillGuild(guildSkillIndex)
if guildSkillIndex <= 0 then return end
local rank, advised, active, discovered = GetSkillLineDynamicInfo(SKILL_TYPE_GUILD, guildSkillIndex)
return active
end