From a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3 Mon Sep 17 00:00:00 2001 From: FrancescoBorzi Date: Mon, 25 Feb 2019 19:24:20 +0100 Subject: Import DB wiki from TC 335 --- docs/instance_template.md | 104 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 96 insertions(+), 8 deletions(-) (limited to 'docs/instance_template.md') 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** + + ++++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Field

Type

Attributes

Key

Null

Default

Extra

Comment

map

int(10)

unsigned

 

NO

NULL

 

 

parent

bigint(10)

unsigned

 

NO

0

 

 

script

varchar(128)

signed

 

NO

NULL

 

 

allowMount

tinyiny(1)

signed

 

NO

0

 

 

+ +**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 -- cgit