1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 14:37:44 +00:00

Merge pull request #387 from AcedArmy/develop

Fix InitZone bitmask and share my findings on it
This commit is contained in:
Mordred 2018-09-19 17:26:06 +02:00 committed by GitHub
commit ba754e0e7e
2 changed files with 3 additions and 3 deletions

View file

@ -709,8 +709,8 @@ struct FFXIVIpcInitZone : FFXIVIpcBasePacket< InitZone >
uint32_t unknown3; uint32_t unknown3;
uint32_t unknown4; uint32_t unknown4;
uint8_t weatherId; uint8_t weatherId;
uint8_t bitmask; uint16_t bitmask;
uint16_t unknown5; uint8_t unknown5;
uint16_t festivalId; uint16_t festivalId;
uint16_t additionalFestivalId; uint16_t additionalFestivalId;
uint32_t unknown8; uint32_t unknown8;

View file

@ -1561,7 +1561,7 @@ void Core::Entity::Player::sendZonePackets()
auto initZonePacket = makeZonePacket< FFXIVIpcInitZone >( getId() ); auto initZonePacket = makeZonePacket< FFXIVIpcInitZone >( getId() );
initZonePacket->data().zoneId = getCurrentZone()->getTerritoryId(); initZonePacket->data().zoneId = getCurrentZone()->getTerritoryId();
initZonePacket->data().weatherId = static_cast< uint8_t >( getCurrentZone()->getCurrentWeather() ); initZonePacket->data().weatherId = static_cast< uint8_t >( getCurrentZone()->getCurrentWeather() );
initZonePacket->data().bitmask = 0x1; initZonePacket->data().bitmask = 0x1; //Setting this to 16 (deciaml) makes it so you can fly in the area (more research needed!)
initZonePacket->data().unknown5 = 0x2A; 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;