summaryrefslogtreecommitdiff
path: root/docs/instance_encounters.md
diff options
context:
space:
mode:
authorFrancescoBorzi <borzifrancesco@gmail.com>2019-02-25 19:24:20 +0100
committerFrancescoBorzi <borzifrancesco@gmail.com>2019-02-25 19:24:20 +0100
commita35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3 (patch)
tree91e0cde00f6f27b730b0df3f4338fcf99fa8447a /docs/instance_encounters.md
parentd8d1823802ded97300fa57405d80b16736603489 (diff)
downloadwiki-a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3.tar.gz
wiki-a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3.tar.bz2
wiki-a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3.zip
Import DB wiki from TC 335
Diffstat (limited to 'docs/instance_encounters.md')
-rw-r--r--docs/instance_encounters.md121
1 files changed, 112 insertions, 9 deletions
diff --git a/docs/instance_encounters.md b/docs/instance_encounters.md
index 6f4c621..823574f 100644
--- a/docs/instance_encounters.md
+++ b/docs/instance_encounters.md
@@ -1,9 +1,112 @@
-[Database Structure](Database-Structure) > [World-Database](World-Database) > [instance_encounters](instance_encounters)
-
-Column | Type | Description
---- | --- | ---
-Entry | int(10) unsigned |
-CreditType | tinyint(3) unsigned |
-CreditEntry | int(10) unsigned |
-LastEncounterDungeon | smallint(5) unsigned |
-Comment | varchar(255) |
+# instance\_encounters
+
+`Back-to:World`
+
+**The \`instance\_encounters\` table**
+
+Definitions of instance encounters. Used by LFG.
+
+**Structure**
+
+<table>
+<colgroup>
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+</colgroup>
+<tbody>
+<tr class="odd">
+<td><p><strong>Field</strong></p></td>
+<td><p><strong>Type</strong></p></td>
+<td><p><strong>Attributes</strong></p></td>
+<td><p><strong>Key</strong></p></td>
+<td><p><strong>Null</strong></p></td>
+<td><p><strong>Default</strong></p></td>
+<td><p><strong>Extra</strong></p></td>
+<td><p><strong>Comment</strong></p></td>
+</tr>
+<tr class="even">
+<td><p><a href="#instance_encounters-entry">entry</a></p></td>
+<td><p>int(10)</p></td>
+<td><p>unsigned</p></td>
+<td><p>PRI</p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p> </p></td>
+<td><p>Unique entry from DungeonEncounter.dbc</p></td>
+</tr>
+<tr class="odd">
+<td><p><a href="#instance_encounters-creditType">creditType</a></p></td>
+<td><p>tinyint(3)</p></td>
+<td><p>unsigned</p></td>
+<td><p> </p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p> </p></td>
+<td><p> </p></td>
+</tr>
+<tr class="even">
+<td><p><a href="#instance_encounters-creditEntry">creditEntry</a></p></td>
+<td><p>int(10)</p></td>
+<td><p>unsigned</p></td>
+<td><p> </p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p> </p></td>
+<td><p> </p></td>
+</tr>
+<tr class="odd">
+<td><p><a href="#instance_encounters-lastEncounterDungeon">lastEncounterDungeon</a></p></td>
+<td><p>smallint(5)</p></td>
+<td><p>unsigned</p></td>
+<td><p> </p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p> </p></td>
+<td><p>If not 0, LfgDungeon.dbc entry for the instance it is last encounter in</p></td>
+</tr>
+<tr class="even">
+<td><p><a href="#instance_encounters-comment">comment</a></p></td>
+<td><p>varchat(255)</p></td>
+<td><p>signed</p></td>
+<td><p> </p></td>
+<td><p>NO</p></td>
+<td><p>&quot;</p></td>
+<td><p> </p></td>
+<td><p> </p></td>
+</tr>
+</tbody>
+</table>
+
+**Description of the fields**
+
+### entry
+
+Unique entry from DungeonEncounter.dbc
+
+### creditType
+
+See enum EncounterCreditType.
+
+ENCOUNTER\_CREDIT\_KILL\_CREATURE = 0
+
+ENCOUNTER\_CREDIT\_CAST\_SPELL = 1
+
+### creditEntry
+
+If creditType = 0, then value for this field is creature entry. See creature\_template.entry
+
+If creditType = 1, then value for this field is a spell. See Spell.dbc.
+
+### lastEncounterDungeon
+
+Reference to LfgDungeon.dbc entry for the instance it which is this encounter last. If 0, encounter is not last one.
+
+### comment
+
+Instance encounter comment for easy identification. Encounter name used only.