mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-05 18:27:47 +00:00
WiP more housing.
This commit is contained in:
parent
11a1b46664
commit
94929caf96
2 changed files with 5 additions and 3 deletions
|
@ -1593,9 +1593,9 @@ namespace Sapphire::Common
|
|||
uint8_t status;
|
||||
uint8_t flags;
|
||||
uint8_t __padding1;
|
||||
uint8_t unknown1[4];
|
||||
uint32_t fcCrestId;
|
||||
uint32_t fcCrestId1;
|
||||
uint8_t unknown1[4];
|
||||
uint8_t patternIds[8];
|
||||
uint8_t colors[8];
|
||||
uint8_t unknown2[8];
|
||||
|
|
|
@ -189,9 +189,10 @@ void Sapphire::HousingZone::sendLandSet( Entity::Player& player )
|
|||
landsetInitializePacket->data().LandSetId.wardNum = m_wardNum;
|
||||
landsetInitializePacket->data().LandSetId.landId = m_landSetId;
|
||||
landsetInitializePacket->data().LandSetId.territoryTypeId = m_territoryTypeId;
|
||||
//TODO: get current WorldId
|
||||
landsetInitializePacket->data().LandSetId.worldId = server.getWorldId();
|
||||
landsetInitializePacket->data().Subdivision = 1;
|
||||
|
||||
auto isInSubdivision = isPlayerSubInstance( player );
|
||||
landsetInitializePacket->data().Subdivision = isInSubdivision ? 2 : 1;
|
||||
for( uint8_t i = 0, count = 0; i < 30; ++i, ++count )
|
||||
{
|
||||
auto pLand = getLand( i );
|
||||
|
@ -202,6 +203,7 @@ void Sapphire::HousingZone::sendLandSet( Entity::Player& player )
|
|||
landData.size = pLand->getSize();
|
||||
landData.status = pLand->getStatus();
|
||||
landData.flags = pLand->getSharing();
|
||||
landData.fcCrestId = 1;
|
||||
/* //disbaled until we managed fc's
|
||||
landData.fcCrestId = pLand->getFcId();
|
||||
landData.fcIcon = pLand->getFcIcon();
|
||||
|
|
Loading…
Add table
Reference in a new issue