Areatriggers

From ArcEmu-Wiki
Jump to: navigation, search

Description

Triggers, like instance doors, quest scripts, other things. Trigger's position is in DBC, it can't be modified, informations here are just addition for those in DBC.


Contents



entry

The Entry ID of the area trigger (must be in AreaTrigger.dbc).


type

The type of area trigger it is (Enum defined by Arcemu).

0 = Null
This type isn't handled by the core.
1 = Instance
When a player enter in a trigger of that type he'll be teleported at the position set in the fields below. The core also check if the player has the prerequisites.
2 = Quest
This type isn't handled by the core.
3 = Inn
When a player enter in a trigger of that type he'll enter in rest state.
4 = Teleport
Same as type 1 (Instance) but without the requirements check.
5 = Spell
This type isn't handled by the core.
6 = Battleground
This type isn't handled by the core.


map

The ID of the Map the trigger teleports you to. (Only used when type = 1 OR type = 4)


screen

The loading screen that shows while you are teleporting. This field is not used by the core.


name

A name used by database's developers to identify an area trigger.


position_x, position_y, position_z, orientation

X, Y, Z and O coordinates is position, where you get teleported. (Only used when type = 1 OR type = 4)

required_level

The required level to activate the trigger. (Only used when type = 1)


SQL Structure

CREATE TABLE `areatriggers` (
  `entry` int(11) unsigned NOT NULL default '0',
  `type` tinyint(3) unsigned default '0',
  `map` int(11) unsigned default NULL,
  `screen` int(11) unsigned default NULL,
  `name` varchar(100) default '0',
  `position_x` float NOT NULL default '0',
  `position_y` float NOT NULL default '0',
  `position_z` float NOT NULL default '0',
  `orientation` float NOT NULL default '0',
  `required_honor_rank` int(11) unsigned NOT NULL default '0',
  `required_level` tinyint(11) unsigned NOT NULL default '0',
  PRIMARY KEY  (`entry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Trigger System';
Personal tools