DB/Faction: Difference between revisions
Jump to navigation
Jump to search
Barncastle (talk | contribs) mNo edit summary |
|||
(30 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
==0.5.3.3368== | |||
struct FactionRec { | |||
uint32_t m_ID; | |||
uint32_t m_reputationIndex; | |||
uint32_t m_reputationRaceMask[4]; | |||
uint32_t m_reputationClassMask[4]; | |||
uint32_t m_reputationBase[4]; | |||
{{Template:Type|langstringref}} m_name_lang; | |||
}; | |||
==1.12.1.5875== | |||
struct FactionRec { | |||
uint32_t m_ID; | |||
uint32_t m_reputationIndex; | |||
uint32_t m_reputationRaceMask[4]; | |||
uint32_t m_reputationClassMask[4]; | |||
uint32_t m_reputationBase[4]; | |||
uint32_t m_reputationFlags[4]; | |||
uint32_t m_parentFactionID; | |||
{{Template:Type|langstringref}} m_name_lang; | |||
{{Template:Type|langstringref}} m_description_lang; | |||
}; | |||
== Structure == | |||
== [[ | {| style="background:#FCFCFC; color:black" | ||
|- | |||
! width="80" | Column | |||
! width="180 " | Field | |||
! width="80" | Type | |||
! width="800" | Notes | |||
|- | |||
|1 || ID || Integer || | |||
|- | |||
|2 || reputationIndex || Integer || Each faction that has gainable rep has a unique number. All factions that you can not gain rep with have -1. Max value 127. | |||
|- | |||
|3 || reputationRaceMask1 || BitMask || Mask of races using field 11 as base reputation | |||
|- | |||
|4 || reputationRaceMask2 || BitMask || Mask of races using field 12 as base reputation | |||
|- | |||
|5 || reputationRaceMask3 || BitMask || Mask of races using field 13 as base reputation | |||
|- | |||
|6 || reputationRaceMask4 || BitMask || Mask of races using field 14 as base reputation | |||
|- | |||
|7 || reputationClassMask1 || BitMask || Mask of classes using field 11 as base reputation | |||
|- | |||
|8 || reputationClassMask2 || BitMask || Mask of classes using field 12 as base reputation | |||
|- | |||
|9 || reputationClassMask3 || BitMask || Mask of classes using field 13 as base reputation | |||
|- | |||
|10 || reputationClassMask4 || BitMask || Mask of classes using field 14 as base reputation | |||
|- | |||
|11 || reputationBase1 || Integer[4] || -42000 - 42999 (0 neutral); used by races specified in mask in fields 3, 7 | |||
|- | |||
|12 || reputationBase2 || Integer[4] || -42000 - 42999 (0 neutral); used by races specified in mask in fields 4, 8 | |||
|- | |||
|13 || reputationBase3 || Integer[4] || -42000 - 42999 (0 neutral); used by races specified in mask in fields 5, 9 | |||
|- | |||
|14 || reputationBase4 || Integer[4] || -42000 - 42999 (0 neutral); used by races specified in mask in fields 6, 10 | |||
|- | |||
|15 || reputationFlags || Integer[4] || | |||
|- style="background:#F0F8FF;" | |||
|19 || [[Faction.dbc|parentFactionID]] || iRefID || Recursive. i.e. Undercity lists ID 67, which is Horde | |||
|- | |||
|20 || parentFactionMod || Float[2] || | |||
|- | |||
|22 || parentFactionCap || Integer[2] || | |||
|- | |||
|24 || Name || [[Loc]] || Display name of the faction | |||
|- | |||
|41 || Description || [[Loc]] || Seen in the reputation-GUI on click. | |||
|} | |||
== | https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Reputation/ReputationMgr.h | ||
FACTION_FLAG_NONE = 0x00, // no faction flag | |||
FACTION_FLAG_VISIBLE = 0x01, // makes visible in client (set or can be set at interaction with target of this faction) | |||
FACTION_FLAG_AT_WAR = 0x02, // enable AtWar-button in client. player controlled (except opposition team always war state), Flag only set on initial creation | |||
FACTION_FLAG_HIDDEN = 0x04, // hidden faction from reputation pane in client (player can gain reputation, but this update not sent to client) | |||
FACTION_FLAG_INVISIBLE_FORCED = 0x08, // always overwrite FACTION_FLAG_VISIBLE and hide faction in rep.list, used for hide opposite team factions | |||
FACTION_FLAG_PEACE_FORCED = 0x10, // always overwrite FACTION_FLAG_AT_WAR, used for prevent war with own team factions | |||
FACTION_FLAG_INACTIVE = 0x20, // player controlled, state stored in characters.data (CMSG_SET_FACTION_INACTIVE) | |||
FACTION_FLAG_RIVAL = 0x40, // flag for the two competing outland factions | |||
FACTION_FLAG_SPECIAL = 0x80 // horde and alliance home cities and their northrend allies have this flag | |||
*--[[User:Tharo|Tharo]] 06:03, 30 November 2008 (CET) | |||
*--[[User:Amaroth|Amaroth]] ([[User talk:Amaroth|talk]]) 10:24, 24 May 2015 (UTC) | |||
==6.0.1.18179== | |||
struct FactionRec { | |||
uint32_t m_ID; | |||
uint32_t m_reputationIndex; | |||
uint32_t m_reputationRaceMask[4]; | |||
uint32_t m_reputationClassMask[4]; | |||
uint32_t m_reputationBase[4]; | |||
uint32_t m_reputationFlags[4]; | |||
uint32_t m_parentFactionID; | |||
float m_parentFactionMod[2]; | |||
uint32_t m_parentFactionCap[2]; | |||
{{Template:Type|langstringref}} m_name_lang; | |||
{{Template:Type|langstringref}} m_description_lang; | |||
uint32_t m_expansion; | |||
uint32_t m_flags; | |||
uint32_t m_friendshipRepID; | |||
}; | |||
[[Category:DBC]] | [[Category:DBC]] | ||
[[Category: | [[Category:DBC_Alpha]] | ||
[[Category:DBC_Vanilla]] | |||
[[Category:2.4.3.8606]] | |||
[[Category:3.0.2.8905]] | |||
[[Category:3.3.5.12340]] | |||
[[Category:DBC_WotLK]] | |||
[[Category:DBC_WoD]][[Category:6.0.1.18179]] |
Latest revision as of 22:44, 1 October 2017
0.5.3.3368
struct FactionRec { uint32_t m_ID; uint32_t m_reputationIndex; uint32_t m_reputationRaceMask[4]; uint32_t m_reputationClassMask[4]; uint32_t m_reputationBase[4]; langstringrefⁱ m_name_lang; };
1.12.1.5875
struct FactionRec { uint32_t m_ID; uint32_t m_reputationIndex; uint32_t m_reputationRaceMask[4]; uint32_t m_reputationClassMask[4]; uint32_t m_reputationBase[4]; uint32_t m_reputationFlags[4]; uint32_t m_parentFactionID; langstringrefⁱ m_name_lang; langstringrefⁱ m_description_lang; };
Structure
Column | Field | Type | Notes |
---|---|---|---|
1 | ID | Integer | |
2 | reputationIndex | Integer | Each faction that has gainable rep has a unique number. All factions that you can not gain rep with have -1. Max value 127. |
3 | reputationRaceMask1 | BitMask | Mask of races using field 11 as base reputation |
4 | reputationRaceMask2 | BitMask | Mask of races using field 12 as base reputation |
5 | reputationRaceMask3 | BitMask | Mask of races using field 13 as base reputation |
6 | reputationRaceMask4 | BitMask | Mask of races using field 14 as base reputation |
7 | reputationClassMask1 | BitMask | Mask of classes using field 11 as base reputation |
8 | reputationClassMask2 | BitMask | Mask of classes using field 12 as base reputation |
9 | reputationClassMask3 | BitMask | Mask of classes using field 13 as base reputation |
10 | reputationClassMask4 | BitMask | Mask of classes using field 14 as base reputation |
11 | reputationBase1 | Integer[4] | -42000 - 42999 (0 neutral); used by races specified in mask in fields 3, 7 |
12 | reputationBase2 | Integer[4] | -42000 - 42999 (0 neutral); used by races specified in mask in fields 4, 8 |
13 | reputationBase3 | Integer[4] | -42000 - 42999 (0 neutral); used by races specified in mask in fields 5, 9 |
14 | reputationBase4 | Integer[4] | -42000 - 42999 (0 neutral); used by races specified in mask in fields 6, 10 |
15 | reputationFlags | Integer[4] | |
19 | parentFactionID | iRefID | Recursive. i.e. Undercity lists ID 67, which is Horde |
20 | parentFactionMod | Float[2] | |
22 | parentFactionCap | Integer[2] | |
24 | Name | Loc | Display name of the faction |
41 | Description | Loc | Seen in the reputation-GUI on click. |
https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Reputation/ReputationMgr.h
FACTION_FLAG_NONE = 0x00, // no faction flag FACTION_FLAG_VISIBLE = 0x01, // makes visible in client (set or can be set at interaction with target of this faction) FACTION_FLAG_AT_WAR = 0x02, // enable AtWar-button in client. player controlled (except opposition team always war state), Flag only set on initial creation FACTION_FLAG_HIDDEN = 0x04, // hidden faction from reputation pane in client (player can gain reputation, but this update not sent to client) FACTION_FLAG_INVISIBLE_FORCED = 0x08, // always overwrite FACTION_FLAG_VISIBLE and hide faction in rep.list, used for hide opposite team factions FACTION_FLAG_PEACE_FORCED = 0x10, // always overwrite FACTION_FLAG_AT_WAR, used for prevent war with own team factions FACTION_FLAG_INACTIVE = 0x20, // player controlled, state stored in characters.data (CMSG_SET_FACTION_INACTIVE) FACTION_FLAG_RIVAL = 0x40, // flag for the two competing outland factions FACTION_FLAG_SPECIAL = 0x80 // horde and alliance home cities and their northrend allies have this flag
6.0.1.18179
struct FactionRec { uint32_t m_ID; uint32_t m_reputationIndex; uint32_t m_reputationRaceMask[4]; uint32_t m_reputationClassMask[4]; uint32_t m_reputationBase[4]; uint32_t m_reputationFlags[4]; uint32_t m_parentFactionID; float m_parentFactionMod[2]; uint32_t m_parentFactionCap[2]; langstringrefⁱ m_name_lang; langstringrefⁱ m_description_lang; uint32_t m_expansion; uint32_t m_flags; uint32_t m_friendshipRepID; };