Skip to content

character_pet

This table holds the pet data for each pet summoned by anyone in the game.

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
idintunsignedPRINO0
entryintunsignedNO0
ownerintunsignedMULNO0
modelidintunsignedYES0
CreatedBySpellmediumintunsignedNO0
PetTypetinyintunsignedNO0
levelsmallintunsignedNO1
expintunsignedNO0
ReactstatetinyintunsignedNO0
namevarchar(21)NOPet
renamedtinyintunsignedNO0
slottinyintunsignedMULNO0
curhealthintunsignedNO1
curmanaintunsignedNO0
curhappinessintunsignedNO0
savetimeintunsignedNO0
abdatatextYESNULL
 

Description of fields ​

id ​

The special pet ID. This is a unique identifier among all pets.  

entry ​

The creature entry of this pet. See  

owner ​

The character guid of the pet's owner.  

modelid ​

The model id used to display the pet.  

CreatedBySpell ​

The Spell ID that has created this pet. May be 0 if pet was tamed via command .pet create For hunters, this is Tame Beast or Call Pet. For warlocks, mages or death knight, it is the spell that summoned the creature.  

PetType ​

The type of pet that this is.

IDNameComment
0SUMMON_PETWarlock, Mage, Death Knight
1HUNTER_PETHunter tamed

 

level ​

The current level of the pet.  

exp ​

The current experience that this pet has. For summoned pets, this field is always 0.  

Reactstate ​

The current reaction state of the pet.

IDNameComment
0REACT_PASSIVEattack when ordered
1REACT_DEFENSIVEattack when attacked
2REACT_AGGRESSIVEattack on sight

 

name ​

The pet's name.  

renamed ​

  • 0: Pet has never been renamed and still uses the same name as the creature that was tamed.
  • 1: Pet has been renamed.  

slot ​

The pet slot that the pet is in.

  • 0: pet is with the player and active
  • 1 – 4: for pets in stable (slot 1 – 4)
  • 100: pet is with the player but currently dismissed  

curhealth ​

The current pet health at the time it was saved to DB.  

curmana ​

The current pet mana at the time it was saved to DB.  

curhappiness ​

The current pet happiness of tamed pets. Otherwise 0.  

savetime ​

The time when the pet was last saved, in Unix time.  

abdata ​

Pets Action Bar data.

10 space separated type-action pairs type1 action1 typeN actionN

typeNameCommentaction
0x01ACT_PASSIVE0x01 - passiveSpell ID or 0
0x81ACT_DISABLED0x80 - castableSpell ID
0xC1ACT_ENABLED0x40 | 0x80 - auto cast + castableSpell ID
0x07ACT_COMMAND0x01 | 0x02 | 0x04COMMAND_ [STAY, FOLLOW, ATTACK]
0x06ACT_REACTION0x02 | 0x04REACT_ [PASSIVE, DEFENSIVE, AGGRESSIVE]