From a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3 Mon Sep 17 00:00:00 2001 From: FrancescoBorzi Date: Mon, 25 Feb 2019 19:24:20 +0100 Subject: Import DB wiki from TC 335 --- docs/creature_formations.md | 177 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 166 insertions(+), 11 deletions(-) (limited to 'docs/creature_formations.md') 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** + + ++++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Field

Type

Attributes

Key

Null

Default

Extra

Comment

leaderGUID

int(11)

unsigned

 

NO

NULL

 

 

memberGUID

int(11)

unsigned

PRI

NO

NULL

 

 

dist

float

unsigned

 

NO

NULL

 

 

angle

float

unsigned

 

NO

NULL

 

 

groupAIint(11)unsigned NONULL  
point_1int(11)unsigned NO0  

point_2

int(11)

unsigned

 

NO

0

 

 

+ +## 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 + +-----<--------->------ + +       8    7      6 + +  + +  + +  + +  + +## Attachments: + +![](images/icons/bullet_blue.gif){width="8" height="8"} [followangle2.png](attachments/2129997/2130322.png) (image/png) + -- cgit