Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
(Fixed to be more clear)
No edit summary
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{wowapi}}
+
{{wowapi}}__NOTOC__
Returns true if the player has pet spells.
+
Returns how many spells/skills your pet has available.
   
 
hasPetSpells, petToken = HasPetSpells();
 
hasPetSpells, petToken = HasPetSpells();
Line 11: Line 11:
 
=== Returns ===
 
=== 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.
+
:; numSpells : Number - The number of pet spells/skills. '''nil''' if you do not have a pet out.
 
:; petToken : String - Pet type, can be "DEMON" or "PET".
 
:; petToken : String - Pet type, can be "DEMON" or "PET".
   
 
== Description ==
----
 
=== 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.
+
Returns how many spells/skills the pet has available. This is ''not'' the number that are on the pet bar - it is the number of spells/skills in the pet's spellbook.

Revision as of 22:39, 9 August 2006

Returns how many spells/skills your pet has available.

hasPetSpells, petToken = HasPetSpells();

Parameters

Arguments

none

Returns

numSpells
Number - The number of pet spells/skills. nil if you do not have a pet out.
petToken
String - Pet type, can be "DEMON" or "PET".

Description

Returns how many spells/skills the pet has available. This is not the number that are on the pet bar - it is the number of spells/skills in the pet's spellbook.