blob: ae1832b10b03961c9985d829bd343abe5cb25042 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# waypoint\_data
[<-Back-to:World](database-world.md)
### Information
This table contains all the path data for creatures that use waypoints and waypoint scripts directly in their creature addon definition. See also [Waypoints-Information](Waypoints-Information) for general information about waypoints.
### Structure
| Field | Type | Attributes | Key | Null | Default |
|----------------------------------|--------------|--------------|-----|------|---------|
| [id](#id) | INT | UNSIGNED | PRI | NO | 0 |
| [point](#point) | MEDIUMINT | UNSIGNED | PRI | NO | 0 |
| [position\_x](#position_x) | FLOAT | | | NO | 0 |
| [position\_y](#position_y) | FLOAT | | | NO | 0 |
| [position\_z](#position_z) | FLOAT | | | NO | 0 |
| [orientation](#orientation) | FLOAT | | | YES | NULL |
| [delay](#delay) | INT | UNSIGNED | | NO | 0 |
| [move\_type](#move_type) | INT | | | NO | 0 |
| [action](#action) | INT | | | NO | 0 |
| [action\_chance](#action_chance) | SMALLINT | | | NO | 100 |
| [wpguid](#wpguid) | INT | UNSIGNED | | NO | 0 |
#### id
Unique ID for each path.
*The TDB standard way of assigning an ID is to multiply GUID of the creature by 10.*
*So for a creature with a GUID of 1234 the path ID would be 12340. Any waypoints submitted to TDB should follow this standard.*
*However, this is only a suggestion when creating your own waypoints. This ID can be anything you want as long as creature\_addon.path\_id is set to the ID you pick here for the creature you are creating a waypoint for.*
#### point
Unique point ID for each point in a path. Starts at 1 and increases with each path.
#### position\_x
The X coordinate of the destination waypoint.
#### position\_y
The Y coordinate of the destination waypoint.
#### position\_z
The Z coordinate of the destination waypoint.
#### orientation
The orientation of the creature. (North = 0.0; South = π (3.14159))
#### delay
Time to wait (in ms) between each point.
#### move\_type
| | |
|------|-----|
| Walk | 0 |
| Run | 1 |
| Fly | 2 |
#### action
ID of the action to be performed. See [waypoint\_scripts.id](waypoint_scripts).
#### action\_chance
Percentage of action happening (0-100%).
#### wpguid
This field is used by the core and is **NOT** to be set by hand.
This field holds the GUID of the waypoint visual when you enable the visual mode for waypoints.
### Example Rows
| Id | Point | Position\_x | Position\_y | Position\_z | Orientation | Delay | Move\_type | Action | Action\_chance | wpguid |
|-------|-------|-------------|-------------|-------------|-------------|-------|------------|--------|----------------|--------|
| 20160 | 1 | -4998 | -1167 | 501657 | 0 | 10000 | 0 | 0 | 100 | 0 |
| 20160 | 2 | -4958.38 | -1199.34 | 501659 | 0 | 0 | 0 | 0 | 100 | 0 |
|