areatrigger_template

Back-to:World

The `areatrigger_template` table

This table contains the description of areatrigger.

Structure

Field

Type

Attributes

Key

Null

Default

Extra

Comment

areatrigger_template#id

int(10)

unsigned

PRI

NO



Identifier

areatrigger_template#IsServerSidetinyint(1)unsignedPRINO


areatrigger_template#Type

tinyint(3)

unsigned


NO

0



areatrigger_template#Flags

int(10)

unsigned


NO

0



areatrigger_template#Data0floatsigned
NO0

areatrigger_template#Data1floatsigned
NO0

areatrigger_template#Data2

float

signed


NO

0



areatrigger_template#Data3

float

signed


NO

0



areatrigger_template#Data4

float

signed


NO

0



areatrigger_template#Data5

float

signed


NO

0



areatrigger_template#ScriptNamechar(64)signed
NO''

areatrigger_template#VerifiedBuild

int(10)

signed


YES

0



Description of the fields

Id

IsServerSide


Type

IDName
0AREATRIGGER_TYPE_SPHERE
1AREATRIGGER_TYPE_BOX
2AREATRIGGER_TYPE_UNK
3AREATRIGGER_TYPE_POLYGON
4AREATRIGGER_TYPE_CYLINDER
5AREATRIGGER_TYPE_MAX

Flags

FlagName
1AREATRIGGER_FLAG_HAS_ABSOLUTE_ORIENTATION
2AREATRIGGER_FLAG_HAS_DYNAMIC_SHAPE
4AREATRIGGER_FLAG_HAS_ATTACHED
8AREATRIGGER_FLAG_HAS_FACE_MOVEMENT_DIR
16AREATRIGGER_FLAG_HAS_FOLLOWS_TERRAIN
32AREATRIGGER_FLAG_UNK1
64AREATRIGGER_FLAG_HAS_TARGET_ROLL_PITCH_YAW
128AREATRIGGER_FLAG_UNK2
256AREATRIGGER_FLAG_UNK3
512AREATRIGGER_FLAG_UNK4
1024AREATRIGGER_FLAG_HAS_CIRCULAR_MOVEMENT

Data0-5

The content of the data fields depends on the areatrigger type

AREATRIGGER_TYPE_SPHERE = 0

  • Data0: Radius
  • Data1: RadiusTarget

AREATRIGGER_TYPE_BOX = 1

  • Data0: ExtentsX
  • Data1: ExtentsY
  • Data2: ExtentsZ
  • Data3: ExtentsTargetX
  • Data4: ExtentsTargetY
  • Data5: ExtentsTargetZ

AREATRIGGER_TYPE_POLYGON = 3

  • Data0: Height
  • Data1: HeightTarget

AREATRIGGER_TYPE_CYLINDER = 4

  • Data0: Radius
  • Data1: RadiusTarget
  • Data2: Height
  • Data3: HeightTarget
  • Data4: LocationZOffset
  • Data5: LocationZOffsetTarget

ScriptName

Name of the script this object uses if needed

VerifiedBuild

This field is used by the TrinityDB Team to determine whether a template has been verified from WDB files.

If value is 0 then it has not been parsed yet.

If value is above 0 then it has been parsed with WDB files from that specific client build.

If value is -1 then it is just a place holder until proper data are found on WDBs.

If value is -Client Build then it was parsed with WDB files from that specific client build and manually edited later for some special necessity.