mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-29 15:47:46 +00:00
Fix UpdateInventorySlot to use right opcode
This commit is contained in:
parent
de31ef68ca
commit
1e3fe5e9c2
2 changed files with 10 additions and 3 deletions
|
@ -1145,6 +1145,12 @@ namespace Sapphire::Network::Packets::WorldPackets::Server
|
||||||
ZoneProtoDownNormalItem item;
|
ZoneProtoDownNormalItem item;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct FFXIVIpcUpdateItem : FFXIVIpcBasePacket< UpdateItem >
|
||||||
|
{
|
||||||
|
uint32_t contextId;
|
||||||
|
ZoneProtoDownNormalItem item;
|
||||||
|
};
|
||||||
|
|
||||||
struct FFXIVIpcItemSize : FFXIVIpcBasePacket< ItemSize >
|
struct FFXIVIpcItemSize : FFXIVIpcBasePacket< ItemSize >
|
||||||
{
|
{
|
||||||
uint32_t contextId;
|
uint32_t contextId;
|
||||||
|
|
|
@ -11,17 +11,17 @@ namespace Sapphire::Network::Packets::WorldPackets::Server
|
||||||
/**
|
/**
|
||||||
* @brief The update inventory-slot packet.
|
* @brief The update inventory-slot packet.
|
||||||
*/
|
*/
|
||||||
class UpdateInventorySlotPacket : public ZoneChannelPacket< FFXIVIpcNormalItem >
|
class UpdateInventorySlotPacket : public ZoneChannelPacket< FFXIVIpcUpdateItem >
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
UpdateInventorySlotPacket( uint32_t playerId, uint16_t slot, uint16_t storageId, const Item& item, uint32_t contextId ) :
|
UpdateInventorySlotPacket( uint32_t playerId, uint16_t slot, uint16_t storageId, const Item& item, uint32_t contextId ) :
|
||||||
ZoneChannelPacket< FFXIVIpcNormalItem >( playerId, playerId )
|
ZoneChannelPacket< FFXIVIpcUpdateItem >( playerId, playerId )
|
||||||
{
|
{
|
||||||
initialize( slot, storageId, item, contextId );
|
initialize( slot, storageId, item, contextId );
|
||||||
};
|
};
|
||||||
|
|
||||||
UpdateInventorySlotPacket( uint32_t playerId, uint16_t slot, uint16_t storageId, uint32_t contextId ) :
|
UpdateInventorySlotPacket( uint32_t playerId, uint16_t slot, uint16_t storageId, uint32_t contextId ) :
|
||||||
ZoneChannelPacket< FFXIVIpcNormalItem >( playerId, playerId )
|
ZoneChannelPacket< FFXIVIpcUpdateItem >( playerId, playerId )
|
||||||
{
|
{
|
||||||
initialize( slot, storageId, contextId );
|
initialize( slot, storageId, contextId );
|
||||||
};
|
};
|
||||||
|
@ -37,6 +37,7 @@ namespace Sapphire::Network::Packets::WorldPackets::Server
|
||||||
m_data.item.flags = static_cast< uint8_t >( item.isHq() ? 1 : 0 );
|
m_data.item.flags = static_cast< uint8_t >( item.isHq() ? 1 : 0 );
|
||||||
m_data.item.refine = item.getSpiritbond();
|
m_data.item.refine = item.getSpiritbond();
|
||||||
m_data.item.stain = static_cast< uint8_t >( item.getStain() );
|
m_data.item.stain = static_cast< uint8_t >( item.getStain() );
|
||||||
|
m_data.item.durability = item.getDurability();
|
||||||
m_data.item.signatureId = 0;
|
m_data.item.signatureId = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue