WoW:API CastSpell: Difference between revisions
Jump to navigation
Jump to search
CastSpell -Documentation by Lorrick-
No edit summary |
mNo edit summary |
||
Line 37: | Line 37: | ||
;''Note'' | ;''Note'' | ||
: | : Just use SpellBookFrame.bookType as the spellbookTabNum for any spell. the id is then just counted from the beginning through all tabs. the CastSpell function can only be used in OnClick functions. Another way is to use it in a Slash command and then the user makes a macro out of it and clicks on it. (seems WoW only allows this when a mouseclick / key input has initiated it) | ||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Spell Functions|CastSpell]] | [[Category:API Spell Functions|CastSpell]] |
Revision as of 09:26, 7 May 2005
Returns information about the specified spellbook tab.
CastSpell({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
- Just use SpellBookFrame.bookType as the spellbookTabNum for any spell. the id is then just counted from the beginning through all tabs. the CastSpell function can only be used in OnClick functions. Another way is to use it in a Slash command and then the user makes a macro out of it and clicks on it. (seems WoW only allows this when a mouseclick / key input has initiated it)