[DiscordArchive] Quick request for advice - I'm going to be making a PR to add a script hook when a GameObject's heal
[DiscordArchive] Quick request for advice - I'm going to be making a PR to add a script hook when a GameObject's heal
Archived author: KJack • Posted: 2023-09-27T18:54:11.867000+00:00
Original source
Quick request for advice - I'm going to be making a PR to add a script hook when a GameObject's health is modified. I see a couple of different conventions on how to name hooks (`OnDamage`, `DealDamage`, `ModifyMeleeDamage`, etc). If my intention is to be able to change the amount of damage that game object takes, what name should I go for?
Archived author: KJack • Posted: 2023-09-27T18:56:24.597000+00:00
Original source
specifically adding it in this function:
https://github.com/azerothcore/azerothco....cpp#L2277
[Embed: azerothcore-wotlk/src/server/game/Entities/GameObject/GameObject.cp...]
Complete Open Source and Modular solution for MMO. Contribute to azerothcore/azerothcore-wotlk development by creating an account on GitHub.
https://github.com/azerothcore/azerothco...Object.cpp
Archived author: KJack • Posted: 2023-09-27T18:58:38.833000+00:00
Original source
`OnGameObjectModifyHealth`?
`ModifyGameObjectHealthModify` is accurate but very confusing
`ModifyGameObjectHealthChange` might work
Archived author: KJack • Posted: 2023-09-27T19:04:12.422000+00:00
Original source
just want to know what's likely to get approved.
Archived author: 郑佩茹 • Posted: 2023-09-27T19:21:56.526000+00:00
Original source
OnGameObjectModifyHealth sounds good to me.
Archived author: Dreathean • Posted: 2023-09-27T20:17:33.766000+00:00
Original source
There isn't an "official" one, but one of the developers Liyunfan did start a playerbots Discord at https://discord.gg/NQm5QShwf9 which at the moment has a number of people in it though it is not super active
Archived author: brian8544 • Posted: 2023-09-27T20:22:08.566000+00:00
Original source
Aah I'm in there already, thought it was made by randoms, or dead, since no layout, etc. Thanks!