Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
(Spam removal)
 
No edit summary
 
Line 1: Line 1:
  +
{{Removed|patch=4.0.3a}}
Returns information about a specified talent in a specified tab.
 
  +
{{#data:Itemtip
  +
|name=Small Brown-Wrapped Package
  +
|quality=common
  +
|icon=inv_misc_gift_05
  +
|bind=bop
  +
|ilvl=0
  +
|sellprice=25
  +
|itemid=15699
  +
|open=1
  +
}}
   
  +
==Source==
''nameTalent'' , ''iconPath'' , ''iconX'' , ''iconY'' , ''currentRank'' , ''maxRank'' = GetTalentInfo( ''tabIndex'' , ''talentIndex'' );
 
  +
This item is a quest reward from {{questlong|neutral|55|Dadanga is Hungry!|id=5150}}.
   
  +
==External links==
----
 
  +
<!-- Read http://www.wowpedia.org/Wowpedia:External_links before posting your links here.
;''Arguments''
 
  +
Links that do not conform to the rules will be DELETED.
 
  +
Repeat violations may result in a BAN.
:;tabIndex : Integer - Specifies which tab the talent is in.
 
  +
Have a nice day. :) -->
 
  +
{{elinks-item|15699}}
:;talentIndex : Integer - Specifies which talent to return its name.
 
 
'''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.
 
 
----
 
;''Returns''
 
 
:;nameTalent : String - The name of the talent in that tab.
 
:;iconPath : String - The path to the icon of the talent.
 
:;iconX : Integer - The horizontal grid position of the talent icon in its talent pane tab.
 
:;iconY : Integer - The horizontal grid position of the talent icon in its talent pane tab.
 
:;currentRank : Integer - The current rank (currently assigned talent points) of the talent.
 
:;maxRank : Integer - The maximum rank (maximum number of talent points) of the talent.
 
 
----
 
;''Example''
 
 
local numTabs = GetNumTalentTabs();
 
for t=1, numTabs do
 
DEFAULT_CHAT_FRAME:AddMessage(GetTalentTabInfo(t)..":");
 
local numTalents = GetNumTalents(t);
 
for i=1, numTalents do
 
nameTalent, icon, iconx, icony, currRank, maxRank= GetTalentInfo(t,i);
 
DEFAULT_CHAT_FRAME:AddMessage("- "..nameTalent..": "..currRank.."/"..maxRank);
 
end
 
end
 
 
;''Results'' : Displays the tab name then the talents name and current/maximum ranks for each talent in each tab.
 
 
----
 
{{Template:WoW API}}
 

Revision as of 08:26, 20 April 2011

Inv misc gift 05

Source

This item is a quest reward from N [55] Dadanga is Hungry!.

External links