Returns information about a tab in the spellbook
See also Spell functions.
Signature:
name, texture, offset, numSpells = GetSpellTabInfo(index)
Arguments:
index- Index of a spellbook tab (between 1 andGetNumSpellTabs()) (number)
Returns:
name- Name of the spellbook tab (string)texture- Path to an icon texture for the spellbook tab (string)offset-spellbookIDof the first spell to be listed under the tab (number)numSpells- Number of spells listed under the tab (number)
Examples:
-- Print the valid spellIds for each tab
local numTabs = GetNumSpellTabs()
for i=1,numTabs do
  local name,texture,offset,numSpells = GetSpellTabInfo(i)
  print("Spell tab \"" .. name .. "\" contains spells from id " .. offset + 1 .. " through " .. offset + numSpells)
end