WoW:API GetProfessionInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Figured out the significance of the 5th return variable)
Line 3: Line 3:
Gets details on a profession from its index including name, icon, and skill level.
Gets details on a profession from its index including name, icon, and skill level.
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
  name, icon, skillLevel, maxSkillLevel, return5, return6, return7= GetProfessionInfo(index)
  name, icon, skillLevel, maxSkillLevel, numAbilities, return6, return7= GetProfessionInfo(index)


== Arguments ==
== Arguments ==
Line 10: Line 10:


== Returns ==
== Returns ==
:name, icon, skillLevel, maxSkillLevel, return5, return6, return7<!-- Include this line ONLY IF there are multiple return values and a large number of arguments -->
:name, icon, skillLevel, maxSkillLevel, numAbilities, return6, return7<!-- Include this line ONLY IF there are multiple return values and a large number of arguments -->
<!-- List each return value, together with its type -->
<!-- List each return value, together with its type -->
;name : String - The skill name
;name : String - The skill name
Line 16: Line 16:
;skillLevel : Number - the current skill level
;skillLevel : Number - the current skill level
;maxSkillLevel : Number - the current skill cap (75 for apprentice, 150 for journeyman etc.)
;maxSkillLevel : Number - the current skill cap (75 for apprentice, 150 for journeyman etc.)
;return5 : Number - haven't figured this one out yet
;numAbilites : Number - The number of abilities/icons listed. These are the icons you put on your action bars.
;return6 : Number - haven't figured this one out yet
;return6 : Number - haven't figured this one out yet
;return7 : Number - haven't figured this one out yet
;return7 : Number - haven't figured this one out yet

Revision as of 21:31, 11 October 2010

WoW API < GetProfessionInfo

Gets details on a profession from its index including name, icon, and skill level.

name, icon, skillLevel, maxSkillLevel, numAbilities, return6, return7= GetProfessionInfo(index)

Arguments

index
Number - The skill index number (can be found with API GetProfessions()

Returns

name, icon, skillLevel, maxSkillLevel, numAbilities, return6, return7
name
String - The skill name
icon
String - the location of the icon image
skillLevel
Number - the current skill level
maxSkillLevel
Number - the current skill cap (75 for apprentice, 150 for journeyman etc.)
numAbilites
Number - The number of abilities/icons listed. These are the icons you put on your action bars.
return6
Number - haven't figured this one out yet
return7
Number - haven't figured this one out yet

Details

This also seems to return some kind of data on the talent trees and guild perks.