1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-04 01:37:47 +00:00

Merge pull request #619 from collett8192/inventory_fixes

Inventory fixes.
This commit is contained in:
Adam 2020-01-05 09:24:51 +11:00 committed by GitHub
commit 85625244c8
2 changed files with 13 additions and 3 deletions

View file

@ -171,11 +171,11 @@ namespace Sapphire::Network::Packets
ItemInfo = 0x00F2, // updated 5.18 ItemInfo = 0x00F2, // updated 5.18
ContainerInfo = 0x01F2, // updated 5.18 ContainerInfo = 0x01F2, // updated 5.18
InventoryTransactionFinish = 0x01AB, // updated 5.1 InventoryTransactionFinish = 0x00D2, // updated 5.18
InventoryTransaction = 0x023E, // updated 5.1 InventoryTransaction = 0x0233, // updated 5.18
CurrencyCrystalInfo = 0x02BF, // updated 5.18 CurrencyCrystalInfo = 0x02BF, // updated 5.18
InventoryActionAck = 0x0084, // updated 5.1 InventoryActionAck = 0x02FA, // updated 5.18
UpdateInventorySlot = 0x0370, // updated 5.18 UpdateInventorySlot = 0x0370, // updated 5.18
HuntingLogEntry = 0x01B3, // updated 5.0 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 ) ); queuePacket( makeActorControlSelf( getId(), ItemObtainIcon, catalogId, originalQuantity ) );
auto soundEffectPacket = makeZonePacket< FFXIVIpcInventoryActionAck >( getId() );
soundEffectPacket->data().sequence = 0xFFFFFFFF;
soundEffectPacket->data().type = 6;
queuePacket( soundEffectPacket );
return item; return item;
} }
@ -638,6 +643,11 @@ Sapphire::ItemPtr Sapphire::Entity::Player::addItem( uint32_t catalogId, uint32_
queuePacket( invUpdate ); queuePacket( invUpdate );
queuePacket( makeActorControlSelf( getId(), ItemObtainIcon, catalogId, originalQuantity ) ); queuePacket( makeActorControlSelf( getId(), ItemObtainIcon, catalogId, originalQuantity ) );
auto soundEffectPacket = makeZonePacket< FFXIVIpcInventoryActionAck >( getId() );
soundEffectPacket->data().sequence = 0xFFFFFFFF;
soundEffectPacket->data().type = 6;
queuePacket( soundEffectPacket );
} }
return item; return item;