Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:World of Warcraft API
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Spell === The 'spellID' is the index of a spell in a spellbook. The indices increase from top to bottom, then left to right, then between categories, e.g.: General -> Discipline. spellIDs will change as players learn new spells and 'professions'. :PROTECTED {{id|API|CastShapeshiftForm}}(index) :PROTECTED {{id|API|CastSpell}}(spellID, "bookType") - Cast the specified spell by ID. spellbookTab is "spell" or "pet". As of patch 2.0, this function has been restricted to Blizzard signed UI mods. Note: You can still use this function to open Craft windows and activate Lock Picking. (protected 2.0) :PROTECTED {{id|API|CastSpellByName}}("name"[, onSelf]) - Cast the specified spell by display name. As of patch 2.0, this function has been restricted to Blizzard signed UI mods. Note: You can still use this function to open Craft windows and activate Lock Picking. (protected 2.0) :{{id|API|GetMultiCastTotemSpells}}(totemslot) - Returns a list of spellIDs that are applicable for the specified totem slot (1-4) (added 3.2) :{{id|API|GetNumShapeshiftForms}}() :{{id|API|GetNumSpellTabs}}() - Returns the total number of tabs in the user's spellbook. :{{id|API|GetQuestLogRewardSpell}} :{{id|API|GetRewardSpell}} :{{id|API|GetShapeshiftForm}}(unknown) - returns zero-based index of current form/stance :{{id|API|GetShapeshiftFormCooldown}}(index) :{{id|API|GetShapeshiftFormInfo}}(index) - Retrieves information about an available ShapeshiftForm or Stance. :{{id|API|GetSpellAutocast}}("spellName" | spellId, bookType) - Check whether the specified spell autocasts or not. :{{id|API|GetSpellBookItemInfo}}(spellID, "bookType") - Returns the spell's type and spellID for a spell in the player's spellbook. :{{id|API|GetSpellBookItemName}}(spellID, "bookType") - Returns the spell name and spell rank for a spell in the player's spellbook. :{{id|API|GetSpellCooldown}}(spellName | spellID, "bookType") - Retrieves data on the cooldown of a specific spell. :{{id|API|GetSpellDescription}}(spellID) - Retrieves the description text of a specific spell (enhanced tooltip text). :{{id|API|GetSpellInfo}} (spellId | spellName | spellLink) - Returns the spell's info, including name, cost, icon, cast time, and range. :{{id|API|GetSpellLink}} (spellName, spellRank) - Returns the spell's link. (added 2.4) :{{id|API|GetSpellTabInfo}}(spellbookTabNum) - Returns information about the specified spellbook tab. :{{id|API|GetSpellTexture}}(spellName | spellID, "bookType") - Returns the texture used for the spell's icon. :{{id|API|GetTotemInfo}}(slot) - Returns information about a totem. :{{id|API|GetSpellPowerCost}}(spellID) - Returns information about spell's resource cost (mana/focus/etc.), in the form of tables describing each resource. :{{id|API|IsAttackSpell}}(spell) - Returns 1 if the spell is the "Attack" spell. :{{id|API|IsAutoRepeatSpell}}(spell) :{{id|API|IsPassiveSpell}}(spellID, "bookType") - Returns whether the icon in your spellbook is a Passive ability. Formerly IsSpellPassive(spell). :{{id|API|IsSpellInRange}}("spellName", [unit]) - Is nil for no valid target, 0 for out of range, 1 for in range. :{{id|API|IsUsableSpell}}(spell) :{{id|API|PickupSpell}}("spellName" | spellID, "bookType") - Loads an action button onto the cursor to be dropped into a quickbar slot. :UI {{id|API|QueryCastSequence}}("sequence") - Returns index, item, spell for the spell/item that will be used next if the cast sequence is executed. :PROTECTED {{id|API|SetMultiCastSpell}}(actionID,spellID) - Assigns a spellID to a multicast (totem bar) actionID (added 3.2) :{{id|API|SpellCanTargetUnit}}("[[unitId|unit]]") - Returns true if the spell awaiting target selection can be cast on the specified unit. :{{id|API|SpellHasRange}}(spell) - Returns true if the specified spell has a ranged effect (i.e. requires a target). :{{id|API|SpellIsTargeting}}() - Returns true if a spell has been cast and is awaiting target selection. :PROTECTED {{id|API|SpellStopCasting}}() - Stops the current spellcast. :PROTECTED {{id|API|SpellStopTargeting}}() - Cancels the spell awaiting target selection. :PROTECTED {{id|API|SpellTargetUnit}}("[[unitId|unit]]") - Casts the spell awaiting target selection on the specified unit. :PROTECTED {{id|API|ToggleSpellAutocast}}("spellName" | spellId, bookType) - Toggles whether the specified spell should autocast or not. :{{id|API|UnitCastingInfo}}("unit") - Returns spellName, nameSubtext, text, texture, startTime, endTime, isTradeSkill, castID, interrupt . :{{id|API|UnitChannelInfo}}("unit") - Returns spellName, nameSubtext, text, texture, startTime, endTime, isTradeSkill, interrupt .
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)