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:
parent
7a135768d1
commit
d4f431b37a
3 changed files with 14 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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:
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue