Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
r1 release | 4.66 KB | Aug 22, 2022 | 3.4.0 | 141 | Download |
r1-1-g13fdcf1-alpha alpha | 16.82 KB | Aug 29, 2022 | 3.4.0 | 14 | Download |
Description
A library that can retrieve talent info for any specialization.
Examples
Get talent info for the current class
local LibTalentInfo = LibStub("LibTalentInfoClassic-1.0") local class = select(2, UnitClass("player")) local _, name = LibTalentInfo:GetTalentInfo(class, 1, 1) print(name)
Get talent info for a different class
local LibTalentInfo = LibStub("LibTalentInfoClassic-1.0") local class = "WARRIOR" -- non-localized class identifier for tab = 1, MAX_TALENT_TABS do for talentIndex = 1, LibTalentInfo:GetNumTalentsForTab(class, tab) do local _, name = LibTalentInfo:GetTalentInfo(class, tab, talentIndex) print(name) end end
Add a comment