summaryrefslogtreecommitdiff
path: root/docs/creature_template_resistance.md
diff options
context:
space:
mode:
authorKitzunu <24550914+Kitzunu@users.noreply.github.com>2021-03-21 15:32:39 +0100
committerGitHub <noreply@github.com>2021-03-21 15:32:39 +0100
commit0f16b4a19598ef6835285201addd8136caa023b8 (patch)
tree5a4f4fcc2b21c8acd91aed1f810f0dd45b7d815a /docs/creature_template_resistance.md
parente8a656a7055eae106ca54a7e12c2ae694d134c71 (diff)
downloadwiki-0f16b4a19598ef6835285201addd8136caa023b8.tar.gz
wiki-0f16b4a19598ef6835285201addd8136caa023b8.tar.bz2
wiki-0f16b4a19598ef6835285201addd8136caa023b8.zip
chore(c_t): Add c_t_r & c_t_s (#392)
* chore(c_t): Add c_t_r & c_t_s * fix table * Update creature_template_resistance.md * Update creature_template_resistance.md * Update creature_template_spell.md
Diffstat (limited to 'docs/creature_template_resistance.md')
-rw-r--r--docs/creature_template_resistance.md54
1 files changed, 54 insertions, 0 deletions
diff --git a/docs/creature_template_resistance.md b/docs/creature_template_resistance.md
new file mode 100644
index 0000000..0ca44d9
--- /dev/null
+++ b/docs/creature_template_resistance.md
@@ -0,0 +1,54 @@
+# creature_template_resistance
+
+[<-Back-to:World](database-world.md)
+
+**The \`creature_template_resistance\` table**
+
+**Structure**
+
+| Field | Type | Attribute | Key | Null | Default | Extra | Comment
+:--- | :--- | :--- | :--- | :--- | :--- | :--- | :---
+[CreatureID][1] | mediumint(8) | UNSIGNED | PRI | NO
+[School][2] | tinyint(6) | UNSIGNED | PRI | NO
+[Resistance][3] | smallint(6) | SIGNED | | YES | Null
+[VerifiedBuild][4] | smallint(5) | SIGNED | | YES | 0
+
+[1]: #creatureid
+[2]: #school
+[3]: #resistance
+[4]: #verifiedbuild
+
+**Description of the fields**
+
+### CreatureID
+
+Creature entry from [creature_template.entry](creature_template#entry).
+
+### School
+
+Value must be within this range. If above or under the SQL will fail on `creature_template_resistance_chk_1`.
+
+Value | Name
+:- | :-
+1 | SPELL_SCHOOL_HOLY
+2 | SPELL_SCHOOL_FIRE
+3 | SPELL_SCHOOL_NATURE
+4 | SPELL_SCHOOL_FROST
+5 | SPELL_SCHOOL_SHADOW
+6 | SPELL_SCHOOL_ARCANE
+
+### Resistance
+
+Resistance value.
+
+### VerifiedBuild
+
+This field was used to determine whether a template has been verified from WDB files.
+
+If value is 0 then it has not been parsed yet.
+
+If value is above 0 then it has been parsed with WDB files from that specific client build.
+
+If value is -1 then it is just a place holder until proper data are found on WDBs.
+
+If value is -Client Build then it was parsed with WDB files from that specific client build and manually edited later for some special necessity.