Fandom

WoWWiki

API GetTrainerServiceAbilityReq

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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.

Also on Fandom

Random Wiki