Instance template

From OregonCore Wiki
Jump to: navigation, search

Back to world database list of tables.


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.

Schema Last Modified: TC1-1828 - Schema Verified: Rev 665


Structure

Field Type Attributes Key Null Default Extra Comment
map smallint(5) unsigned PRI NO NULL
parent int(10) unsigned NO NULL
maxPlayers tinyint(3) unsigned NO 0
reset_delay int(10) unsigned NO 0
access_id bigint(20) unsigned NO 0
startLocX float signed YES NULL
startLocY float signed YES NULL
startLocZ float signed YES NULL
startLocO float signed YES NULL
script varchar(128) utf8_general_ci NO NULL


Description of the fields

map

The map ID of the instance. See Map.dbc

parent

If the instance is a subinstance of another instance, this field has the parent instance's map ID.

maxPlayers

The maximum number of players that can enter as a group/raid in the instance.

reset_delay

The number of days between each global reset for the map. If zero, the value is taken from DBC files. The resulting value is multiplied by the Rate.InstanceResetTime config.

startLocX

Defines the starting X location where players will be ported (if different from default).

startLocY

Defines the starting Y location where players will be ported (if different from default).

startLocZ

Defines the starting Z location where players will be ported (if different from default).

startLocO

Defines the starting orientation that players will face. (if different from default).

script

The name of the instance script that the instance will use and apply (if any).