feat: add PLAYER_EVENT_ON_CAN_SEND_MAIL (#85)

This commit is contained in:
Axel Cocat
2022-12-31 00:43:46 +01:00
committed by GitHub
parent 1e57b45c40
commit 3700b4246a
5 changed files with 22 additions and 0 deletions

View File

@@ -599,3 +599,17 @@ bool Eluna::OnCanInitTrade(Player* player, Player* target)
Push(target);
return CallAllFunctionsBool(PlayerEventBindings, key);
}
bool Eluna::OnCanSendMail(Player* player, ObjectGuid receiverGuid, ObjectGuid mailbox, std::string& subject, std::string& body, uint32 money, uint32 cod, Item* item)
{
START_HOOK_WITH_RETVAL(PLAYER_EVENT_ON_CAN_SEND_MAIL, true);
Push(player);
Push(receiverGuid);
Push(mailbox);
Push(subject);
Push(body);
Push(money);
Push(cod);
Push(item);
return CallAllFunctionsBool(PlayerEventBindings, key);
}