respawn

The ‘respawn’ table

This table replaces the old https://trinitycore.atlassian.net/wiki/spaces/tc/pages/2130011 and https://trinitycore.atlassian.net/wiki/spaces/tc/pages/2130147 tables.

The content of this table holds the respawn data of creatures and gameobjects, even if the server crashes or is shut down manually.

Structure

Field

Type

Attributes

Key

Null

Default

Extra

comment

Field

Type

Attributes

Key

Null

Default

Extra

comment

type

smallint

 

PRI

 

 

 

 

spawnId

int

 

PRI

 

 

 

 

respawnTime

bigint

 

 

 

 

 

 

mapId

smallint

 

 

 

 

 

 

instanceId

int

 

PRI

 

 

 

 

Description of the fields

type

0 = Creature

1 = GameObject

spawnId

Depending on type, the GUID of the creature/gameObject.

respawntime

The time when the creature/gameobject should be respawned in Unix time.

mapId

instanceId

If the creature was killed or the gameobject used/destroyed in an instance, this field holds the instance ID where this creature/gameobject should be respawned. Each instance is different depending on the group so this field is vital in keeping track of which creatures/gameobjects should be respawned for which players at what time.