1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-26 03:27:44 +00:00

Play the sound effect when getting new items.

This commit is contained in:
collett 2020-01-03 04:04:30 +09:00
parent 6df0dcffe9
commit dea1224226
2 changed files with 12 additions and 1 deletions

View file

@ -171,12 +171,13 @@ namespace Sapphire::Network::Packets
ItemInfo = 0x00F2, // updated 5.18
ContainerInfo = 0x01F2, // updated 5.18
InventoryTransactionFinish = 0x01AB, // updated 5.1
InventoryTransactionFinish = 0x02FA, // updated 5.18
InventoryTransaction = 0x023E, // updated 5.1
CurrencyCrystalInfo = 0x02BF, // updated 5.18
InventoryActionAck = 0x0084, // updated 5.1
UpdateInventorySlot = 0x0370, // updated 5.18
//InventoryUnknown = 0x02FA, // updated 5.18, not sure what it is besides playing the get item sound effect
HuntingLogEntry = 0x01B3, // updated 5.0

View file

@ -607,6 +607,11 @@ Sapphire::ItemPtr Sapphire::Entity::Player::addItem( uint32_t catalogId, uint32_
{
queuePacket( makeActorControlSelf( getId(), ItemObtainIcon, catalogId, originalQuantity ) );
auto soundEffectPacket = makeZonePacket< FFXIVIpcInventoryTransactionFinish >( getId() );
soundEffectPacket->data().sequenceId = 0xFFFFFFFF;
soundEffectPacket->data().sequenceId1 = 6; // this seems to have to be 6 in order to make that sound
queuePacket( soundEffectPacket );
return item;
}
@ -638,6 +643,11 @@ Sapphire::ItemPtr Sapphire::Entity::Player::addItem( uint32_t catalogId, uint32_
queuePacket( invUpdate );
queuePacket( makeActorControlSelf( getId(), ItemObtainIcon, catalogId, originalQuantity ) );
auto soundEffectPacket = makeZonePacket< FFXIVIpcInventoryTransactionFinish >( getId() );
soundEffectPacket->data().sequenceId = 0xFFFFFFFF;
soundEffectPacket->data().sequenceId1 = 6; // this seems to have to be 6 in order to make that sound
queuePacket( soundEffectPacket );
}
return item;