多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
These functions relate to[Trainers](https://wow.gamepedia.com/Trainer "Trainer"). [BuyTrainerService](https://wow.gamepedia.com/API_BuyTrainerService "API BuyTrainerService")(index) - Used for buying new/upgrading professions, profession items and class skills. [CloseTrainer](https://wow.gamepedia.com/API_CloseTrainer "API CloseTrainer")() - Closes the trainer window. [GetNumTrainerServices](https://wow.gamepedia.com/API_GetNumTrainerServices "API GetNumTrainerServices")() - Get the number of the trainer services. [GetTrainerGreetingText](https://wow.gamepedia.com/API_GetTrainerGreetingText "API GetTrainerGreetingText")() - Get the trainer's greeting text. [GetTrainerSelectionIndex](https://wow.gamepedia.com/API_GetTrainerSelectionIndex "API GetTrainerSelectionIndex")() - Get the index of the selected trainer service. [GetTrainerServiceAbilityReq](https://wow.gamepedia.com/API_GetTrainerServiceAbilityReq "API GetTrainerServiceAbilityReq")(trainerIndex, reqIndex) - Used for displaying the requirements to learn a new profession, profession skill or class skill. [GetTrainerServiceCost](https://wow.gamepedia.com/API_GetTrainerServiceCost "API GetTrainerServiceCost")(index) - Returns the cost of a specific trainer service. [GetTrainerServiceDescription](https://wow.gamepedia.com/API_GetTrainerServiceDescription "API GetTrainerServiceDescription")(index) - Returns the description of a specific trainer service. [GetTrainerServiceIcon](https://wow.gamepedia.com/API_GetTrainerServiceIcon "API GetTrainerServiceIcon")(index) - Returns icon texture for a trainer service. [GetTrainerServiceInfo](https://wow.gamepedia.com/API_GetTrainerServiceInfo "API GetTrainerServiceInfo")(index) - Returns information about a trainer service. [GetTrainerServiceItemLink](https://wow.gamepedia.com/API_GetTrainerServiceItemLink "API GetTrainerServiceItemLink")(index) - Returns an item link for a trainer service. [GetTrainerServiceLevelReq](https://wow.gamepedia.com/API_GetTrainerServiceLevelReq "API GetTrainerServiceLevelReq")(index) - Get the required level to learn the skill. [GetTrainerServiceNumAbilityReq](https://wow.gamepedia.com/index.php?title=API_GetTrainerServiceNumAbilityReq&action=edit&redlink=1 "API GetTrainerServiceNumAbilityReq (page does not exist)")() - Get the maximum number of requirements that[GetTrainerServiceAbilityReq](https://wow.gamepedia.com/API_GetTrainerServiceAbilityReq "API GetTrainerServiceAbilityReq")() has. [GetTrainerServiceSkillLine](https://wow.gamepedia.com/API_GetTrainerServiceSkillLine "API GetTrainerServiceSkillLine")(index) [GetTrainerServiceSkillReq](https://wow.gamepedia.com/API_GetTrainerServiceSkillReq "API GetTrainerServiceSkillReq")(index) - Returns a String and Variable for the requirements of a specific trainer service. [GetTrainerServiceStepIndex](https://wow.gamepedia.com/index.php?title=API_GetTrainerServiceStepIndex&action=edit&redlink=1 "API GetTrainerServiceStepIndex (page does not exist)")() [GetTrainerServiceTypeFilter](https://wow.gamepedia.com/API_GetTrainerServiceTypeFilter "API GetTrainerServiceTypeFilter")("filter") - Returns the status of a skill filter in the trainer window. [GetTrainerTradeskillRankValues](https://wow.gamepedia.com/index.php?title=API_GetTrainerTradeskillRankValues&action=edit&redlink=1 "API GetTrainerTradeskillRankValues (page does not exist)")() [IsTradeskillTrainer](https://wow.gamepedia.com/API_IsTradeskillTrainer "API IsTradeskillTrainer")() - Returns 1 if trainer is for a tradeskill. [OpenTrainer](https://wow.gamepedia.com/index.php?title=API_OpenTrainer&action=edit&redlink=1 "API OpenTrainer (page does not exist)")() [SelectTrainerService](https://wow.gamepedia.com/API_SelectTrainerService "API SelectTrainerService")() [SetTrainerServiceTypeFilter](https://wow.gamepedia.com/API_SetTrainerServiceTypeFilter "API SetTrainerServiceTypeFilter")("filter", state) - Sets the status of a skill filter in the trainer window.