Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.

Back-to:World

The `npc_trainer` table

This table holds contains all the spells that each trainer can teach.

...

Field

Type

Attributes

Key

Null

Default

Extra

Comment

Npc trainer tc2entry

mediumint(8)

unsigned

PRI

NO

0

 

 

Npc trainer tc2spell

mediumint(8)

signed

PRI

NO

0

 

 

Npc trainer tc2spellcost

int(10)

unsigned

 

NO

0

 

 

Npc trainer tc2reqskill

smallint(5)

unsigned

 

NO

0

 

 

Npc trainer tc2reqskillvalue

smallint(5)

unsigned

 

NO

0

 

 

Npc trainer tc2reqlevel

tinyint(3)

unsigned

 

NO

0

 

 

Description of the fields

entry

The template ID of the creature. See creatureUsually, this would be an entry of a creature referring to creature_template.entry333a: Entry can also be used as a reference, Biohazard referenced all the trainers for more information see Reference_list. However, Biohazard included several trainer lists by refering to their id. For more information, see  Reference_list.

spell

The spell ID from Spell.dbcif negative spell then it is a pointer . If the ID is negative, it's pointing to a reference template.

spellcost

The cost that the player needs to pay in order to learn the spell in copper (1 gold = 100 silver = 10000 cooper). If you get this information from a data site such as Wowhead, be sure to take into account that they usually post the discounted prices based on friendly to exalted with a given faction.

reqskill

The required skill the player needs to have in order to be able to learn the spell. See ID in SkillLine.dbc).

reqskillvalue

The proficiency in the skill from Npc trainer tc2 reqskill that the player needs to meet in order to learn the spell.

reqlevel

The level the player needs to be in order to learn the spell.