Faction.dbc¶
The faction table contains definitions for in-game factions for non-player creatures.
Table structure¶
ID | Name | Type | Default | Description |
---|---|---|---|---|
1 | ID | Integer | Unique ID | |
2 | reputationIndex | Integer (signed) | The unique faction index. | |
3 | reputationRaceMask1 | Integer (signed) | 0 | See below. |
4 | reputationRaceMask2 | Integer (signed) | 0 | See below. |
5 | reputationRaceMask3 | Integer (signed) | 0 | See below. |
6 | reputationRaceMask4 | Integer (signed) | 0 | See below. |
7 | reputationClassMask1 | Integer (signed) | 0 | See below. |
8 | reputationClassMask2 | Integer (signed) | 0 | See below. |
9 | reputationClassMask3 | Integer (signed) | 0 | See below. |
10 | reputationClassMask4 | Integer (signed) | 0 | See below. |
11 | reputationBase1 | Integer (signed) | 0 | Base reputation value. |
12 | reputationBase2 | Integer (signed) | 0 | Base reputation value. |
13 | reputationBase3 | Integer (signed) | 0 | Base reputation value. |
14 | reputationBase4 | Integer (signed) | 0 | Base reputation value. |
15 | reputationFlags1 | Integer (signed) | 0 | See below. |
16 | reputationFlags2 | Integer (signed) | 0 | See below. |
17 | reputationFlags3 | Integer (signed) | 0 | See below. |
18 | reputationFlags4 | Integer (signed) | 0 | See below. |
19 | parentFaction | Integer | 0 | If non-zero, the faction is a child of this faction. |
20 | name | String (localized) | The name of the faction. | |
21 | description | String (localized) | The description of the faction. |
Fields¶
reputationIndex¶
Available in-game to Lua add-ons. A value of -1
indicates a faction
for which no reputation can be gained. This includes attackable
creatures and creatures used in events.
reputationRaceMask¶
0000 0001
/ 1: Human,0000 0010
/ 2: Orc,0000 0100
/ 4: Dwarf,0000 1000
/ 8: Night Elf,0001 0000
/ 16: Undead,0010 0000
/ 32: Tauren,0100 0000
/ 64: Gnome,1000 0000
/ 128: Troll.
reputationClassMask¶
Currently this is only set for the Cenarion Circle, which Night Elf and Tauren druids are members of.
reputationFlags¶
0x01
: makes the reputation visible in the game client,0x02
: enables “At war” button,0x04
: hides faction in game client,0x08
: forces to hide a faction in game client,0x10
: forces player at peace with a faction,0x20
: sets a faction to inactive.
Relations¶
parentFaction
references the primary key of Faction.dbc.