summaryrefslogtreecommitdiff
path: root/docs/creature_formations.md
blob: 3f62c629522b980f9d0c4a9fc53c001509872546 (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# creature\_formations

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

**The \`creature\_formations\` table**

This table allows to group mobs. Members of group will follow others, and attack their targets.

**Structure**

<table>
<colgroup>
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
</colgroup>
<tbody>
<tr class="odd">
<td><p><strong>Field</strong></p></td>
<td><p><strong>Type</strong></p></td>
<td><p><strong>Attributes</strong></p></td>
<td><p><strong>Key</strong></p></td>
<td><p><strong>Null</strong></p></td>
<td><p><strong>Default</strong></p></td>
<td><p><strong>Extra</strong></p></td>
<td><p><strong>Comment</strong></p></td>
</tr>
<tr class="even">
<td><p><a href="#leaderguid">leaderGUID</a></p></td>
<td><p>int(11)</p></td>
<td><p>unsigned</p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>NULL</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="odd">
<td><p><a href="#memberguid">memberGUID</a></p></td>
<td><p>int(11)</p></td>
<td><p>unsigned</p></td>
<td><p>PRI</p></td>
<td><p>NO</p></td>
<td><p>NULL</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="even">
<td><p><a href="#dist">dist</a></p></td>
<td><p>float</p></td>
<td><p>unsigned</p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>NULL</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="odd">
<td><p><a href="#angle">angle</a></p></td>
<td><p>float</p></td>
<td><p>unsigned</p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>NULL</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="even">
<td><a href="#groupai">groupAI</a></td>
<td>int(11)</td>
<td>unsigned</td>
<td> </td>
<td>NO</td>
<td>NULL</td>
<td> </td>
<td> </td>
</tr>
<tr class="odd">
<td><a href="#point_1">point_1</a></td>
<td>int(11)</td>
<td>unsigned</td>
<td> </td>
<td>NO</td>
<td>0</td>
<td> </td>
<td> </td>
</tr>
<tr class="even">
<td><p><a href="#point_2">point_2</a></p></td>
<td><p>int(11)</p></td>
<td><p>unsigned</p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
</tbody>
</table>

## leaderGUID

GUID of group leader

## memberGUID

GUID of group member

## dist

Maximum distance between group leader and member

## angle

Angle between leader and member
Note: Only degrees are used! Values should be between 0 and 360

![](attachments/2129997/2130322.png)

## groupAI

Sets group member behaviours, values are:

|       |                                                              |
|-------|--------------------------------------------------------------|
| Value | Behaviour                                                    |
| 0     | Noone assists noone and member don't follow the leader       |
| 512   | Noone assists noone and member follow the leader             |
| 1     | The member aggroes if the leader aggroes                     |
| 2     | The leader aggroes if the member aggroes                     |
| 3     | Everyone assists everyone and member don't follow the leader |
| 515   | Everyone assists everyone and member follow the leader       |

## point\_1  

## point\_2

These values are used to set leaderGUID pre ending path points for memberGUID's where the path is a straight return path and memberGUID's should not crossover to other side of leaderGUID on direction change.

If your leader has a path like the one below where he moves to point 5 then back to 1 you would set point\_1 = 4 and point\_2 = 8 on the memberGUID. If the memberGUID is at angle 90 up to point 5 it will switch to angle 270 for the return trip. This is only needed to keep creatures on the correct side. these values can be left at 0 for creatures following directly behind leaderGUID or any creatures in a circular path. 

 

1     2     3     4    5

-----&lt;---------&gt;------

       8    7      6

 

 

 

 

## Attachments:

![](images/icons/bullet_blue.gif){width="8" height="8"} [followangle2.png](attachments/2129997/2130322.png) (image/png)