mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 14:46:24 +00:00
feat(Core/Player)Add quest failure sound when inventory is full or quest failed (#20917)
This commit is contained in:
@@ -245,6 +245,11 @@ enum ReputationSource
|
||||
REPUTATION_SOURCE_SPELL
|
||||
};
|
||||
|
||||
enum QuestSound
|
||||
{
|
||||
QUEST_SOUND_FAILURE = 847
|
||||
};
|
||||
|
||||
#define ACTION_BUTTON_ACTION(X) (uint32(X) & 0x00FFFFFF)
|
||||
#define ACTION_BUTTON_TYPE(X) ((uint32(X) & 0xFF000000) >> 24)
|
||||
#define MAX_ACTION_BUTTON_ACTION_VALUE (0x00FFFFFF+1)
|
||||
|
||||
@@ -4059,6 +4059,7 @@ void Player::SendEquipError(InventoryResult msg, Item* pItem, Item* pItem2, uint
|
||||
}
|
||||
}
|
||||
GetSession()->SendPacket(&data);
|
||||
PlayDirectSound(QUEST_SOUND_FAILURE); // Play failure sound
|
||||
}
|
||||
|
||||
void Player::SendBuyError(BuyResult msg, Creature* creature, uint32 item, uint32 param)
|
||||
|
||||
Reference in New Issue
Block a user