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

Added some InitZone information

This commit is contained in:
Mordred 2019-04-02 23:56:47 +02:00
parent 88933d3bd1
commit 4ba59e92fd
2 changed files with 14 additions and 3 deletions

View file

@ -733,12 +733,24 @@ namespace Sapphire::Network::Packets::Server
uint16_t serverId; uint16_t serverId;
uint16_t zoneId; uint16_t zoneId;
uint16_t unknown1; uint16_t unknown1;
uint16_t unknown2; uint16_t contentfinderConditionId;
uint32_t unknown3; uint32_t unknown3;
uint32_t unknown4; uint32_t unknown4;
uint8_t weatherId; uint8_t weatherId;
uint8_t bitmask; uint8_t bitmask;
uint8_t bitmask1; uint8_t bitmask1;
// bitmask1 findings
//0 = unknown ( 7B F8 69 )
//1 = show playguide window ( 7B 69 )
//2 = unknown ( 7B 69 )
//4 = disables record ready check ( 7B DF DF F8 F0 E4 110 (all sorts of social packets) )
//8 = hide server icon ( 7B 69 )
//16 = enable flight ( 7B F8 69 )
//32 = unknown ( 7B F8 69 )
//64 = unknown ( 7B F8 69 )
//128 = shows message "You are now in the instanced area XX A.
//Current instance can be confirmed at any time using the /instance text command." ( 7B F8 69 )
uint8_t unknown5; uint8_t unknown5;
uint16_t festivalId; uint16_t festivalId;
uint16_t additionalFestivalId; uint16_t additionalFestivalId;

View file

@ -1734,8 +1734,7 @@ void Sapphire::Entity::Player::sendZonePackets()
auto initZonePacket = makeZonePacket< FFXIVIpcInitZone >( getId() ); auto initZonePacket = makeZonePacket< FFXIVIpcInitZone >( getId() );
initZonePacket->data().zoneId = getCurrentZone()->getTerritoryTypeId(); initZonePacket->data().zoneId = getCurrentZone()->getTerritoryTypeId();
initZonePacket->data().weatherId = static_cast< uint8_t >( getCurrentZone()->getCurrentWeather() ); initZonePacket->data().weatherId = static_cast< uint8_t >( getCurrentZone()->getCurrentWeather() );
initZonePacket->data().bitmask = 0x1; //Setting this to 16 (decimal) makes it so you can fly in the area (more research needed!) initZonePacket->data().bitmask = 0x1;
initZonePacket->data().unknown5 = 0x2A;
initZonePacket->data().festivalId = getCurrentZone()->getCurrentFestival().first; initZonePacket->data().festivalId = getCurrentZone()->getCurrentFestival().first;
initZonePacket->data().additionalFestivalId = getCurrentZone()->getCurrentFestival().second; initZonePacket->data().additionalFestivalId = getCurrentZone()->getCurrentFestival().second;
initZonePacket->data().pos.x = getPos().x; initZonePacket->data().pos.x = getPos().x;