Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] This feels like one of those questions that's almost too obvious to ask given how long the code has

[DiscordArchive] This feels like one of those questions that's almost too obvious to ask given how long the code has

[DiscordArchive] This feels like one of those questions that's almost too obvious to ask given how long the code has

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
10-09-2025, 04:08 PM
#1
Archived author: Grace • Posted: 2025-10-09T16:08:24.629000+00:00
Original source

This feels like one of those questions that's almost too obvious to ask given how long the code has been in place, but is daily quests not giving XP when repeated intended behavior?
rektbyfaith
10-09-2025, 04:08 PM #1

Archived author: Grace • Posted: 2025-10-09T16:08:24.629000+00:00
Original source

This feels like one of those questions that's almost too obvious to ask given how long the code has been in place, but is daily quests not giving XP when repeated intended behavior?

rektbyfaith
Administrator
0
10-09-2025, 04:08 PM
#2
Archived author: Bench • Posted: 2025-10-09T16:08:56.402000+00:00
Original source

Which daily quest(s)? Don't believe that is intended
rektbyfaith
10-09-2025, 04:08 PM #2

Archived author: Bench • Posted: 2025-10-09T16:08:56.402000+00:00
Original source

Which daily quest(s)? Don't believe that is intended

rektbyfaith
Administrator
0
10-09-2025, 04:09 PM
#3
Archived author: Grace • Posted: 2025-10-09T16:09:56.983000+00:00
Original source

All of them, I think - this code from PlayerQuest.cpp zeros out the XP for them from the 2nd and subsequent times:

`bool rewarded = IsQuestRewarded(quest_id) && !quest->IsDFQuest();

// Not give XP in case already completed once repeatable quest
uint32 XP = rewarded ? 0 : CalculateQuestRewardXP(quest);`
rektbyfaith
10-09-2025, 04:09 PM #3

Archived author: Grace • Posted: 2025-10-09T16:09:56.983000+00:00
Original source

All of them, I think - this code from PlayerQuest.cpp zeros out the XP for them from the 2nd and subsequent times:

`bool rewarded = IsQuestRewarded(quest_id) && !quest->IsDFQuest();

// Not give XP in case already completed once repeatable quest
uint32 XP = rewarded ? 0 : CalculateQuestRewardXP(quest);`

rektbyfaith
Administrator
0
10-09-2025, 04:10 PM
#4
Archived author: Bench • Posted: 2025-10-09T16:10:49.766000+00:00
Original source

Repeatable quests are not the same as daily/weekly quests for the record
rektbyfaith
10-09-2025, 04:10 PM #4

Archived author: Bench • Posted: 2025-10-09T16:10:49.766000+00:00
Original source

Repeatable quests are not the same as daily/weekly quests for the record

rektbyfaith
Administrator
0
10-09-2025, 04:11 PM
#5
Archived author: Grace • Posted: 2025-10-09T16:11:57.367000+00:00
Original source

No sure, but what I mean is that this code that's setting XP to 0 is also hitting daily quests - there's no exception there (`&& !quest->IsDaily()`)
rektbyfaith
10-09-2025, 04:11 PM #5

Archived author: Grace • Posted: 2025-10-09T16:11:57.367000+00:00
Original source

No sure, but what I mean is that this code that's setting XP to 0 is also hitting daily quests - there's no exception there (`&& !quest->IsDaily()`)

rektbyfaith
Administrator
0
10-09-2025, 04:14 PM
#6
Archived author: Bench • Posted: 2025-10-09T16:14:50.245000+00:00
Original source

Just tested in-game, you are correct. That is not intended behavior
rektbyfaith
10-09-2025, 04:14 PM #6

Archived author: Bench • Posted: 2025-10-09T16:14:50.245000+00:00
Original source

Just tested in-game, you are correct. That is not intended behavior

rektbyfaith
Administrator
0
10-09-2025, 04:17 PM
#7
Archived author: Grace • Posted: 2025-10-09T16:17:31.164000+00:00
Original source

Thank you for looking into it! I'm not an experienced C++ person at all but for what it's worth I think adding that extra conditional is probably all that's needed - I don't think it'll mess anything else up as that's the only place `rewarded` is used. It will I think change gold rewards at max level, but I suspect only correctly.
rektbyfaith
10-09-2025, 04:17 PM #7

Archived author: Grace • Posted: 2025-10-09T16:17:31.164000+00:00
Original source

Thank you for looking into it! I'm not an experienced C++ person at all but for what it's worth I think adding that extra conditional is probably all that's needed - I don't think it'll mess anything else up as that's the only place `rewarded` is used. It will I think change gold rewards at max level, but I suspect only correctly.

rektbyfaith
Administrator
0
10-09-2025, 04:22 PM
#8
Archived author: Bench • Posted: 2025-10-09T16:22:17.306000+00:00
Original source

https://github.com/azerothcore/azerothco...pull/23160
Have not tested it, but I see no reason it wouldn't correct the issue
rektbyfaith
10-09-2025, 04:22 PM #8

Archived author: Bench • Posted: 2025-10-09T16:22:17.306000+00:00
Original source

https://github.com/azerothcore/azerothco...pull/23160
Have not tested it, but I see no reason it wouldn't correct the issue

rektbyfaith
Administrator
0
10-09-2025, 04:24 PM
#9
Archived author: Grace • Posted: 2025-10-09T16:24:09.771000+00:00
Original source

As my more amateurish fix did, I know it will! Thank you again
rektbyfaith
10-09-2025, 04:24 PM #9

Archived author: Grace • Posted: 2025-10-09T16:24:09.771000+00:00
Original source

As my more amateurish fix did, I know it will! Thank you again

rektbyfaith
Administrator
0
10-09-2025, 04:24 PM
#10
Archived author: Bench • Posted: 2025-10-09T16:24:35.703000+00:00
Original source

Did you notice that in-game or from looking at the code here?
rektbyfaith
10-09-2025, 04:24 PM #10

Archived author: Bench • Posted: 2025-10-09T16:24:35.703000+00:00
Original source

Did you notice that in-game or from looking at the code here?

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