Wikia

WoWWiki

Watchlist Recent changes

API GetNumTalents

Main Menue



Returns the total number of talents in a tab. Note: This includes learned and unlearned talents.

numTalents = GetNumTalents(tabIndex[,inspect[,pet]]);

Arguments
tabIndex 
Integer - Specifies which tab to count the total number of talent points.
inspect 
Boolean - If true returns the information for the inspected unit instead of the player. New with 2.3.
pet 
Boolean - If true returns the information for the pet instead of the player.

Returns
numTalents 
Integer - The number of talents in that tab.

Example
local i = 1 
while i <= GetNumTalentTabs() do 
	local numTalents = GetNumTalents(i) 
       DEFAULT_CHAT_FRAME:AddMessage( numTalents .. ' ' .. GetTalentTabInfo(i) .. ' ' )
       i = i+1
end
Results 
Displays the number of talents for each tab followed by the name of the tab.

Pages on WoWWiki

95,750pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
58,025photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki