SMSG_OPEN_CONTAINER implemented

This commit is contained in:
Olion 2017-06-28 19:37:09 +03:00 committed by Antz
parent 5128b38050
commit 3a7e0253c1
2 changed files with 9 additions and 0 deletions

View File

@ -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");

View File

@ -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;