feat(Core/Scripting): Create OnStoreNewItem() hook (#13725)
This commit is contained in:
parent
e029853799
commit
6177ce4688
3 changed files with 13 additions and 1 deletions
|
|
@ -582,6 +582,14 @@ void ScriptMgr::OnLootItem(Player* player, Item* item, uint32 count, ObjectGuid
|
|||
});
|
||||
}
|
||||
|
||||
void ScriptMgr::OnStoreNewItem(Player* player, Item* item, uint32 count)
|
||||
{
|
||||
ExecuteScript<PlayerScript>([&](PlayerScript* script)
|
||||
{
|
||||
script->OnStoreNewItem(player, item, count);
|
||||
});
|
||||
}
|
||||
|
||||
void ScriptMgr::OnCreateItem(Player* player, Item* item, uint32 count)
|
||||
{
|
||||
ExecuteScript<PlayerScript>([&](PlayerScript* script)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue