Skip to content

corpse

This table hold info about character's corpse.

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
guidintunsignedPRINO0Character Global Unique Identifier
posXfloatNO0
posYfloatNO0
posZfloatNO0
orientationfloatNO0
mapIdsmallintunsignedNO0Map Identifier
phaseMaskintunsignedNO1
displayIdintunsignedNO0
itemCachetextNO
bytes1intunsignedNO0
bytes2intunsignedNO0
guildIdintunsignedNO0
flagstinyintunsignedNO0
dynFlagstinyintunsignedNO0
timeintunsignedMULNO0
corpseTypetinyintunsignedMULNO0
instanceIdintunsignedMULNO0Instance Identifier
 

Description of fields ​

guid ​

The guid of the character.  

posX ​

The X position of the corpse.  

posY ​

The Y position of the corpse.  

posZ ​

The Z position of the corpse.  

orientation ​

The orientation of the corpse. (North = 0.0; South = pi (3.14159))  

mapId ​

The Map ID the corpse resides on.

phaseMask ​

This is a bitmask field that describes all the phases the corpse is visible in.  

displayId ​

A ChrRace DisplayID, where race dictates the row and gender the column.

itemCache ​

Space separated list of byte fields describing the equipped items, ordered by EQUIPMENT_SLOT. byteField = displayid | (InventoryType << 24);

IndexName
0EQUIPMENT_SLOT_HEAD
1EQUIPMENT_SLOT_NECK
2EQUIPMENT_SLOT_SHOULDERS
3EQUIPMENT_SLOT_BODY
4EQUIPMENT_SLOT_CHEST
5EQUIPMENT_SLOT_WAIST
6EQUIPMENT_SLOT_LEGS
7EQUIPMENT_SLOT_FEET
8EQUIPMENT_SLOT_WRISTS
9EQUIPMENT_SLOT_HANDS
10EQUIPMENT_SLOT_FINGER1
11EQUIPMENT_SLOT_FINGER2
12EQUIPMENT_SLOT_TRINKET1
13EQUIPMENT_SLOT_TRINKET2
14EQUIPMENT_SLOT_BACK
15EQUIPMENT_SLOT_MAINHAND
16EQUIPMENT_SLOT_OFFHAND
17EQUIPMENT_SLOT_RANGED
18EQUIPMENT_SLOT_TABARD

 

bytes1 ​

Byte encoded 8bit integers. Shift each value left by 8 * byteIndex.

byteIndexValue
00
1race
2gender
3skin

 

bytes2 ​

Byte encoded 8bit integers. Shift each value left by 8 * byteIndex.

byteIndexValue
0face
1hairStyle
2hairColor
3facialStyle

 

guildId ​

The corpses guildid.  

flags ​

ValueFlagNameComment
10x01CORPSE_FLAG_BONESLeaves bones, not the body.
40x04CORPSE_FLAG_UNK2always set
80x08CORPSE_FLAG_HIDE_HELMinherited from PLAYER_FLAGS_HIDE_HELM
160x10CORPSE_FLAG_HIDE_CLOAKinherited from PLAYER_FLAGS_HIDE_CLOAK
320x20CORPSE_FLAG_LOOTABLEcan collect insignia in BGs

 

dynFlags ​

ValueFlagName
10x1CORPSE_DYNFLAG_LOOTABLE

 

time ​

Unix timestamp when the corpse was created.  

corpseType ​

IDName
0CORPSE_BONES
1CORPSE_RESURRECTABLE_PVE
2CORPSE_RESURRECTABLE_PVP

 

instanceId ​

The instance id this corpse belongs to.