v0.13.8

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

nametypedescription
indexnumberIndex of the trainer service to retrieve information about. Note that indices are affected by the trainer filter. (See GetTrainerServiceTypeFilter and SetTrainerServiceTypeFilter.)

Returns

#nametypedescription
1namestringName of the spell or the header (i.e. "Arcane Explosion" or "Fire").
2rankstringRank of the spell, if applicable. Headers return empty strings.
3categorystring"used" (already have the spell), "unavailable" (can not train this skill), "available" (can train this skill) and "header".
4expandednumber?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 ↗.