Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetProfessions

Last wiki revision 2022-08-01

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

  • 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.
  • 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.

Source

https://warcraft.wiki.gg/wiki/API_GetProfessions · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.