LibTalentQuery-1.0

Abandoned
Library to help with querying unit talents.

Library to help with querying unit talents. There's many factors using the NotifyInspect() / INSPECT_TALENT_READY combo which will invalidate the results (spammy inspect addons, zoning, roster updates). This library helps by removing that layer of uncertainty and complexity from your addon to give a simple Query/Result to deal with.

Example Usage:

local TalentQuery = LibStub:GetLibrary("LibTalentQuery-1.0")
TalentQuery.RegisterCallback(self, "TalentQuery_Ready")

local raidTalents = {}
...
TalentQuery:Query(unit)
...
function MyAddon:TalentQuery_Ready(e, name, realm, unitid)
	local isnotplayer = not UnitIsUnit(unitid, "player")
	local group = GetActiveTalentGroup(isnotplayer)
	local spec = {}
	for tab = 1, GetNumTalentTabs(isnotplayer) do
		local _, treename, _, _, pointsspent = GetTalentTabInfo(tab, isnotplayer, nil, group)
		tinsert(spec, pointsspent)
	end
	raidTalents[UnitGUID(unitid)] = spec
end

The LibTalentQuery-1.0 Team

profile avatar
  • 1
    Followers
  • 9
    Projects
  • 17.0M
    Downloads
Donate

More from Forge_User_26050436View all

  • GrimReaper project image

    GrimReaper

    • 99.9K
    • Addons

    Review any raid or party members recent incoming combat along with health level.

    • 99.9K
    • October 17, 2020
    • Addons
  • X-Perl UnitFrames project image

    X-Perl UnitFrames

    • 16.4M
    • Addons

    Replaces the normal unit, party, target, pet frames and adds target-of-target.

    • 16.4M
    • October 25, 2014
    • Addons
    • +1
  • ZOMGBuffs project image

    ZOMGBuffs

    • 285.7K
    • Addons

    All in one buffing mod for all classes. Paladin buff generated assignments based on Paladin capabilities and raid member sub-...

    • 285.7K
    • May 15, 2012
    • Addons
    • +1
  • LibGroupTalents-1.0 project image

    LibGroupTalents-1.0

    • 48.0K
    • Addons

    Library to help with querying unit talents.

    • 48.0K
    • July 14, 2011
    • Addons
  • GrimReaper project image

    GrimReaper

    • 99.9K
    • Addons

    Review any raid or party members recent incoming combat along with health level.

    • 99.9K
    • October 17, 2020
    • Addons
  • X-Perl UnitFrames project image

    X-Perl UnitFrames

    • 16.4M
    • Addons

    Replaces the normal unit, party, target, pet frames and adds target-of-target.

    • 16.4M
    • October 25, 2014
    • Addons
    • +1
  • ZOMGBuffs project image

    ZOMGBuffs

    • 285.7K
    • Addons

    All in one buffing mod for all classes. Paladin buff generated assignments based on Paladin capabilities and raid member sub-...

    • 285.7K
    • May 15, 2012
    • Addons
    • +1
  • LibGroupTalents-1.0 project image

    LibGroupTalents-1.0

    • 48.0K
    • Addons

    Library to help with querying unit talents.

    • 48.0K
    • July 14, 2011
    • Addons