Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetTrainerServiceSkillReq
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} Returns the name of the skill required, and the amount needed in that skill. Index is the selection index obtained by [[API GetTrainerSelectionIndex|GetTrainerSelectionIndex()]]. skillName, skillLevel, hasReq = GetTrainerServiceSkillReq(index) == Arguments == :index ::the number of the [[API GetTrainerSelectionIndex|selection]] in the trainer window == Returns == :;skillName: The name of the skill. :;skillLevel: The required level needed for the skill. :;hasReq: 1 or nil. Seems to be 1 for skills that you cannot learn, nil for skills you have learned already. == Example == local selection = [[API GetTrainerSelectionIndex|GetTrainerSelectionIndex()]] local skillName, skillAmt = [[API GetTrainerServiceSkillReq|GetTrainerServiceSkillReq(selection)]] DEFAULT_CHAT_FRAME:AddMessage('Skill Name: ' .. skillName) DEFAULT_CHAT_FRAME:AddMessage('Skill Amount Required: ' .. skillLevel) If you had an engineering trainer open, with a skill you knew already the output would be: Skill Name: Engineering Skill Amount Required: 375
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)