feat(Scripting/Hooks): Implement OnQuestComputeXP() hook

This commit is contained in:
郑佩茹
2022-03-07 19:17:29 -07:00
parent b672effc36
commit d60bb4fc90
3 changed files with 12 additions and 0 deletions

View File

@@ -729,6 +729,13 @@ bool ScriptMgr::OnBeforePlayerQuestComplete(Player* player, uint32 quest_id)
return true;
}
void ScriptMgr::OnQuestComputeXP(Player* player, Quest const* quest, uint32& xpValue)
{
ExecuteScript<PlayerScript>([&](PlayerScript* script)
{
script->OnQuestComputeXP(player, quest, xpValue);
});
}
void ScriptMgr::OnBeforeStoreOrEquipNewItem(Player* player, uint32 vendorslot, uint32& item, uint8 count, uint8 bag, uint8 slot, ItemTemplate const* pProto, Creature* pVendor, VendorItem const* crItem, bool bStore)
{