AddOn Stud… Editing (section) World of Warcraft API 0 You are not logged in. The rich text editor does not work with JavaScript switched off. Please either enable it in your browser options, or visit your preferences to switch to the old MediaWiki editor === 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 . Loading editor Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above. Insert: – — … ° ≈ ≠ ≤ ≥ ± − × ÷ ← → · § Sign your username: ~~~~ Wiki markup: {{}} | [] [[]] [[Category:]] #REDIRECT [[]] <s></s> <sup></sup> <sub></sub> <code></code> <blockquote></blockquote> <ref></ref> {{Reflist}} <references/> <includeonly></includeonly> <noinclude></noinclude> {{DEFAULTSORT:}} <nowiki></nowiki> <!-- --> <span class="plainlinks"></span> Symbols: ~ | ¡ ¿ † ‡ ↔ ↑ ↓ • ¶ # ¹ ² ³ ½ ⅓ ⅔ ¼ ¾ ⅛ ⅜ ⅝ ⅞ ∞ ‘ “ ’ ” «» ¤ ₳ ฿ ₵ ¢ ₡ ₢ $ ₫ ₯ € ₠ ₣ ƒ ₴ ₭ ₤ ℳ ₥ ₦ № ₧ ₰ £ ៛ ₨ ₪ ৳ ₮ ₩ ¥ ♠ ♣ ♥ ♦ View this template This field is a spam trap. DO NOT fill it in! Edit summary Preview Mobile Desktop Show changes