WoW:API GetNumTalentTabs: Difference between revisions

m
Move page script moved page API GetNumTalentTabs to WoW:API GetNumTalentTabs without leaving a redirect
(pet)
m (Move page script moved page API GetNumTalentTabs to WoW:API GetNumTalentTabs without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
Returns the total number of tabs of talents one has.
Returns the total number of tabs of talents one has.


  numTabs = GetNumTalentTabs([inspect[,pet]]);
  local numTabs = GetNumTalentTabs([inspect[,pet]]);


----
----
Line 55: Line 55:


This has only happened to me at startup, if talents are checked before [[Events_P_(Party,_Petition,_Pet,_PlayerBank,_Player)#PLAYER_ALIVE|PLAYER_ALIVE]] fires. They may not be available to the API before that event. - [[User:Sine Pi|Sine Pi]] ([[User talk:Sine Pi|talk]]) 12:42, 28 July 2009 (UTC)
This has only happened to me at startup, if talents are checked before [[Events_P_(Party,_Petition,_Pet,_PlayerBank,_Player)#PLAYER_ALIVE|PLAYER_ALIVE]] fires. They may not be available to the API before that event. - [[User:Sine Pi|Sine Pi]] ([[User talk:Sine Pi|talk]]) 12:42, 28 July 2009 (UTC)
---
;Cataclysm
This API has been changed for Cataclysm:
(unknown), TreeNameLocalized, TreeDescription, TreeIcon, PointsSpent, TreeNameUnlocalized , (unknown), (unknown) = GetTalentTabInfo(i)
For instance, as paladin you could get:
unknown A = 831
TreeNameLocalized = Holy
TreeDescription = Invokes the power of the Light to protect and to heal.
TreeIcon = Interface\Icons\Spell_Holy_HolyBolt
PointsSpent = 5
TreeNameUnlocalized = PALADINHOLY
unknown B = 0
unknown C = true
== Patch changes ==
{{Patch 5.0.4|note=Replaced by {{api|GetNumSpecializations}}.}}
== See also ==
* {{api|SetActiveSpecGroup}}
* {{api|GetNumSpecGroups}}
* {{api|GetSpecialization}}
* {{api|GetNumUnspentTalents}}
* {{api|GetNumSpecializations}}
* {{api|GetSpecializationInfo}}
* {{api|GetSpecializationRole}}
* {{api|t=e|ACTIVE_TALENT_GROUP_CHANGED}}
Anonymous user