WoW API: GetTrainerServiceAbilityReq

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetTrainerServiceAbilityReq to API GetTrainerServiceAbilityReq without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetTrainerServiceAbilityReq


Gets the name of a requirement for training a skill and whether the player meets the requirement.

local ability, hasReq = GetTrainerServiceAbilityReq(trainerIndex, reqIndex)


Arguments[edit]

trainerIndex
Number - Index of the trainer service to retrieve information about. Note that indices are affected by the trainer filter. (See GetTrainerServiceTypeFilter and SetTrainerServiceTypeFilter.)
reqIndex
Number - Index of the requirement to retrieve information about.


Returns[edit]

ability
String - The name of the required ability.
hasReq
(Boolean?) - Flag for if the player meets the requirement.