1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 23:27:45 +00:00

Merge pull request #858 from Skyliegirl33/ThreePointThree

[3.x] Minor fixes (gil shops, findcontent struct)
This commit is contained in:
Adam 2023-02-04 12:23:57 +11:00 committed by GitHub
commit d5c784f325
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -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;

View file

@ -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() )