no edit summary
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
Returns information about the specified spellbook tab. | Returns information about the specified spellbook tab. | ||
CastSpell({spellID}, {spellbookTabNum}); | |||
---- | ---- | ||
| Line 23: | Line 23: | ||
;''Example'' | ;''Example'' | ||
SPELLBOOK_TAB_GENERAL = 1; | SPELLBOOK_TAB_GENERAL = 1; | ||
CastSpell( 1, SPELLBOOK_TAB_GENERAL ); | CastSpell( 1, SPELLBOOK_TAB_GENERAL ); | ||
| Line 37: | Line 37: | ||
;''Note'' | ;''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. | : 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. -NOTE: This is no longer true, the spellbookTabNum is required, and I have found no easy way to retrive this info | ||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Spell Functions|CastSpell]] | [[Category:API Spell Functions|CastSpell]] | ||