API GetProfessions

Returns the spell tab indices of the character's current professions.
 prof1, prof2, archaeology, fishing, cooking = GetProfessions()
==Returns==
:;prof1: - spell tab index for the first primary profession, or nil if not learned.
:;prof2: - spell tab index for the second primary profession, or nil if not learned.
:;archaeology: - spell tab index for Archaeology, or nil if not learned.
:;fishing: - spell tab index for Fishing, or nil if not learned.
:;cooking: - 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.
* Classic uses () instead.
==Patch changes==