Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API GetProfessions

From Wowpedia
Jump to: navigation, search

Returns spell tab indices of the player's current professions

prof1, prof2, archaeology, fishing, cooking, firstAid = 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.
firstAid
Number - spell tab index for First Aid, or nil if not learned.


Details

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

Patch changes

  • Battle for Azeroth Patch 8.0.1 (2018-07-17): First Aid has been removed from profession list. firstAid should be always nil