Skip to content

map_template Table

Defines map properties - parent map, type, player limit, reset delay, and script binding.


Schema Summary

Field Type Key Null Default Extra
entry smallint(5) unsigned PRI NO
patch tinyint(3) unsigned PRI NO 0
parent int(10) unsigned NO 0
map_type tinyint(3) unsigned NO 0
linked_zone int(10) unsigned NO 0
player_limit tinyint(3) unsigned NO 0
reset_delay int(10) unsigned NO 0
ghost_entrance_map smallint(5) NO -1
ghost_entrance_x float NO 0
ghost_entrance_y float NO 0
map_name varchar(128) NO ''
script_name varchar(128) NO ''

Field Breakdown

  • entry - Primary Key. Map ID.
  • patch - Primary Key. Client patch.
  • parent - Parent map ID.
  • map_type - 0 normal, 1 instance, 2 raid, 3 battleground.
  • linked_zone - Zone ID associated with this map.
  • player_limit - Max players.
  • reset_delay - Instance reset delay in days (multiplied by the Rate.InstanceResetTime config; minimum forced to 1).
  • ghost_entrance_map - Map where ghost appears.
  • ghost_entrance_x/y - Ghost entrance coords.
  • map_name - Map name.
  • script_name - C++ script binding.