[DiscordArchive] So do you think it would be fine enough to just add to it right after that has been called?
[DiscordArchive] So do you think it would be fine enough to just add to it right after that has been called?
Archived author: Sylian • Posted: 2024-05-18T17:16:19.514000+00:00
Original source
So, I should basically add the values inside the "sScriptMgr->OnPlayerUpdateAllStats" hook I got?
Or would it be better to go between the lines on GetTotalStatValue and SetStat, and then add to the total value before it gets set?
Archived author: Sylian • Posted: 2024-05-18T17:16:39.521000+00:00
Original source
Whats the easiest way to do such a thing?
![[Image: image.png?ex=690c30b4&is=690adf34&hm=2fc...55d22ec9a&]](https://cdn.discordapp.com/attachments/284323424032129024/1241440922969964566/image.png?ex=690c30b4&is=690adf34&hm=2fcd0e6014d52ea2329b2125024cd82294a53dd4d6d4e7b5b87f80a55d22ec9a&)
Archived author: Sylian • Posted: 2024-05-18T17:23:00.950000+00:00
Original source
So if I understand correctly.
I could go in right after, then when my event/hook is triggered, I just do the part where it sets the stats, but on value I add the new value needed to the current value?
![[Image: image.png?ex=690c30b4&is=690adf34&hm=2fc...55d22ec9a&]](https://cdn.discordapp.com/attachments/284323424032129024/1241440922969964566/image.png?ex=690c30b4&is=690adf34&hm=2fcd0e6014d52ea2329b2125024cd82294a53dd4d6d4e7b5b87f80a55d22ec9a&)
Archived author: Foe • Posted: 2024-05-18T17:35:48.274000+00:00
Original source
Depends how you want to implement it, this is system design, you do it the way you think is best