WoW:API GetNumTalentTabs: Difference between revisions

added Cata API
(pet)
(added Cata API)
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
Anonymous user