diff options
| author | FrancescoBorzi <borzifrancesco@gmail.com> | 2019-02-25 19:24:20 +0100 |
|---|---|---|
| committer | FrancescoBorzi <borzifrancesco@gmail.com> | 2019-02-25 19:24:20 +0100 |
| commit | a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3 (patch) | |
| tree | 91e0cde00f6f27b730b0df3f4338fcf99fa8447a /docs/creature_formations.md | |
| parent | d8d1823802ded97300fa57405d80b16736603489 (diff) | |
| download | wiki-a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3.tar.gz wiki-a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3.tar.bz2 wiki-a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3.zip | |
Import DB wiki from TC 335
Diffstat (limited to 'docs/creature_formations.md')
| -rw-r--r-- | docs/creature_formations.md | 177 |
1 files changed, 166 insertions, 11 deletions
diff --git a/docs/creature_formations.md b/docs/creature_formations.md index ee6de9e..2db2c1b 100644 --- a/docs/creature_formations.md +++ b/docs/creature_formations.md @@ -1,11 +1,166 @@ -[Database Structure](Database-Structure) > [World-Database](World-Database) > [creature_formations](creature_formations) - -Column | Type | Description ---- | --- | --- -LeaderGUID | int(10) unsigned | -MemberGUID | int(10) unsigned | -Dist | float unsigned | -Angle | float unsigned | -GroupAI | int(10) unsigned | -Point_1 | smallint(5) unsigned | -Point_2 | smallint(5) unsigned | +# creature\_formations + +`Back-to:World` + +**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="#creature_formations-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="#creature_formations-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="#creature_formations-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="#creature_formations-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="#creature_formations-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="#creature_formations-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="#creature_formations-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 + + + +## 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 + +-----<--------->------ + + 8 7 6 + + + + + + + + + +## Attachments: + +{width="8" height="8"} [followangle2.png](attachments/2129997/2130322.png) (image/png) + |
