WoW API: GetProfessionInfo

From AddOn Studio
Revision as of 07:01, 18 September 2010 by WoWWiki>Feldar99 (Created page with "{{wowapi}} __NOTOC__ <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> Gets details on a profession from its index including name,…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetProfessionInfo

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

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

Arguments

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

Returns

name, icon, skillLevel, maxSkillLEvel, return5, 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.)
return5
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

Details

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