summaryrefslogtreecommitdiff
path: root/docs/spell_required.md
blob: 68819711e6187deed18a958495831eeb05b1863e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# spell\_required

[<-Back-to:World](database-world.md)

**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.

| Field          | Type         | Attributes | Key | Null | Default | Extra | Comment |
|----------------|--------------|------------|-----|------|---------|-------|---------|
| [spell_id][1]  | MEDIUMINT | SIGNED     | PRI | NO   | 0       |       |         |
| [req_spell][2] | MEDIUMINT | SIGNED     | PRI | NO   | 0       |       |         |

[1]: #spell_id
[2]: #req_spell

**Description of the fields**

### spell\_id

Spell ID from [Spell.dbc](Spell), which require knowing \`req\_spell\` to learn from trainer.

### req\_spell

Spell ID from [Spell.dbc](Spell), which is required to be known before \`spell\_id\` can be learned from trainer.