feat: add PLAYER_EVENT_ON_COMPLETE_QUEST (#90)

This commit is contained in:
veserine
2023-02-05 21:49:51 +08:00
committed by GitHub
parent 34b0c513f0
commit 067f780911
7 changed files with 21 additions and 3 deletions

View File

@@ -662,3 +662,11 @@ void Eluna::OnStoreNewItem(Player* player, Item* item, uint32 count)
Push(count);
CallAllFunctions(PlayerEventBindings, key);
}
void Eluna::OnPlayerCompleteQuest(Player* player, Quest const* quest)
{
START_HOOK(PLAYER_EVENT_ON_COMPLETE_QUEST);
Push(player);
Push(quest);
CallAllFunctions(PlayerEventBindings, key);
}