summaryrefslogtreecommitdiff
path: root/docs/creature_respawn.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/creature_respawn.md')
-rw-r--r--docs/creature_respawn.md86
1 files changed, 78 insertions, 8 deletions
diff --git a/docs/creature_respawn.md b/docs/creature_respawn.md
index 280569c..5a9f780 100644
--- a/docs/creature_respawn.md
+++ b/docs/creature_respawn.md
@@ -1,8 +1,78 @@
-[Database Structure](Database-Structure) > [Character-Database](Character-Database) > [creature_respawn](creature_respawn)
-
-Column | Type | Description
---- | --- | ---
-Guid | int(10) unsigned |
-RespawnTime | int(10) unsigned |
-MapId | smallint(10) unsigned |
-InstanceId | int(10) unsigned |
+# creature\_respawn
+
+`Back-to:Characters`
+
+**The \`creature\_respawn\` table**
+
+This table holds the respawn time when creatures should be respawned in the world. In case of a server crash, this table holds the respawn data so that the creatures don't respawn immediately on server restart. How often the respawn time is saved for creatures can be controlled in TrinityCore.conf at SaveRespawnTimeImmediately.
+
+**Structure**
+
+<table>
+<colgroup>
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+</colgroup>
+<tbody>
+<tr class="odd">
+<td><p><strong>Field</strong></p></td>
+<td><p><strong>Type</strong></p></td>
+<td><p><strong>Attributes</strong></p></td>
+<td><p><strong>Key</strong></p></td>
+<td><p><strong>Null</strong></p></td>
+<td><p><strong>Default</strong></p></td>
+<td><p><strong>Extra</strong></p></td>
+<td><p><strong>Comment</strong></p></td>
+</tr>
+<tr class="even">
+<td><p><a href="#creature_respawn-guid">guid</a></p></td>
+<td><p>int(10)</p></td>
+<td><p>unsigned</p></td>
+<td><p>PRI</p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p> </p></td>
+<td><p>Global Unique Identifier</p></td>
+</tr>
+<tr class="odd">
+<td><p><a href="#creature_respawn-respawntime">respawntime</a></p></td>
+<td><p>int(10)</p></td>
+<td><p>unsigned</p></td>
+<td><p> </p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p> </p></td>
+<td><p> </p></td>
+</tr>
+<tr class="even">
+<td><p><a href="#creature_respawn-instance">instance</a></p></td>
+<td><p>int(10)</p></td>
+<td><p>unsigned</p></td>
+<td><p>PRI</p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p> </p></td>
+<td><p>Instance Identifier</p></td>
+</tr>
+</tbody>
+</table>
+
+**Description of the fields**
+
+### guid
+
+The GUID of the creature. See creature.guid
+
+### respawntime
+
+The time when the creature should be respawned in Unix time.
+
+### instance
+
+If the creature was killed in an instance, this field holds the instance ID where this creature should be respawned. Each instance is different depending on the group so this field is vital in keeping track of which creatures should be respawned for which players at what time.