mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-29 07:37:45 +00:00
Merge pull request #858 from Skyliegirl33/ThreePointThree
[3.x] Minor fixes (gil shops, findcontent struct)
This commit is contained in:
commit
d5c784f325
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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() )
|
||||
|
|
Loading…
Add table
Reference in a new issue