[DiscordArchive] So 6018 is Ur'Kyo, one of the many priest trainers... what if I changed his gossip_menu_id to that o
[DiscordArchive] So 6018 is Ur'Kyo, one of the many priest trainers... what if I changed his gossip_menu_id to that o
Archived author: Agent • Posted: 2024-09-28T14:36:02.169000+00:00
Original source
So 6018 is Ur'Kyo, one of the many priest trainers... what if I changed his gossip_menu_id to that of a mage trainer... I suspect he'd then tell me to go away cause I"m not a mage, right?
Archived author: sudlud • Posted: 2024-09-28T14:36:44.473000+00:00
Original source
please take a look at Keira3, and yeah if you set `trainer_class` to mage he will become a mage trainer
Archived author: Agent • Posted: 2024-09-28T14:37:06.936000+00:00
Original source
Would he then not talk to me at all anymore because I'm a priest?
Archived author: sudlud • Posted: 2024-09-28T14:38:14.760000+00:00
Original source
yeah
Archived author: sudlud • Posted: 2024-09-28T14:38:15.590000+00:00
Original source
so
Archived author: sudlud • Posted: 2024-09-28T14:38:47.334000+00:00
Original source
in the source code there is a function `bool Player::IsClass(Classes unitClass, ClassContext context)` that is beeing used e.g. to check if you have the right class for trainer display
Archived author: sudlud • Posted: 2024-09-28T14:39:02.264000+00:00
Original source
the check looks e.g. like `!IsClass((Classes)creature->GetCreatureTemplate()->trainer_class, CLASS_CONTEXT_CLASS_TRAINER)`
Archived author: Agent • Posted: 2024-09-28T14:39:17.686000+00:00
Original source
Which file is this code in
Archived author: sudlud • Posted: 2024-09-28T14:39:23.589000+00:00
Original source
Player.cpp
Archived author: Agent • Posted: 2024-09-28T14:39:31.022000+00:00
Original source
Ok, let me catch up to you