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

[DiscordArchive] I've been looking through the cores hooks in <https://github.com/azerothcore/azerothcore-wotlk/blob/

rektbyfaith
Administrator
0
07-21-2021, 08:53 AM
#1
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?
rektbyfaith
07-21-2021, 08:53 AM #1

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?

rektbyfaith
Administrator
0
07-21-2021, 10:18 AM
#2
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
rektbyfaith
07-21-2021, 10:18 AM #2

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

rektbyfaith
Administrator
0
07-21-2021, 10:22 AM
#3
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.
rektbyfaith
07-21-2021, 10:22 AM #3

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.

rektbyfaith
Administrator
0
07-21-2021, 10:26 AM
#4
Archived author: Bogir • Posted: 2021-07-21T10:26:50.108000+00:00
Original source

maybe it?
```
bool rewarded = IsQuestRewarded(quest_id) && !quest->IsDFQuest();
```
rektbyfaith
07-21-2021, 10:26 AM #4

Archived author: Bogir • Posted: 2021-07-21T10:26:50.108000+00:00
Original source

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

rektbyfaith
Administrator
0
07-21-2021, 10:28 AM
#5
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.
rektbyfaith
07-21-2021, 10:28 AM #5

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.

rektbyfaith
Administrator
0
07-21-2021, 10:28 AM
#6
Archived author: Bogir • Posted: 2021-07-21T10:28:43.223000+00:00
Original source

https://github.com/azerothcore/azerothco...er.h#L1498
rektbyfaith
07-21-2021, 10:28 AM #6

Archived author: Bogir • Posted: 2021-07-21T10:28:43.223000+00:00
Original source

https://github.com/azerothcore/azerothco...er.h#L1498

rektbyfaith
Administrator
0
07-21-2021, 10:32 AM
#7
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
rektbyfaith
07-21-2021, 10:32 AM #7

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

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)