GetProfessionInfo
functionimplementedavailable in: camelot
Gets details on a profession from its index including name, icon, and skill level.
The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.
Parameters
| name | type | description |
|---|---|---|
index | number | The spell tab index from GetProfessions |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | name | string | The localized skill name |
| 2 | icon | number | the location of the icon image |
| 3 | skillLevel | number | the current skill level |
| 4 | maxSkillLevel | number | the current skill cap (75 for apprentice, 150 for journeyman etc.) |
| 5 | numAbilities | number | The number of abilities/icons listed. These are the icons you put on your action bars. |
| 6 | spelloffset | number | The offset id of the first Spell of this profession. (you can CastSpell(spelloffset + 1, "Spell") to use the first spell of this profession) |
| 7 | skillLine | number | TradeSkillLineID - Reference to the profession. |
| 8 | skillModifier | number | Additional modifiers to your profession levels. IE: Lures for Fishing. |
| 9 | specializationIndex | number | A value indicating which specialization is known (ie. Transmute specialist for Alchemist) |
| 10 | specializationOffset | number | |
| 11 | skillLineName | string | The expansion variant name, e.g. "Midnight Mining" |
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
sources
Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.