summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Jackson <38561765+benjymansy123@users.noreply.github.com>2022-05-08 17:04:31 -0400
committerGitHub <noreply@github.com>2022-05-08 23:04:31 +0200
commit1c06616fece11c8e7d3fadc0560efcc61b8637d9 (patch)
tree7ca44da50d500f387dab694d2b1a65dbb6fd7a03
parent599e9ca3831ce4d0292aadf76aaeec657debfdc4 (diff)
downloadwiki-1c06616fece11c8e7d3fadc0560efcc61b8637d9.tar.gz
wiki-1c06616fece11c8e7d3fadc0560efcc61b8637d9.tar.bz2
wiki-1c06616fece11c8e7d3fadc0560efcc61b8637d9.zip
chore: Update chrraces.md and chrclasses.md (#710)
* Update chrraces.md Includes more info on fields and removes info that doesn't pertain to 3.3.5a. * Add flags * Align Field/Type/Notes more in line with wowdev.wiki. * Update chrclasses.md * Add snazzy links * Break snazzy link * Feex capitalization * Fix spacing
-rw-r--r--docs/chrclasses.md71
-rw-r--r--docs/chrraces.md65
2 files changed, 90 insertions, 46 deletions
diff --git a/docs/chrclasses.md b/docs/chrclasses.md
index c095baa..2762913 100644
--- a/docs/chrclasses.md
+++ b/docs/chrclasses.md
@@ -6,21 +6,23 @@ This DBC contains all possible player classes.
### Structure
-| Column | Name | Type | Notes |
-|--------|-------------------|---------|--------------------------------------------|
-| 1 | ClassID | Integer | |
-| 2 | Unk1 | | Unused |
-| 3-4 | Unk2 | | Unused |
-| 5-20 | Name | String | Unused |
-| 21 | | String | Unused |
-| 22-36 | nameFemale | String | Unused, if different from base (male) case |
-| 37 | | String | Unused |
-| 38-53 | nameNeutralGender | String | Unused, if different from base (male) case |
-| 54 | | | Unused |
-| 56 | spellfamily | Integer | |
-| 57 | | | Unused |
-| 58 | CinematicSequence | Integer | Id from CinematicSequence.dbc |
-| 59 | expansion | Integer | |
+| Column | Name | Type | Notes |
+|--------|----------------------------------------------|---------|----------------------------------------------------------------------------------------------|
+| 1 | ID | Integer | |
+| 2 | Unknown | Integer | 1 for Hunter, Rogue, and Shaman, 9 for Death Knight, 0 for the others. Removed in Cataclysm. |
+| 3 | PowerType | Integer | 0 = Mana, 1 = Rage, 2 = Focus, 3 = Energy, 4 = Happiness, 6 = Runes. 2 and 4 unused. |
+| 4 | m_petNameToken | String | Pet type. 101 for Warlock's demons, 1 for the other pets. |
+| 5-20 | Name | Loc | A name to display. |
+| 21 | NameLangMask | Integer | String flags, unused. |
+| 22-37 | Name_female | Loc | If different from base case, otherwise unused. |
+| 38 | NameFemaleLangMask | Integer | String flags, unused. |
+| 39-54 | Name_male | Loc | If different from base case, otherwise unused. |
+| 55 | NameMaleLangMask | Integer | String flags, unused. |
+| 56 | fileName | String | Capitalized English name. |
+| 57 | [spellClassSet](#spellclassset) | Integer | |
+| 58 | [Flags](#flags) | Integer | Unused |
+| 59 | Camera | iRefID | Used for the opening cinematic. 165 for Death Knight, 0 for the others. |
+| 60 | required_expansion | Integer | 0 = Classic, 1 = Burning Crusade, 3 = Wrath. |
### Content
@@ -31,13 +33,46 @@ This DBC contains all possible player classes.
| 3 | 4 | Hunter |
| 4 | 8 | Rogue |
| 5 | 16 | Priest |
-| 6 | 32 | Death Knight (3.x) |
+| 6 | 32 | Death Knight |
| 7 | 64 | Shaman |
| 8 | 128 | Mage |
| 9 | 256 | Warlock |
-| 10 | 512 | Monk (5.x) |
| 11 | 1024 | Druid |
-| 12 | 2048 | Demon Hunter (7.x) |
+
+### Flags
+
+| Flag | Description |
+|------|-----------------------------|
+| 1 | Use loincloth |
+| 2 | Player class |
+| 4 | Display pet |
+| 8 | Unused |
+| 16 | Can wear mail |
+| 32 | Can wear scaling-stat plate |
+| 64 | Bind starting area |
+
+### spellClassSet
+
+| ID | Family | Notes |
+|----|--------------|-----------------------------|
+| 0 | Generic | |
+| 1 | Unk1 | Events, holidays |
+| 2 | Unused | |
+| 3 | Mage | |
+| 4 | Warrior | |
+| 5 | Warlock | |
+| 6 | Priest | |
+| 7 | Druid | |
+| 8 | Rogue | |
+| 9 | Hunter | |
+| 10 | Paladin | |
+| 11 | Shaman | |
+| 12 | Unk2 | Spells (Silence resistance) |
+| 13 | Potion | |
+| 14 | Unused | |
+| 15 | Death Knight | |
+| 16 | Unused | |
+| 17 | Pet | |
### Description of the fields
diff --git a/docs/chrraces.md b/docs/chrraces.md
index 4e2dcd3..20dd4e2 100644
--- a/docs/chrraces.md
+++ b/docs/chrraces.md
@@ -6,27 +6,32 @@ This dbc contains all possible races, some of which are unused and unavailable t
### Structure
-| Column | Field | Type | Notes |
-|--------|-------------------|--------------|-------------------------------------------------|
-| 1 | RaceID | Integer | |
-| 2 | Flags | Integer | |
-| 3 | FactionID | Integer | faction template id |
-| 4 | | | unused |
-| 5 | model_m | Integer | |
-| 6 | model_f | Integer | |
-| 7 | | | unused |
-| 8 | TeamID | Integer | (7-Alliance 1-Horde) |
-| 9-12 | | | unused |
-| 13 | CinematicSequence | Integer | id from CinematicSequence.dbc |
-| 14 | unk_322 | | faction (0 Alliance, 1 Horde, 2 not available?) |
-| 15-30 | name | String + Loc | used for DBC language detection/selection |
-| 31 | | | string flags, unused |
-| 32-47 | nameFemale | String + Loc | if different from base (male) case |
-| 48 | | | string flags, unused |
-| 49-64 | | | if different from base (male) case |
-| 65 | | | string flags, unused |
-| 66-68 | | | unused |
-| 69 | expansion | Integer | (0 - original race, 1 - tbc addon, ...) |
+| Column | Field | Type | Notes |
+|--------|-------------------------|--------------|--------------------------------------------------------------------------------------|
+| 1 | ID | Integer | |
+| 2 | [Flags](#flags) | Integer | |
+| 3 | FactionID | iRefID | Faction template ID. The order in the creation screen depends on this. |
+| 4 | Exploration | iRefID | Played on exploring zones with SMSG_EXPLORATION_EXPERIENCE. |
+| 5 | MaleModel | iRefID | Only used for the character creation/selection screen. Server sets the model ingame. |
+| 6 | FemaleModel | iRefID | Only used for the character creation/selection screen. Server sets the model ingame. |
+| 7 | ClientPrefix | String | A short form of the name. Used for helmet models. |
+| 8 | BaseLanguage | Integer | 1 = Horde, 7 = Alliance & Not playable. |
+| 9 | creatureType | iRefID | Always 7 (Humanoid). |
+| 10 | ResSicknessSpellID | Integer | Always 15007. |
+| 11 | SplashSoundID | Integer | 1090 for dwarfs, 1096 for the others. Getting stored in CGUnit at CGUnit::PostInit. |
+| 12 | clientFilestring | String | Same as the one used in model filepaths. |
+| 13 | cinematicSequenceID | iRefID | Used for the opening cinematic. |
+| 14 | alliance | Integer | Faction (0 = Alliance, 1 = Horde, 2 = Not available) |
+| 15-30 | RaceNameNeutral | Loc | A name to display. |
+| 31 | NameLangMask | Integer | String flags, unused |
+| 32-47 | RaceNameFemale | Loc | If different from base case, otherwise unused. Always NULL for zhCN. |
+| 48 | NameFemaleLangMask | Integer | String flags, unused |
+| 49-64 | RaceNameMale | Loc | If different from base case, otherwise unused. Always NULL for zhCN. |
+| 65 | NameMaleLangMask | Integer | String flags, unused |
+| 66 | facialHairCustomization | String | Internal names for the facial features. |
+| 67 | facialHairCustomization | String | The localized ones are in luas. |
+| 68 | hairCustomization | String | Internal name for the hair customizations. Horns for tauren, normal for the others. |
+| 69 | required_expansion | Integer | 0 = Classic & Not playable, 1 = Burning Crusade |
### Content
@@ -40,7 +45,7 @@ This dbc contains all possible races, some of which are unused and unavailable t
| 6 | 32 | Tauren |
| 7 | 64 | Gnome |
| 8 | 128 | Troll |
-| 9 | 256 | Goblin (4.x) |
+| 9 | 256 | Goblin |
| 10 | 512 | Blood Elf |
| 11 | 1024 | Draenei |
| 12 | 2048 | Fel Orc |
@@ -53,15 +58,19 @@ This dbc contains all possible races, some of which are unused and unavailable t
| 19 | 262144 | Taunka |
| 20 | 524288 | Northrend Skeleton |
| 21 | 1048576 | Ice Troll |
-| 22 | 2097152 | Worgen (4.x) |
-| 24 | 8388608 | Pandaren Neutral (5.x) |
-| 25 | 16777216 | Pandaren Alliance (5.x) |
-| 26 | 33554432 | Pandaren Horde (5.x) |
+
+### Flags
+
+| Flag | Description |
+|------|-----------------------|
+| 1 | Not playable |
+| 2 | Bare feet |
+| 4 | Can mount |
+| 8 | Has bald |
### Faction values
-On WOTLK:
Alliance only = 1101
Horde only = 690
Both factions = 1791 (0 may work)
@@ -69,4 +78,4 @@ Both factions = 1791 (0 may work)
### How do I get the values?
-If you want to learn how bits work you can read the tutorial here [bit-and_bytes-tutorial](Bit-and_bytes-tutorial)
+If you want to learn how bits work you can read the [bit-and-bytes tutorial](Bit-and_bytes-tutorial).