GetTrainerServiceInfo
functionimplementedavailable in: camelot
Returns information about a trainer service.
The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.
Parameters
| name | type | description |
|---|---|---|
index | number | Index of the trainer service to retrieve information about. Note that indices are affected by the trainer filter. (See GetTrainerServiceTypeFilter and SetTrainerServiceTypeFilter.) |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | name | string | Name of the spell or the header (i.e. "Arcane Explosion" or "Fire"). |
| 2 | rank | string | Rank of the spell, if applicable. Headers return empty strings. |
| 3 | category | string | "used" (already have the spell), "unavailable" (can not train this skill), "available" (can train this skill) and "header". |
| 4 | expanded | number? | nil if this is a collapsed header (category == "header"), 1 otherwise. (See CollapseTrainerSkillLine and ExpandTrainerSkillLine.) |
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
sources
Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.