WoW:API GetProfessionInfo: Difference between revisions

m
Move page script moved page API GetProfessionInfo to WoW:API GetProfessionInfo without leaving a redirect
No edit summary
m (Move page script moved page API GetProfessionInfo to WoW:API GetProfessionInfo without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}} __NOTOC__
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
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 -->
 
  name, icon, skillLevel, maxSkillLevel, numAbilities, spelloffset, skillLine,
  name, icon, skillLevel, maxSkillLevel, numAbilities, spelloffset,
    skillModifier, specializationIndex, specializationOffset = GetProfessionInfo(index)
    skillLine, skillModifier, specializationIndex,
    specializationOffset = GetProfessionInfo(index)


== Arguments ==
== Arguments ==
Line 18: Line 18:
;maxSkillLevel : Number - the current skill cap (75 for apprentice, 150 for journeyman etc.)
;maxSkillLevel : Number - the current skill cap (75 for apprentice, 150 for journeyman etc.)
;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 - The offset id of the first Spell of this profession. (you can CastSpell(spelloffset + 1, "Spell") to use the first spell of this profession)
;skillLine : Number - reference to the profession. (See Details.)
;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.
Line 33: Line 33:
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).
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).
Alchemy Specializations known are: Elixir (2), Potion (3), Transmute (4).
Anonymous user