From 9de70852cce639e902f9422636487e7fb934db13 Mon Sep 17 00:00:00 2001 From: Lucy <44952533+Skyliegirl33@users.noreply.github.com> Date: Thu, 2 Feb 2023 02:52:42 +0100 Subject: [PATCH 1/2] Fix gil shops(?) --- src/world/Manager/EventMgr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/world/Manager/EventMgr.cpp b/src/world/Manager/EventMgr.cpp index 5069ff90..a6e6310d 100644 --- a/src/world/Manager/EventMgr.cpp +++ b/src/world/Manager/EventMgr.cpp @@ -628,9 +628,10 @@ void EventMgr::playGilShop( Entity::Player& player, uint32_t eventId, uint32_t f auto& shopMgr = Common::Service< ShopMgr >::ref(); std::vector< uint32_t > params = std::vector< uint32_t >(); + params.push_back( 201 ); //unknown params.push_back( 1 ); //command id params.push_back( 40 ); //max items for sell - params.push_back( 1 ); //flag + params.push_back( 0 ); //flag uint8_t index; for( index = 0; index < 40; index++ ) { @@ -639,7 +640,7 @@ void EventMgr::playGilShop( Entity::Player& player, uint32_t eventId, uint32_t f else break; } - params[ 1 ] = static_cast< uint32_t >( params.size() - 3 ); //new max item size + params[ 2 ] = static_cast< uint32_t >( params.size() - 4 ); //new max item size auto& exdData = Common::Service< Data::ExdData >::ref(); for( auto it : *player.getSoldItems() ) From dbbc45d9246a7076d2220aab09fa5e1ed6166722 Mon Sep 17 00:00:00 2001 From: Lucy <44952533+Skyliegirl33@users.noreply.github.com> Date: Fri, 3 Feb 2023 23:37:44 +0100 Subject: [PATCH 2/2] Fix FindContent struct --- src/common/Network/PacketDef/Zone/ClientZoneDef.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/Network/PacketDef/Zone/ClientZoneDef.h b/src/common/Network/PacketDef/Zone/ClientZoneDef.h index 089a4f4c..ec21039b 100644 --- a/src/common/Network/PacketDef/Zone/ClientZoneDef.h +++ b/src/common/Network/PacketDef/Zone/ClientZoneDef.h @@ -349,6 +349,8 @@ struct FFXIVIpcLoginHandler : FFXIVIpcBasePacket< Login > struct FFXIVIpcFindContent : FFXIVIpcBasePacket< FindContent > { uint16_t territoryType; + uint8_t unknown1; + uint8_t unknown2; // 0xC2(?) uint8_t acceptHalfway; uint8_t language; uint8_t flags;