mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 14:37:44 +00:00
Inventory fixes.
This commit is contained in:
parent
28d3029abe
commit
c63e9d1517
2 changed files with 13 additions and 3 deletions
|
@ -171,11 +171,11 @@ namespace Sapphire::Network::Packets
|
|||
|
||||
ItemInfo = 0x00F2, // updated 5.18
|
||||
ContainerInfo = 0x01F2, // updated 5.18
|
||||
InventoryTransactionFinish = 0x01AB, // updated 5.1
|
||||
InventoryTransaction = 0x023E, // updated 5.1
|
||||
InventoryTransactionFinish = 0x00D2, // updated 5.18
|
||||
InventoryTransaction = 0x0233, // updated 5.18
|
||||
CurrencyCrystalInfo = 0x02BF, // updated 5.18
|
||||
|
||||
InventoryActionAck = 0x0084, // updated 5.1
|
||||
InventoryActionAck = 0x02FA, // updated 5.18
|
||||
UpdateInventorySlot = 0x0370, // updated 5.18
|
||||
|
||||
HuntingLogEntry = 0x01B3, // updated 5.0
|
||||
|
|
|
@ -607,6 +607,11 @@ Sapphire::ItemPtr Sapphire::Entity::Player::addItem( uint32_t catalogId, uint32_
|
|||
{
|
||||
queuePacket( makeActorControlSelf( getId(), ItemObtainIcon, catalogId, originalQuantity ) );
|
||||
|
||||
auto soundEffectPacket = makeZonePacket< FFXIVIpcInventoryActionAck >( getId() );
|
||||
soundEffectPacket->data().sequence = 0xFFFFFFFF;
|
||||
soundEffectPacket->data().type = 6;
|
||||
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< FFXIVIpcInventoryActionAck >( getId() );
|
||||
soundEffectPacket->data().sequence = 0xFFFFFFFF;
|
||||
soundEffectPacket->data().type = 6;
|
||||
queuePacket( soundEffectPacket );
|
||||
}
|
||||
|
||||
return item;
|
||||
|
|
Loading…
Add table
Reference in a new issue