API GetProfessions

Returns spell tab indices of the player's current professions prof1, prof2, archaeology, fishing, cooking = GetProfessions

Returns

 * prof1: Number - spell tab index for the first primary profession, or nil if not learned.
 * prof2: Number - spell tab index for the second primary profession, or nil if not learned.
 * archaeology: Number - spell tab index for Archaeology, or nil if not learned.
 * fishing: Number - spell tab index for Fishing, or nil if not learned.
 * cooking: Number - spell tab index for Cooking, or nil if not learned.

Details

 * The returned indices can be passed to or  functions.
 * Indices are not fixed and can change when a character learns or unlearns a profession.