|
SlikerHawk@legacy41572350 (talk | contribs) m ("Returns false 99% of the time" is a completely arbitrary detail. Actual detail is given below anyway.) Â |
||
Line 1: | Line 1: | ||
+ | {{wowapi}} __NOTOC__ |
||
− | {{npcbox |
||
− | | name = Thundering Invader |
||
− | | image = ThunderInvader.jpg |
||
− | | title = |
||
− | | level = 55-57 |
||
− | | creature = |
||
− | | health = 2,700 - 2,900 |
||
− | | mana = |
||
− | | money = {{cost|}} |
||
− | | faction = Combat |
||
− | | aggro = {{aggro|-1|-1}} |
||
− | | city = |
||
− | | race = Earth elemental |
||
− | | creature = Elemental |
||
− | | sex = |
||
− | | location = [[Azshara]] {{coords|71.4|20.6|Azshara}} |
||
− | }} |
||
− | '''Thundering Invader''' can be found in [[Azshara]] {{coords|71.4|20.6|Azshara}}. |
||
− | ==Patch changes== |
||
− | {{Patch 1.4.0|note=Added.}} |
||
+ | <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> |
||
− | ==External links== |
||
+ | Get information about a spell. |
||
− | <!-- Read http://www.wowwiki.com/WoWWiki:External_links before posting your links here. |
||
+ | <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> |
||
− | Links that do not conform to the rules will be DELETED. |
||
+ | name, rank, icon, cost, isFunnel, powerType, castTime, minRange, maxRange |
||
− | Repeat violations may result in a BAN. |
||
+ | = GetSpellInfo(spellId or spellName or spellLink) |
||
− | Have a nice day. :) --> |
||
− | {{elinks-NPC|14462}} |
||
+ | |||
− | [[Category:Azshara mobs]] |
||
+ | == Arguments == |
||
− | [[Category:Earth elementals]] |
||
+ | <!-- List each argument, together with its type --> |
||
+ | :(spellId or spellName or spellLink |
||
+ | |||
+ | :;spellId : Integer - The global spell number, found on wowhead or through [[API_COMBAT_LOG_EVENT|COMBAT_LOG_EVENT]]. |
||
+ | :;spellName : String - The Name of the spell. |
||
+ | :;[[SpellLink|spellLink]] : String - The formatted link to the spell [Note: this appears to be broken, see Discussion page] |
||
+ | |||
+ | |||
+ | |||
+ | == Returns == |
||
+ | :name, rank, icon, cost, isFunnel, powerType, castTime, minRange, maxRange |
||
+ | |||
+ | :;name : String - The name of the spell. |
||
+ | :;rank : String - The rank of the spell. Returns as an empty string if there is no rank. |
||
+ | {{cata-inline}} Returns a list of stances for warrior abilities. |
||
+ | |||
+ | :;icon : String - The interface path to the icon texture. |
||
+ | :;cost : Number - The cost of the spell in Mana/Rage/Energy/Focus. |
||
+ | :;isFunnel : Boolean - Returns true if the spell is a health funnel effect. |
||
+ | :;powerType : Number - The power type required: |
||
+ | ::* -2 for Health |
||
+ | ::* 0 for Mana |
||
+ | ::* 1 for Rage |
||
+ | ::* 2 for Focus (hunter pets) |
||
+ | ::* 3 for Energy |
||
+ | ::* 4 for Happiness |
||
+ | ::* 5 for Rune |
||
+ | ::* 6 for Runic Power |
||
+ | ::* 9 for Holy Power |
||
+ | :;castTime : Number - The cast time, in milliseconds. |
||
+ | :;minRange : Number - The minimum range of the spell. |
||
+ | :;maxRange : Number - The maximum range of the spell. |
||
+ | |||
+ | == Details == |
||
+ | ===Arguments=== |
||
+ | Using '''spellId''' as the argument will always return the info. Using '''spellName''' or '''spellLink''' will only return the info if the spell is in your spellbook. Otherwise it will return nil. |
||
+ | ===isFunnel=== |
||
+ | Currently the only spells isFunnel returns true on are a warlock's [[Health Funnel]] spells, and a few other miscellaneous NPC spells. |
||
+ | |||
+ | ===PowerType=== |
||
+ | It is unknown at this time whether Happiness (PowerType 4) is ever passed as a spell cost. |
Revision as of 17:10, 4 February 2011
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Get information about a spell.
name, rank, icon, cost, isFunnel, powerType, castTime, minRange, maxRange = GetSpellInfo(spellId or spellName or spellLink)
Arguments
- (spellId or spellName or spellLink
- spellId
- Integer - The global spell number, found on wowhead or through COMBAT_LOG_EVENT.
- spellName
- String - The Name of the spell.
- spellLink
- String - The formatted link to the spell [Note: this appears to be broken, see Discussion page]
Returns
- name, rank, icon, cost, isFunnel, powerType, castTime, minRange, maxRange
- name
- String - The name of the spell.
- rank
- String - The rank of the spell. Returns as an empty string if there is no rank.
Returns a list of stances for warrior abilities.
- icon
- String - The interface path to the icon texture.
- cost
- Number - The cost of the spell in Mana/Rage/Energy/Focus.
- isFunnel
- Boolean - Returns true if the spell is a health funnel effect.
- powerType
- Number - The power type required:
- -2 for Health
- 0 for Mana
- 1 for Rage
- 2 for Focus (hunter pets)
- 3 for Energy
- 4 for Happiness
- 5 for Rune
- 6 for Runic Power
- 9 for Holy Power
- castTime
- Number - The cast time, in milliseconds.
- minRange
- Number - The minimum range of the spell.
- maxRange
- Number - The maximum range of the spell.
Details
Arguments
Using spellId as the argument will always return the info. Using spellName or spellLink will only return the info if the spell is in your spellbook. Otherwise it will return nil.
isFunnel
Currently the only spells isFunnel returns true on are a warlock's [Health Funnel] spells, and a few other miscellaneous NPC spells.
PowerType
It is unknown at this time whether Happiness (PowerType 4) is ever passed as a spell cost.