Wowpedia

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

READ MORE

Wowpedia
No edit summary
 
No edit summary
Line 17: Line 17:
 
;''Example''
 
;''Example''
 
for i=1, NUM_PET_ACTION_SLOTS, 1 do
 
for i=1, NUM_PET_ACTION_SLOTS, 1 do
local name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(i);
+
local name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = [GetPetActionInfo](i);
 
if ( name == "Sacrifice" ) then
 
if ( name == "Sacrifice" ) then
 
CastPetAction(i);
 
CastPetAction(i);

Revision as of 07:18, 25 April 2005

GetPetActionInfo

Cast the corresponding pet skill.


Arguments
(index)
index
Number - The index of the pet skill for query.

Returns
nil

Example
 for i=1, NUM_PET_ACTION_SLOTS, 1 do
   local name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = [GetPetActionInfo](i);		
   if ( name == "Sacrifice" ) then
     CastPetAction(i);
   end
 end

Description
Cast the corresponding pet skill.

Template:WoW API