DB/Faction: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 38: | Line 38: | ||
|22 || parentFactionCap || Integer[2] || | |22 || parentFactionCap || Integer[2] || | ||
|- | |- | ||
| | |24 || Name || [[Loc]] || Display name of the faction | ||
|- | |- | ||
| | |41 || Description || [[Loc]] || Seen in the reputation-GUI on click. | ||
|} | |} | ||
Line 63: | Line 63: | ||
[[Category:DBC]] | [[Category:DBC]] | ||
[[Category:2.4.3.8606]] | |||
[[Category:3.0.2.8905]] | [[Category:3.0.2.8905]] | ||
[[Category: | [[Category:3.3.5.12340]] |
Revision as of 03:19, 8 December 2012
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. |
3 | reputationRaceMask | BitMask | <.. Points to another Allied / AtWar ID |
4 | reputationRaceMask | BitMask | .. Honor Hold has 1101,690 & Thrallmar 690,1101 for example. ..> |
5 | reputationRaceMask | BitMask | Only city factions have a value. Possible relationship to Modifiers and 17 (1 = Stormwind; 2 = Orgrimmar; 4 = Wildhammer Clan & Iron Forge; 8 = Dranassus; 16 = Undercity; 64 = Gnomeregan Exiles; 512 = Shattrath City Factions & Silvermoon City; 528 = Thunder Bluff & Darkspear Trolls; 1024 = Exodar) |
6 | reputationRaceMask | BitMask | Only Horde cities have a value. Possible relationship to Modifiers and 18 (16 = Silvermoon City; 32 = Thunder Bluff; 128 = Darkspear Trolls; 512 = Undercity; 528 = Orgrimmar) |
7 | reputationClassMask | BitMask | (479 = Cenerion Circle; 1503 = Lower City, "Friendly, Hidden", Netherwing; Shatari Skyguards) |
8 | reputationClassMask | BitMask | (1024 = Cenerion Circle;) |
9 | reputationClassMask | BitMask | Never set pre 3.* but 0x80 on "Kirin Tor" |
10 | reputationClassMask | BitMask | Never set pre 3.* but 0x80 on "Kirin Tor" |
11 | reputationBase | Integer[4] | Based on 0 = Neutral |
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
};