summaryrefslogtreecommitdiff
path: root/docs/spell_required.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/spell_required.md')
-rw-r--r--docs/spell_required.md66
1 files changed, 61 insertions, 5 deletions
diff --git a/docs/spell_required.md b/docs/spell_required.md
index 016d4a2..9e1cfbe 100644
--- a/docs/spell_required.md
+++ b/docs/spell_required.md
@@ -1,6 +1,62 @@
-[Database Structure](Database-Structure) > [World-Database](World-Database) > [spell_required](spell_required)
+# spell\_required
-Column | Type | Description
---- | --- | ---
-Spell_id | mediumint(8) |
-Req_spell | mediumint(8) |
+`Back-to:World`
+
+**The \`spell\_required\` table**
+
+Table used to add restrictions for learning spells from trainer. Player can't learn spell 'spell\_id' till he learns 'req\_spell', when he loses 'req\_spell' 'spell\_id' will be lost too. Table is used also for profession specialisations as specialisations require profession of certain rank to learn.
+
+<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="#spell_required-spell_id">spell_id</a></p></td>
+<td><p>mediumint(9)</p></td>
+<td><p>signed</p></td>
+<td><p>PRI</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="#spell_required-req_spell">req_spell</a></p></td>
+<td><p>mediumint(9)</p></td>
+<td><p>signed</p></td>
+<td><p>PRI</p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p> </p></td>
+<td><p> </p></td>
+</tr>
+</tbody>
+</table>
+
+**Description of the fields**
+
+### spell\_id
+
+Spell ID from Spell.dbc, which require knowing \`req\_spell\` to learn from trainer.
+
+### req\_spell
+
+Spell ID from Spell.dbc, which is required to be known before \`spell\_id\` can be learned from trainer.