WoW:API LearnTalent: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
(Formatting)
Line 1: Line 1:
{{wowapi}}
Learns the name of a specified talent in a specified tab.  
Learns the name of a specified talent in a specified tab.  


  LearnTalent( ''tabIndex'' , ''talentIndex'' );
  LearnTalent( tabIndex, talentIndex );
 
== Parameters ==


----
=== Arguments ===
;''Arguments''


:;tabIndex : Integer - Specifies which tab the talent is in.
:;tabIndex : Integer - Specifies which tab the talent is in.


:;talentIndex : Integer - Specifies which talent to learn.
:;talentIndex : Integer - Specifies which talent to learn; 1 for the top-left corner talent, left to right along the first row, and then continues row for row.
 
'''Note:''' The talentIndex is counted as if it where a tree meaning that the left most talent in the top most row is number 1 followed by the one immediate to the right is number 2, if there is no more talents to the right then it continues from the left most talent on the next row.
 
----
{{Template:WoW API}}

Revision as of 19:01, 26 August 2006

WoW API < LearnTalent

Learns the name of a specified talent in a specified tab.

LearnTalent( tabIndex, talentIndex );

Parameters

Arguments

tabIndex
Integer - Specifies which tab the talent is in.
talentIndex
Integer - Specifies which talent to learn; 1 for the top-left corner talent, left to right along the first row, and then continues row for row.