1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-25 14:07:46 +00:00

update estate guest access client trigger handler

This commit is contained in:
NotAdam 2018-12-29 19:20:47 +11:00
parent 7a135768d1
commit d4f431b37a
3 changed files with 14 additions and 1 deletions

View file

@ -346,6 +346,7 @@ enum ActorControlType : uint16_t
RequestEstateEditGreeting = 0x45B,
RequestEstateGreeting = 0x45C, // sends FFXIVIpcHousingEstateGreeting in return
RequestEstateEditGuestAccessSettings = 0x45D,
UpdateEstateGuestAccess = 0x45E,
RequestEstateTagSettings = 0x45F,
RequestEstateInventory = 0x0461,
RequestHousingItemUI = 0x463,

View file

@ -779,7 +779,7 @@ void Sapphire::World::Manager::HousingMgr::requestEstateEditGuestAccess( Entity:
if( land->getOwnerId() != player.getId() )
return;
auto packet = makeZonePacket< FFXIVIpcHousingShowEstateGuestAccess >( player.getId() );
auto packet = makeZonePacket< Server::FFXIVIpcHousingShowEstateGuestAccess >( player.getId() );
packet->data().ident = ident;
player.queuePacket( packet );

View file

@ -479,6 +479,18 @@ void Sapphire::Network::GameConnection::clientTriggerHandler( FrameworkPtr pFw,
break;
}
case ClientTriggerType::UpdateEstateGuestAccess:
{
auto canTeleport = ( param2 & 0xFF ) == 1;
auto unk1 = ( param2 >> 8 & 0xFF ) == 1; // todo: related to fc? or unused?
auto privateEstateAccess = ( param2 >> 16 & 0xFF ) == 1;
auto unk = ( param2 >> 24 & 0xFF ) == 1; // todo: related to fc? or unused?
player.sendDebug( "can teleport: " + std::to_string( canTeleport ) + ", unk: " + std::to_string( unk1 ) +
", privateEstateAccess: " + std::to_string( privateEstateAccess ) +
", unk: " + std::to_string( unk ) );
break;
}
default:
{