WoW:API CastSpell: Difference between revisions
Jump to navigation
Jump to search
CastSpell -Documentation by Lorrick-
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
: Cast specified spell. | : Cast specified spell. | ||
---- | |||
;''Note'' | |||
: Currently the spellbookTabNum is ignored, but you can cast spells from other tabs by counting spellID from the General tab. Eg. with 12 spells in the General tab a spell ID of 13 corresponds to the first spell of the second tab. | |||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Spell Functions|CastSpell]] | [[Category:API Spell Functions|CastSpell]] |
Revision as of 05:43, 18 April 2005
Returns information about the specified spellbook tab.
GetSpellTabInfo({spellID}, {spellbookTabNum});
- Arguments
- ( spellID )
- spellID
- Integer - Spell ID.
- ( spellbookTabNum )
- spellbookTab
- Integer - Spellbook tab to retrieve information for. Valid values are 1 through MAX_SKILLLINE_TABS(8).
- Returns
- ??
- Example
SPELLBOOK_TAB_GENERAL = 1; CastSpell( 1, SPELLBOOK_TAB_GENERAL );
- Result
- Casts the first spell listed on the general tab of the spellbook.
- Description
- Cast specified spell.
- Note
- Currently the spellbookTabNum is ignored, but you can cast spells from other tabs by counting spellID from the General tab. Eg. with 12 spells in the General tab a spell ID of 13 corresponds to the first spell of the second tab.