[DiscordArchive] I've been looking through the cores hooks in <https://github.com/azerothcore/azerothcore-wotlk/blob/
[DiscordArchive] I've been looking through the cores hooks in <https://github.com/azerothcore/azerothcore-wotlk/blob/
Archived author: Honey • Posted: 2021-07-21T08:53:44.512000+00:00
Original source
I've been looking through the cores hooks in <https://github.com/azerothcore/azerothcore-wotlk/blob/8568c4fb332ead18263ea761d6acd9473707d3a0/src/server/game/Scripting/ScriptMgr.h> while trying to find an event which fires on every quest completition and allows to alter the XP. But i couldn't find anything which sounds like it fires on turnin and has "XP" in it's arguments.
Is anyone aware of such a hook?
Archived author: Bogir • Posted: 2021-07-21T10:18:29.148000+00:00
Original source
<@!595620700706832414>, is this use not suitable for you?
https://github.com/azerothcore/azerothco...t.cpp#L723
Archived author: Honey • Posted: 2021-07-21T10:22:49.153000+00:00
Original source
I cant really read the cpp code
My plan was to expose an existing event to eluna. I'm Not sure If that one would do the job.
Archived author: Bogir • Posted: 2021-07-21T10:26:50.108000+00:00
Original source
maybe it?
```
bool rewarded = IsQuestRewarded(quest_id) && !quest->IsDFQuest();
```
Archived author: Bogir • Posted: 2021-07-21T10:28:04.469000+00:00
Original source
Returns "true" if quest allready completed, of "false" if it isn't completed yet.
Archived author: Bogir • Posted: 2021-07-21T10:28:43.223000+00:00
Original source
https://github.com/azerothcore/azerothco...er.h#L1498
Archived author: Honey • Posted: 2021-07-21T10:32:54.255000+00:00
Original source
Hmm that's a function one would need to call manually, right?
What i am looking for is an Event, which triggers automatically whenever a Quest is turned in.
I've found this in the Eluna repo:
<http://elunaluaengine.github.io/Global/RegisterCreatureEvent.html>
But from what i understand, it requires registering an Event for every single creature to work the way i want.
This might even belong to <#353919176714354698> now