Back to 'FactionGroup' Return to DBCs (3.3.5a) Go to 'FileData'
denotes unused fields
| Index | Field | Type | Reference |
|---|---|---|---|
| 0 | ID | uint32 | |
| 1 | Faction | uint32 | Faction.dbc/0 |
| 2 | Flags | uint32 | |
| 3 | FactionGroup | uint32 | FactionGroup.dbc/1 |
| 4 | FriendGroup | uint32 | FactionGroup.dbc/1 |
| 5 | EnemyGroup | uint32 | FactionGroup.dbc/1 |
| 6 | Enemies_0 | uint32 | Faction.dbc/0 |
| 7 | Enemies_1 | uint32 | Faction.dbc/0 |
| 8 | Enemies_2 | uint32 | Faction.dbc/0 |
| 9 | Enemies_3 | uint32 | Faction.dbc/0 |
| 10 | Friend_0 | uint32 | Faction.dbc/0 |
| 11 | Friend_1 | uint32 | Faction.dbc/0 |
| 12 | Friend_2 | uint32 | Faction.dbc/0 |
| 13 | Friend_3 | uint32 | Faction.dbc/0 |
Col: 0 (uint32)
- no description -
Col: 1 (uint32)
- no description -
Col: 2 (uint32)
| Value | Flag | Name | Comment |
|---|---|---|---|
| 1 | 0x0001 | Respond to call for help | |
| 2 | 0x0002 | Broadcast to enemies (low priority) | |
| 4 | 0x0004 | Broadcast to enemies (med priority) | |
| 8 | 0x0008 | Broadcast to enemies (high priority) | |
| 16 | 0x0010 | Search for enemies (low priority) | |
| 32 | 0x0020 | Search for enemies (med priority) | |
| 64 | 0x0040 | Search for enemies (high priority) | |
| 128 | 0x0080 | Search for friends (low priority) | |
| 256 | 0x0100 | Search for friends (med priority) | |
| 512 | 0x0200 | Search for friends (high priority) | |
| 1024 | 0x0400 | Flee from call for help | |
| 2048 | 0x0800 | FACTION_TEMPLATE_FLAG_PVP | Assist players |
| 4096 | 0x1000 | FACTION_TEMPLATE_FLAG_CONTESTED_GUARD | Attack PvP active players |
| 8192 | 0x2000 | FACTION_TEMPLATE_FLAG_HOSTILE_BY_DEFAULT | Hates all except friends |
Col: 3 (uint32)
Same mask logic in FriendGroup and EnemyGroup
| Value | Flag | Comment |
|---|---|---|
| 1 | 0x01 | 1 - All players (and pets) |
| 2 | 0x02 | 2 - Alliance players (and their pets) |
| 4 | 0x04 | 3 - Horde players (and their pets) |
| 8 | 0x08 | 4 - Monster (Not a player nor a pet) |
Col: 4 (uint32)
isFriendlyTo:
(FriendGroup & otherFactionTemplate.FactionGroup) || (FactionGroup & otherFactionTemplate.FriendGroup)
Col: 5 (uint32)
IsHostileTo:
(EnemyGroup & otherFactionTemplate.FactionGroup) != 0
Col: 6 – 9 (uint32)
Always enemy of these factions. Overriding FriendGroup and EnemyGroup relations.
Col: 10 – 13 (uint32)
Always friendly to these factions. Overriding FriendGroup and EnemyGroup relations.
Back to 'FactionGroup' Return to DBCs (3.3.5a) Go to 'FileData'