Fandom

WoWWiki

API ExpandTrainerSkillLine

104,635pages 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 < ExpandTrainerSkillLine

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

Also on Fandom

Random Wiki