summaryrefslogtreecommitdiff
path: root/docs/instance_template.md
diff options
context:
space:
mode:
authorFrancesco Borzì <borzifrancesco@gmail.com>2019-02-26 18:08:42 +0100
committerGitHub <noreply@github.com>2019-02-26 18:08:42 +0100
commit07f4555b2d68397c612ec5ee6611844e4f6d9d21 (patch)
tree4eb8139adec79c179419c12bc4da04e463f04c3a /docs/instance_template.md
parent5de5a3ccf64a174adcec3070cd3bfeb6f6897254 (diff)
parent49bdd146a2c870a4a2e5ae8fd77e90204d950fc8 (diff)
downloadwiki-07f4555b2d68397c612ec5ee6611844e4f6d9d21.tar.gz
wiki-07f4555b2d68397c612ec5ee6611844e4f6d9d21.tar.bz2
wiki-07f4555b2d68397c612ec5ee6611844e4f6d9d21.zip
Merge pull request #8 from azerothcore/tc-bulk-import
Bulk import from TC 335 of DB doc
Diffstat (limited to 'docs/instance_template.md')
-rw-r--r--docs/instance_template.md104
1 files changed, 96 insertions, 8 deletions
diff --git a/docs/instance_template.md b/docs/instance_template.md
index 98831b0..53f6ec7 100644
--- a/docs/instance_template.md
+++ b/docs/instance_template.md
@@ -1,8 +1,96 @@
-[Database Structure](Database-Structure) > [World-Database](World-Database) > [instance_template](instance_template)
-
-Column | Type | Description
---- | --- | ---
-Map | smallint(5) unsigned |
-Parent | smallint(5) unsigned |
-Script | varchar(128) |
-AllowMount | tinyint(3) unsigned |
+# instance\_template
+
+`Back-to:World`
+
+**The \`instance\_template\` table**
+
+This table has all the templates for every instance. When a group enters an instance, a new copy of that instance is made from the values in these fields.
+
+If you want to change the spot you will start in when you enter/leave an instance, go to areatrigger\_teleport
+
+**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="#instance_template-map">map</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>NULL</p></td>
+<td><p> </p></td>
+<td><p> </p></td>
+</tr>
+<tr class="odd">
+<td><p><a href="#instance_template-parent">parent</a></p></td>
+<td><p>bigint(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="#instance_template-script">script</a></p></td>
+<td><p>varchar(128)</p></td>
+<td><p>signed</p></td>
+<td><p> </p></td>
+<td><p>NO</p></td>
+<td><p>NULL</p></td>
+<td><p> </p></td>
+<td><p> </p></td>
+</tr>
+<tr class="odd">
+<td><p><a href="#instance_template-allowMount">allowMount</a></p></td>
+<td><p>tinyiny(1)</p></td>
+<td><p>signed</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>
+</tbody>
+</table>
+
+**Description of the fields**
+
+### map
+
+The map ID of the instance. See Maps.dbc
+
+### parent
+
+If the instance is a subinstance of another instance, this field has the parent instance's map ID.
+
+### script
+
+The name of the instance script that the instance will use and apply (if any).
+
+### allowMount
+
+0 = you can enter on mount and will not get dismounted on enter
+
+1 = you can't enter on mount and get dismounted on enter