From 3a7e0253c12eca31774beb61a898a56ca5a636ef Mon Sep 17 00:00:00 2001 From: Olion Date: Wed, 28 Jun 2017 19:37:09 +0300 Subject: [PATCH] SMSG_OPEN_CONTAINER implemented --- src/game/Object/Player.cpp | 8 ++++++++ src/game/Object/Player.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/game/Object/Player.cpp b/src/game/Object/Player.cpp index 2338a9d6..0569bc54 100644 --- a/src/game/Object/Player.cpp +++ b/src/game/Object/Player.cpp @@ -11212,6 +11212,14 @@ void Player::SendEquipError(InventoryResult msg, Item* pItem, Item* pItem2, uint GetSession()->SendPacket(&data); } +void Player::SendOpenContainer() +{ + DEBUG_LOG("WORLD: Sent SMSG_OPEN_CONTAINER"); + WorldPacket data(SMSG_OPEN_CONTAINER, 8); // opens the main bag in the UI + data << GetObjectGuid(); + GetSession()->SendPacket(&data); +} + void Player::SendBuyError(BuyResult msg, Creature* pCreature, uint32 item, uint32 param) { DEBUG_LOG("WORLD: Sent SMSG_BUY_FAILED"); diff --git a/src/game/Object/Player.h b/src/game/Object/Player.h index c4f6d7c6..a9b65618 100644 --- a/src/game/Object/Player.h +++ b/src/game/Object/Player.h @@ -1222,6 +1222,7 @@ class Player : public Unit void SendEquipError(InventoryResult msg, Item* pItem, Item* pItem2 = NULL, uint32 itemid = 0) const; void SendBuyError(BuyResult msg, Creature* pCreature, uint32 item, uint32 param); void SendSellError(SellResult msg, Creature* pCreature, ObjectGuid itemGuid, uint32 param); + void SendOpenContainer(); void AddWeaponProficiency(uint32 newflag) { m_WeaponProficiency |= newflag;