feat(Scripting/Hooks): implement OnQuestComputeXP() hook (#10934)
This commit is contained in:
parent
9ae0b4e425
commit
44b7a0666c
4 changed files with 19 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue