WoW:API HasPetSpells: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m ({{wowapi}})
Line 1: Line 1:
<center>'''HasPetSpells''' ''-Documentation by AlexanderYoshi-''</center>
{{wowapi}}
 
Returns true if the player has pet spells.
Returns true if the player has pet spells.


Line 29: Line 28:


: Returns <tt>nil</tt> if the player has no pet spells, the number of pet spells otherwise.
: Returns <tt>nil</tt> if the player has no pet spells, the number of pet spells otherwise.
----
{{WoW API}}

Revision as of 12:20, 18 June 2006

WoW API < HasPetSpells

Returns true if the player has pet spells.

hasPetSpells, petToken = HasPetSpells();

Arguments
none

Returns
numPetSpells, petToken
numPetSpells
Boolean - nil if the player has no pet spells, otherwise returns the number of pet spells.
petToken
String - The pet token, can be "DEMON" or "PET"

Example
 local hasPetSpells, petToken = HasPetSpells();
Result
true | false, "?"

Description
Returns nil if the player has no pet spells, the number of pet spells otherwise.