WoW:API GetProfessionInfo: Difference between revisions
Jump to navigation
Jump to search
(skillModifier added!) |
m (Noted that the name is locale specific) |
||
| Line 12: | Line 12: | ||
:name, icon, skillLevel, maxSkillLevel, numAbilities, spelloffset, skillLine, skillModifier<!-- Include this line ONLY IF there are multiple return values and a large number of arguments --> | :name, icon, skillLevel, maxSkillLevel, numAbilities, spelloffset, skillLine, skillModifier<!-- 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 (locale specific) | ||
;icon : String - the location of the icon image | ;icon : String - the location of the icon image | ||
;skillLevel : Number - the current skill level | ;skillLevel : Number - the current skill level | ||
Revision as of 16:51, 23 December 2010
Gets details on a profession from its index including name, icon, and skill level.
name, icon, skillLevel, maxSkillLevel, numAbilities, spelloffset, skillLine, skillModifier = GetProfessionInfo(index)
Arguments
- index
- Number - The skill index number (can be found with API GetProfessions()
Returns
- name, icon, skillLevel, maxSkillLevel, numAbilities, spelloffset, skillLine, skillModifier
- name
- String - The skill name (locale specific)
- 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.
- spelloffset
- Number - haven't figured this one out yet
- skillLine
- Number - haven't figured this one out yet
- skillModifier
- Number - Additional modifiers to your profession levels. IE: Lures for Fishing.
Details
This also seems to return some kind of data on the talent trees and guild perks.