• World of Warcraft Addons
  • World of Warcraft
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

LibTalentQuery-1.0

 

Project Updated:
Files Updated: Fri, Oct 2 2009
Supports Game Version: 3.2.0
Category: Libraries
Tags:

[Edit Tags]

Project Manager: Zeksie
Additional Authors: Peragor
Current Version: 3.2.2 Release 1
License: GNU Lesser General Public License version 2.1 (LGP
Development Site: WowAce.com
Avg Daily DL (last 30 days): 12
Downloads Total: 25,047
Favorites: 13
Comments: 4
  • Curse Giveaways
  • Alganon

    Alganon

    Alganon Open Beta Key Giveaway Alganon is an upcoming fantasy-based MMORPG that allows thousands of people to play together in a virtual world that features a rich history dominated by commanding deities...

    Get Key

  • Contests
  • About LibTalentQuery-1.0
  •  

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
  • Downloads (5)
  •  
File Name Release Type Game Version Downloads Date
Addon Curse.com Beta 2.3.3 0 9/29/2008
  File Name Release Type Game Version Downloads Date  
  LibTalentQuery-1.0 3.2.2 Release 1 Release 3.2.0 1,840 10/2/2009
  LibTalentQuery-1.0 r78 Release 3.2.0 2,521 8/21/2009
  LibTalentQuery-1.0 r77 Release 3.2.0 1,392 8/18/2009
  LibTalentQuery-1.0 r70 Release 3.2.0 868 8/16/2009
  LibTalentQuery-1.0 r69 Release 3.2.0 798 8/15/2009
  • 1 page(s)
  • Comments

Add Comment  

Add

You need to login or register to post.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
  • Zeksie said

    Ahh. ok. fixing.

    Reply Report Permalink
  • Latest build is giving me this rather repeatedly:

    LibTalentQuery-1.0-90075 (LibTalentQuery-1.0):283: Usage: UnitClass("unit")
    LibTalentQuery-1.0-90075 (LibTalentQuery-1.0):283: in function
    (tail call): ?:

    Just thought you would like to know. I don't know that it's messing anything up for me.

    Reply Report Permalink
  • Zeksie said

    Yeh, I corrected that some time ago now. Whole thing should be pretty robust now. Was somewhat flakey previously.

    Reply Report Permalink
  • Tattersail said

    Found a bug in NameToUnitID lines 108 and 110.
    Should be:
    return unit.."target"
    and
    return unit.."pettarget"
    instead of:
    return unit

    Reply Report Permalink
  • 1 page(s)
  • Similar Addons
  •  

Average downloads per day

  1. 1,590 Addon Control Panel Libraries, Development Tools...
  2. 970 Ace3 Libraries
  3. 630 LibRock-1.0 Libraries
  4. 472 LibHealComm-4.0 Libraries
  5. 445 Ace2 Libraries