API GetProfessionInfo

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 skill index number (can be found with API 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.