Forums WoW Modding Support Archives Azerothcore Discord Archives [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?

[DiscordArchive] So do you think it would be fine enough to just add to it right after that has been called?

Pages (2): Previous 1 2
rektbyfaith
Administrator
0
05-18-2024, 05:16 PM
#11
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?
rektbyfaith
05-18-2024, 05:16 PM #11

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?

rektbyfaith
Administrator
0
05-18-2024, 05:16 PM
#12
Archived author: Sylian • Posted: 2024-05-18T17:16:39.521000+00:00
Original source

Whats the easiest way to do such a thing?
rektbyfaith
05-18-2024, 05:16 PM #12

Archived author: Sylian • Posted: 2024-05-18T17:16:39.521000+00:00
Original source

Whats the easiest way to do such a thing?

rektbyfaith
Administrator
0
05-18-2024, 05:23 PM
#13
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&]
rektbyfaith
05-18-2024, 05:23 PM #13

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&]

rektbyfaith
Administrator
0
05-18-2024, 05:35 PM
#14
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
rektbyfaith
05-18-2024, 05:35 PM #14

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

Pages (2): Previous 1 2
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)