Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API ExpandTrainerSkillLine

From WoW Classic Wiki
ExpandTrainerSkillLine -Documentation by starlightblunder-

Expands a header, showing all spells below it.

ExpandTrainerSkillLine(id);

Arguments
id
Index of the trainer service header to expand (if the supplied index is not a header, an error is produced). Note that indices are affected by the trainer filter. (See GetTrainerServiceTypeFilter and SetTrainerServiceTypeFilter.)

Example

Expands all trainer headers.

local i, category;
for i=1,GetNumTrainerServices() do
 _ , _, category = GetTrainerServiceInfo(i);
 if (category == nil) then
  break; -- GetNumTrainerServices() does not check if you're talking to a trainer or not.
 end
 if (category == "header") then
  ExpandTrainerSkillLine(i);
 end
end



Template:WoW API