- Home
- Downloads
-
Addons & Mods
Featured
World of Warcraft
4,841 Addons
-
Popular Downloads
- Top World of Warcraft Addons
- Top Rift Addons
- Top Skyrim Mods
- Top Minecraft Server Mods
- Top Terraria Maps
- Top Starcraft II Maps
- Top Runes of Magic Addons
- Top Warhammer Online Addons
- Top Age of Conan Addons
-
- Curse Client
- Premium
- News
- Giveaways
- Forums
LibTalentQuery-1.0
- 1 Like
- World of Warcraft
- 44,316 Downloads
- Supports: 4.0.1
- 6 Average Daily Downloads
- Comments
- Created 3/30/2008 11:21:10 AM
- Updated 10/18/2010 2:09:56 AM
- 30 Favorites
- Project Site
- License: GNU Lesser General Public License version 2.1 (LGPLv2.1)
- Release Type: Release
- Newest File: 4.0 Release 1
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
------------------------------------------------------------------------
r88 | greltok | 2010-10-18 07:08:53 +0000 (Mon, 18 Oct 2010) | 1 line
Changed paths:
A /tags/4.0 Release 1 (from /trunk:87)
Tagging as 4.0 Release 1
------------------------------------------------------------------------
r87 | greltok | 2010-10-17 04:35:37 +0000 (Sun, 17 Oct 2010) | 1 line
Changed paths:
M /trunk/LibTalentQuery-1.0.toc
Removed unneeded no-lib-strip directive, as the .pkgmeta specifies enable-nolib-creation: no.
------------------------------------------------------------------------
r86 | greltok | 2010-10-16 09:02:29 +0000 (Sat, 16 Oct 2010) | 1 line
Changed paths:
M /trunk/.pkgmeta
D /trunk/CallbackHandler-1.0
D /trunk/LibStub
M /trunk/LibTalentQuery-1.0.lua
M /trunk/LibTalentQuery-1.0.toc
Updated for 4.0.
------------------------------------------------------------------------
| File Name | Release Type | Game Version | Downloads | Date |
|---|---|---|---|---|
| 4.0 Release 1 | Release | 4.0.1 | 17,054 | 10/18/2010 2:09:56 AM |
| 3.3 Release 2 | Release | 3.3.5 | 1,301 | 8/27/2010 11:58:09 AM |
| 3.3 Release 1 | Release | 3.3.0 | - | 12/9/2009 5:16:18 AM |
| 3.2.2 Release 1 | Release | 3.2.0 | - | 10/2/2009 2:19:27 AM |
| r78 | Release | 3.2.0 | - | 8/21/2009 8:49:05 AM |
| r77 | Release | 3.2.0 | - | 8/17/2009 8:40:41 PM |
| r70 | Release | 3.2.0 | - | 8/16/2009 4:15:05 PM |
| r69 | Release | 3.2.0 | 1 | 8/14/2009 9:06:28 PM |
| r68 | Release | 3.2.0 | - | 8/9/2009 5:21:32 PM |
| r67 | Release | 3.2.0 | - | 8/9/2009 3:08:12 AM |
| r66 | Release | 3.2.0 | - | 8/9/2009 2:23:50 AM |
| 3.2 Release 3 | Release | 3.2.0 | - | 8/9/2009 1:41:57 AM |
| 3.2 Release 2 | Release | 3.2.0 | - | 8/8/2009 4:02:02 PM |
| 3.2 Release | Release | 3.2.0 | - | 8/7/2009 6:05:46 PM |
| WoW 3.1.2 Release | Release | 3.1.0 | - | 5/21/2009 5:29:46 AM |
| r52 | Beta | 2.4.3 | - | 10/12/2008 6:41:12 AM |
| LibTalentQuery-1.0-r67107 | Beta | 2.4.3 | - | 3/30/2008 7:59:47 AM |
| LibTalentQuery-1.0-r67052 | Beta | 2.4.3 | - | 3/30/2008 2:29:17 AM |
| LibTalentQuery-1.0-r66357 | Beta | 2.4.3 | - | 3/27/2008 4:02:38 AM |
| LibTalentQuery-1.0-r66232 | Beta | 2.4.3 | - | 3/26/2008 4:45:18 PM |
| LibTalentQuery-1.0-r66208 | Beta | 2.4.3 | - | 3/26/2008 4:01:24 PM |
| LibTalentQuery-1.0-r65971 | Beta | 2.4.3 | - | 3/25/2008 10:15:03 PM |
| LibTalentQuery-1.0-r65738 | Beta | 2.4.3 | - | 3/25/2008 5:06:35 AM |
| LibTalentQuery-1.0-r65546 | Beta | 2.3.3 | 2 | 3/24/2008 6:09:37 AM |
| LibTalentQuery-1.0-r65540 | Beta | 2.3.3 | - | 3/24/2008 4:22:58 AM |
| LibTalentQuery-1.0-r65520 | Beta | 2.3.3 | - | 3/24/2008 2:27:30 AM |
| LibTalentQuery-1.0-r65467 | Beta | 2.3.3 | 2 | 3/23/2008 9:03:10 AM |
| LibTalentQuery-1.0-r65466 | Beta | 2.3.3 | - | 3/23/2008 8:42:51 AM |
| LibTalentQuery-1.0-r65445 | Beta | 2.3.3 | - | 3/23/2008 6:24:30 AM |
| LibTalentQuery-1.0-r65434 | Beta | 2.3.3 | - | 3/23/2008 2:03:23 AM |
| LibTalentQuery-1.0-r65353 | Beta | 2.3.3 | - | 3/22/2008 5:03:27 AM |
| LibTalentQuery-1.0-r65141 | Beta | 2.3.3 | - | 3/20/2008 1:54:52 AM |
| LibTalentQuery-1.0-r65082 | Beta | 2.3.3 | - | 3/19/2008 5:02:04 AM |
| LibTalentQuery-1.0-r64821 | Beta | 2.3.3 | 1 | 3/17/2008 3:45:14 AM |
| LibTalentQuery-1.0-r64729 | Beta | 2.3.3 | - | 3/16/2008 7:43:22 AM |
| LibTalentQuery-1.0-r64028 | Beta | 2.3.3 | 1 | 3/9/2008 6:00:06 AM |
| LibTalentQuery-1.0-r64026 | Beta | 2.3.3 | - | 3/9/2008 5:22:35 AM |

Comments
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"
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.
Should be:
return unit.."target"
and
return unit.."pettarget"
instead of:
return unit