So, I want to make a custom trainer that will teach DK's missing skills, (Plate, and the Common language). I put the NPCs flag to 49 (trainer) it's faction to 2082 , its unit flags to 32768 (i just copied Lady Alistra , who is a DK trainer).
I then go to the npc_trainer and make a new row with the entry ID as the entry ID of my NPC, the spell column as the skills ID, and then the cost and required level (which is 80).
I rince and repeat for the Common language skill, and then this when I talk to the NPC on my Deathknight, it just automatically asks me to respec and it shows me the cost. It won't even show the option to train any spells!
** I realized that this is maybe because skills are not SPELLS, so therefor it wouldn't work. But in that case, is there any way to make a skill training NPC? I don't know what to edit in the DB, or how to program in C++. Thanks in advance guys.
~