WoW:API GetProfessionInfo: Difference between revisions

no edit summary
m (Noted that the name is locale specific)
No edit summary
Line 3: Line 3:
Gets details on a profession from its index including name, icon, and skill level.
Gets details on a profession from its index including name, icon, and skill level.
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
  name, icon, skillLevel, maxSkillLevel, numAbilities, spelloffset, skillLine, skillModifier = GetProfessionInfo(index)
  name, icon, skillLevel, maxSkillLevel, numAbilities, spelloffset, skillLine, skillModifier, specializationIndex, specializationOffset = GetProfessionInfo(index)


== Arguments ==
== Arguments ==
Line 18: Line 18:
;numAbilites : Number - The number of abilities/icons listed. These are the icons you put on your action bars.
;numAbilites : Number - The number of abilities/icons listed. These are the icons you put on your action bars.
;spelloffset : Number - haven't figured this one out yet
;spelloffset : Number - haven't figured this one out yet
;skillLine : Number - haven't figured this one out yet
;skillLine : Number - reference to the profession. (See Details.)
;skillModifier : Number - Additional modifiers to your profession levels. IE: Lures for Fishing.
;skillModifier : Number - Additional modifiers to your profession levels. IE: Lures for Fishing.
;specializationIndex : Number - A value indicating which specialization is known (ie. Transmute specialist for Alchemist)
;specializationOffset : Number - haven't figured this one out yet


== Details ==
== Details ==
Line 25: Line 27:
     REMOVE the section if you're just going to restate the intro line! -->
     REMOVE the section if you're just going to restate the intro line! -->
This also seems to return some kind of data on the talent trees and guild perks.
This also seems to return some kind of data on the talent trees and guild perks.
Skill Line may be useful in internationalization using the number to check the profession rather than the text (which changes with localization).
The skill lines known are: Archaeology (794), Alchemy (171), Blacksmith (164), Cooking (184), Enchanting (333), Engineer (202), First Aid (129), Fishing (356), Herbalism (182), Inscription (773), Jewelcrafting (755), Leatherworking (165), Mining (186),  Skinning (393), and Tailoring (197).
Alchemy Specializations known are: Transmute (4).
Anonymous user