[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: sudlud • Posted: 2024-09-28T14:39:35.856000+00:00
Original source
that function already has a hook placed in it `OnPlayerIsClass` of `PlayerScript`
Archived author: sudlud • Posted: 2024-09-28T14:40:06.143000+00:00
Original source
where a module could come in
Archived author: sudlud • Posted: 2024-09-28T14:40:33.869000+00:00
Original source
and do class checks differently e.g. for `context = CLASS_CONTEXT_CLASS_TRAINER`
Archived author: sudlud • Posted: 2024-09-28T14:42:11.229000+00:00
Original source
<https://github.com/azerothcore/azerothcore-wotlk/blob/b07670f130a0e27747f27fa54502825c04db8a3b/src/server/game/Entities/Player/Player.cpp#L1282>
Archived author: sudlud • Posted: 2024-09-28T14:42:22.259000+00:00
Original source
<https://github.com/azerothcore/azerothcore-wotlk/blob/b07670f130a0e27747f27fa54502825c04db8a3b/src/server/game/Entities/Player/Player.cpp#L2126>
Archived author: Agent • Posted: 2024-09-28T14:42:57.064000+00:00
Original source
I have Player::IsClass but I don't think I want to change this, there will be side effects
Archived author: sudlud • Posted: 2024-09-28T14:43:17.390000+00:00
Original source
you make a module with a `PlayerScript` usind the `OnPlayerIsClass` hook
Archived author: sudlud • Posted: 2024-09-28T14:43:33.602000+00:00
Original source
by default return ` return (getClass() == unitClass);` like the original function does
Archived author: sudlud • Posted: 2024-09-28T14:43:53.723000+00:00
Original source
but for `context = CLASS_CONTEXT_CLASS_TRAINER` you can allow specific combinations which class is allowed to see which trainer
Archived author: sudlud • Posted: 2024-09-28T14:43:59.487000+00:00
Original source
for example