WoW:API GetProfessions: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{wowapi}} __NOTOC__ <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> Gives all of the current character's professions <!-- Li…") |
m (Move page script moved page API GetProfessions to API GetProfessions without leaving a redirect) |
(No difference)
|
Latest revision as of 04:46, 15 August 2023
Gives all of the current character's professions
prof1, prof2, archaeology, fishing, cooking, firstAid = GetProfessions();
Returns[edit]
- prof1, prof2, archaeology, fishing, cooking, firstAid
- prof1
- Number - the index of the first profession
- prof2
- Number - the index of the second profession
- archaeology
- Number - the index of Archaeology
- fishing
- Number - the index of Fishing
- cooking
- Number - the index of Cooking
- firstAid
- Number - the index of First Aid
Details[edit]
The indices returned can be passed into the API GetProfessionInfo function. The indices are not fixed and can change when a character learns or unlearns a profession. If you do not have one of the skills the value returned will be nil.