mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
New hooks OnEquip, OnPlayerJoinBG, OnPlayerJoinArena
This commit is contained in:
@@ -1333,6 +1333,22 @@ void ScriptMgr::OnAfterPlayerMoveItemFromInventory(Player* player, Item* it, uin
|
||||
FOREACH_SCRIPT(PlayerScript)->OnAfterMoveItemFromInventory(player, it, bag, slot, update);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnEquip(Player* player, Item* it, uint8 bag, uint8 slot, bool update)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnEquip(player, it, bag, slot, update);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerJoinBG(Player* player, Battleground* bg)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnPlayerJoinBG(player, bg);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerJoinArena(Player* player, Battleground* bg)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnPlayerJoinArena(player, bg);
|
||||
}
|
||||
|
||||
|
||||
// Guild
|
||||
void ScriptMgr::OnGuildAddMember(Guild* guild, Player* player, uint8& plRank)
|
||||
{
|
||||
@@ -1421,6 +1437,12 @@ void ScriptMgr::OnGroupDisband(Group* group)
|
||||
FOREACH_SCRIPT(GroupScript)->OnDisband(group);
|
||||
}
|
||||
|
||||
/*void ScriptMgr::OnGroupJoinBG(Group* group, Battleground* bg)
|
||||
{
|
||||
ASSERT(group);
|
||||
FOREACH_SCRIPT(GroupScript)->OnGroupJoinBG(group, bg);
|
||||
}*/
|
||||
|
||||
void ScriptMgr::OnGlobalItemDelFromDB(SQLTransaction& trans, uint32 itemGuid)
|
||||
{
|
||||
ASSERT(trans);
|
||||
|
||||
Reference in New Issue
Block a user