• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Other classes can learn from class trainer

Status
Not open for further replies.

brh11

Respected Member
Hey guys.I wondering how I can fix the dk trainers and the warlock trainer to not allow other classes to train.There was some discussion with some queries but they didn't work.Thanks :)
 

Tommy

Founder
Make sure their values are set correctly. Here is a link (http://collab.kpsn.org/display/tc/creature_template#creature_template-trainer_type) to what you need to do. Double check the trainer_type and also trainer_class. Here's a quote for trainer_class:

[h=4]trainer_class[/h]If the NPC is a class trainer or a pet trainer (trainer_type == 0 or 3), then the player's class must be the same as the value specified here to talk to this trainer. For pet trainers, this value must be 3 (hunter). See characters.class
 

brh11

Respected Member
Thanks tommy.I opened up the npc in the database and it has all the correct race and trainer set. Im just using one from ebon hold.Thanks again :)
 
Last edited:

Tommy

Founder
Thanks tommy.I opened up the npc in the database and it has all the correct race and trainer set. Im just using one from ebon hold.Thanks again :)

Have you taken a look at the other class trainer values to see if you can cheat and steal their data? Meaning, if the other class trainers work, you can look at their column values to see how they have them. Honestly, if your "trainer_type" and "trainer_class" column values are fine, I don't see how it isn't working correctly. Make sure the spells for other classes aren't in the trainer in the npc_trainer table.
 
Status
Not open for further replies.
Top