respawn
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 |
|---|---|---|---|---|---|---|---|
| type | smallint | unsigned | PRI | NO | |||
| spawnId | int | unsigned | PRI | NO | |||
| respawnTime | bigint | unsigned | NO | ||||
| mapId | smallint | unsigned | NO | ||||
| instanceId | int | unsigned | PRI | NO | |||
Description of fields
type
enum SpawnObjectType
| ID | Name |
|---|---|
| 0 | SPAWN_TYPE_CREATURE |
| 1 | SPAWN_TYPE_GAMEOBJECT |
spawnId
- type = 0: creature guid
- type = 1: gameobject guid
respawnTime
Unix timestamp when the entity should be respawned.
mapId
Map ID where the entity should be spawned.
instanceId
If the entity was killed/destroyed in an instance, this field holds the instance id where this entity 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.
