The `npc_trainer` table
This table contains all the spells that each trainer can teach.
Structure
Field | Type | Attributes | Key | Null | Default | Extra | Comment |
---|---|---|---|---|---|---|---|
ID | MEDIUMINT | UNSIGNED | PRI | NO | 0 | ||
SpellID | MEDIUMINT | SIGNED | PRI | NO | 0 | ||
MoneyCost | INT | UNSIGNED | NO | 0 | |||
ReqSkillLine | SMALLINT | UNSIGNED | NO | 0 | |||
ReqSkillRank | SMALLINT | UNSIGNED | NO | 0 | |||
ReqLevel | TINYINT | UNSIGNED | NO | 0 |
Description of the fields
Usually, this would be an entry of a creature referring to creature_template.entry.
The spell ID is from Spell.dbc. If the ID is negative, it's a reference pointing to the positive value of the ID.
The price that the player needs to pay to learn the spell in copper. If you get this information from a data site such as Wowhead, consider that they usually post discounted prices based on friendly to exalted with a given faction.'
(1 gold = 100 silver = 10000 cooper).
The required skill the player needs to have to be able to learn the spell. See ID in SkillLine.dbc.
The proficiency in the skill from reqskill that the player needs to meet to learn the spell.
The level the player needs to be to learn the spell.