v0.13.8

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

nametypedescription
indexnumberThe spell tab index from GetProfessions

Returns

#nametypedescription
1namestringThe localized skill name
2iconnumberthe location of the icon image
3skillLevelnumberthe current skill level
4maxSkillLevelnumberthe current skill cap (75 for apprentice, 150 for journeyman etc.)
5numAbilitiesnumberThe number of abilities/icons listed. These are the icons you put on your action bars.
6spelloffsetnumberThe offset id of the first Spell of this profession. (you can CastSpell(spelloffset + 1, "Spell") to use the first spell of this profession)
7skillLinenumberTradeSkillLineID - Reference to the profession.
8skillModifiernumberAdditional modifiers to your profession levels. IE: Lures for Fishing.
9specializationIndexnumberA value indicating which specialization is known (ie. Transmute specialist for Alchemist)
10specializationOffsetnumber
11skillLineNamestringThe 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 ↗.