WoW:API HasPetSpells: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 13: Line 13:
;''Returns''
;''Returns''


:; hasPetSpells, petToken
:; numPetSpells, petToken


:;hasPetSpells : Boolean - <tt>true</tt> if the player has pet spells
:;numPetSpells : Boolean - <tt>nil</tt> if the player has no pet spells, otherwise returns the number of pet spells.
:;petToken : String - The pet token
:;petToken : String - The pet token, can be "DEMON" or "PET"


----
----
Line 28: Line 28:
;''Description''
;''Description''


: Returns true if the player has pet spells.
: Returns <tt>nil</tt> if the player has no pet spells, the number of pet spells otherwise.


----
----

Revision as of 13:17, 31 October 2005

HasPetSpells -Documentation by AlexanderYoshi-

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.

Template:WoW API