WoW:API GetSpellTabInfo

Revision as of 04:53, 4 January 2006 by WoWWiki>WoWWiki-Hammersmith (cat)
GetSpellTabInfo -Documentation by Lorrick-

Returns information about the specified spellbook tab.

name, texture, offset, numSpells = GetSpellTabInfo({spellbookTabNum});

Arguments
( spellbookTabNum )
spellbookTab
Integer - Spellbook tab to retrieve information for. Valid values are 1 through MAX_SKILLLINE_TABS(8).

Returns
Not too familiar with LUA terminology yet so bear with me. Returns 4 values that I could tell.
name, texture, offset, numSpells
name
String - Spellbook Tab Name
texture
String - Spellbook Tab Texture
offset
Number - Spellbook Tab Offset
numSpells
Number - Number of spells for this tab.

Example
name, texture, offset, numSpells = GetSpellTabInfo(1);
Result

Description
Retreive information for specified spellbook tab.

Template:WoW API