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

  • Your Rating

  • Share
  • Report Abuse

LibTalentQuery-1.0

 
Project Updated:
Files Updated: Wed, Dec 9 2009
Supports Game Version: 3.3.0
Category: Libraries
Tags:

[Edit Tags]

Project Manager: Zeksie
Additional Authors: Peragor
Current Version: 3.3 Release 1
License: GNU Lesser General Public License version 2.1 (LGP
Development Site: WowAce.com
Avg Daily DL (last 30 days): 7
Downloads Total: 26,511
Favorites: 12
Comments: 5
  • 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.3 Release 1 Release 3.3.0 1,235 12/9/2009
  LibTalentQuery-1.0 3.2.2 Release 1 Release 3.2.0 1,992 10/2/2009
  LibTalentQuery-1.0 r78 Release 3.2.0 2,551 8/21/2009
  LibTalentQuery-1.0 r77 Release 3.2.0 1,415 8/18/2009
  LibTalentQuery-1.0 r70 Release 3.2.0 888 8/16/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.
  • kliegs said

    Hope this is the right place to post for this but I noticed that its not finding mouseover targets correctly. It looks like the function GuidToUnitID(guid) at line 112:
    if (UnitGUID("target") == guid) then
    return "target"
    elseif (UnitGUID("focus") == guid) then
    return "focus"


    Should be:
    if (UnitGUID("target") == guid) then
    return "target"
    elseif (UnitGUID("focus") == guid) then
    return "focus"
    elseif (UnitGUID("mouseover") == guid) then
    return "mouseover"

    Reply Report Permalink
  • 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)
  • Addon Packs Containing LibTalentQuery-1.0

Most Downloads / Day

LibTalentQuery-1.0 has not been added to any Addon Packs yet.

  • Similar Addons
  •  

Average downloads per day

  1. 487 Ace3 Libraries
  2. 437 Addon Control Panel Libraries, Development Tools...
  3. 268 Ace2 Libraries
  4. 240 LibBabble-Boss-3.0 Libraries
  5. 207 LibRock-1.0 Libraries