GetProfessionInfo

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 4.0.1

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

name, icon, skillLevel, maxSkillLevel, numAbilities, spelloffset, skillLine, skillModifier, specializationIndex, specializationOffset = GetProfessionInfo(index)

Arguments

index
number - The skillLineIDs from GetProfessions

Returns

name, icon, skillLevel, maxSkillLevel, numAbilities, spelloffset, skillLine, skillModifier
name
string - The localized 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.)
numAbilities
number - The number of abilities/icons listed. These are the icons you put on your action bars.
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)
skillLine
number - Reference to the profession.
skillModifier
number - Additional modifiers to your profession levels. IE: Lures for Fishing.
specializationIndex
number - A value indicating which specialization is known (ie. Transmute specialist for Alchemist)
specializationOffset
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.

Patch changes

Cataclysm Patch 4.0.1 (2010-10-12): Added.