WoW:API HasPetSpells: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m ({{wowapi}})
(Fixed to be more clear)
Line 4: Line 4:
  hasPetSpells, petToken = HasPetSpells();
  hasPetSpells, petToken = HasPetSpells();


----
== Parameters ==
;''Arguments''
=== Arguments ===


:''none''
:''none''


----
=== Returns ===
;''Returns''
 
:; numPetSpells, petToken
 
:;numPetSpells : Boolean - <tt>nil</tt> 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''
:; numSpells : Boolean - Returns the number of pet spells, if you do not have a pet or it's not summoned then nil is returned.
true | false, "?"
:; petToken : String - Pet type, can be "DEMON" or "PET".


----
----
;''Description''
=== Description ===


: Returns <tt>nil</tt> if the player has no pet spells, the number of pet spells otherwise.
Returns how many skills the pet has available, this is not the number that are on the pet bar but the pet skill book.

Revision as of 15:16, 9 August 2006

WoW API < HasPetSpells

Returns true if the player has pet spells.

hasPetSpells, petToken = HasPetSpells();

Parameters

Arguments

none

Returns

numSpells
Boolean - Returns the number of pet spells, if you do not have a pet or it's not summoned then nil is returned.
petToken
String - Pet type, can be "DEMON" or "PET".

Description

Returns how many skills the pet has available, this is not the number that are on the pet bar but the pet skill book.