WoWInterface - View Single Post - Getting required profession levels for Recipes/Patterns/Plans/Schematics etc.?
View Single Post
10-10-18, 06:23 PM   #7
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 264
I have not converted Grail to using the new profession system, but in general you get the professions the user has with:
local prof1, prof2, archaeology, fishing, cooking, firstAid = GetProfessions()
And then you can call:
where the professionId is each of the items returned from the first call. Historically it was good enough to use the first return value (the profession name), and the third return value (the profession skill level). However, now that skill level is only within the specific expansion value. I believe the fourth return value is the maximum skill in that expansion value, so third and fourth values of 13 and 150 would mean you have skill 13/150 in the specific expansion. However, I do not know what value tells me the expansion yet.
  Reply With Quote