用户工具

站点工具


数据库:world数据库:creature_formations

creature_formations 表


<-返回:World 数据库

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

表结构

FieldTypeAttributesKeyNullDefaultExtraComment
leaderGUIDINTUNSIGNED NONULL
memberGUIDINTUNSIGNEDPRINONULL
distFLOATUNSIGNED NONULL
angleFLOATUNSIGNED NONULL
groupAIINTUNSIGNED NONULL
point_1INTUNSIGNED NO0
point_2INTUNSIGNED NO0

字段说明


leaderGUID

GUID of group leader

memberGUID

GUID of group member. NOTE: Is required to have an entry with leaderGUID and memberGUID with the leaderGUID in order to make the group work. Example:

  • Leader = 1
  • Members = 2 and 3
leaderGUIDmemberGUID
11
12
13

dist

Maximum distance between group leader and member

Value must be >=0. If the value does not meet the condition the SQL will fail on creature_formations_chk_1.

angle

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

Value must be >=0. If the value does not meet the condition the SQL will fail on creature_formations_chk_1.

groupAI

Sets group member behaviors, values are:

ValueFlagNameComment
0 No one assists no one and member doesn't follow the leader
10x001GROUP_AI_FLAG_MEMBER_ASSIST_LEADERThe member aggroes if the leader aggroes
20x002GROUP_AI_FLAG_LEADER_ASSIST_MEMBERThe leader aggroes if the member aggroes
3 Everyone assists everyone and member doesn't follow the leader
40x004GROUP_AI_FLAG_EVADE_TOGETHEREveryone evades if any member evades (enters evade mode)
80x008GROUP_AI_FLAG_RESPAWN_ON_EVADEEveryone respawns if members evade (enters evade mode)
160x010GROUP_AI_FLAG_DONT_RESPAWN_LEADER_ON_EVADEUsed with flag 0x008 to prevent leader from respawning
24 Everyone but leader respawns if members evade
5120x200GROUP_AI_FLAG_FOLLOW_LEADERNoone assists noone and member 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
数据库/world数据库/creature_formations.txt · 最后更改: 2023/09/24 15:39 由 admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki