summaryrefslogtreecommitdiff
path: root/docs/areatrigger_scripts.md
blob: 13273ed7c727b1dd8cf41f35f86f9ebf8f9f9019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# areatrigger\_scripts

[<-Back-to:World](database-world.md)

**The \`areatrigger\_scripts\` table**

Allows for an area trigger to be scripted with Trinity Script.

**Structure**

| Field           | Type      | Attributes | Key | Null | Default | Extra | Comment |
| --------------- | --------- | ---------- | --- | ---- | ------- | ----- | ------- |
| [entry][1]      | MEDIUMINT |            | PRI | NO   |         |       |         |
| [ScriptName][2] | char(64)  |            |     | NO   |         |       |         |

[1]: #entry
[2]: #scriptname

**Description of the fields**

### entry

This is the trigger identifier from [AreaTrigger.dbc](DBC-AreaTrigger)

### ScriptName

The ScriptName for when scripting it in the core.
This might also be 'SmartTrigger'. It will than use [SmartAI](smart_scripts).

### Examples

| entry | ScriptName        |
| ----- | ----------------- |
| 302   | at_sentry_point   |
| 962   | SmartTrigger      |
| 1447  | SmartTrigger      |
| 1526  | at_ring_of_law    |
| 1726  | at_scent_larkorwi |