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

LandIdent now uses signed ints, rename housing clienttriggers, fix formatting

This commit is contained in:
NotAdam 2018-12-07 23:34:45 +11:00
parent 6ca213f437
commit 6af13f39a3
4 changed files with 9 additions and 9 deletions

View file

@ -803,10 +803,10 @@ namespace Sapphire::Common
struct LandIdent struct LandIdent
{ {
uint16_t landId; //00 int16_t landId; //00
uint16_t wardNum; //02 int16_t wardNum; //02
uint16_t territoryTypeId; //04 int16_t territoryTypeId; //04
uint16_t worldId; //06 int16_t worldId; //06
}; };
struct LandFlagSet struct LandFlagSet

View file

@ -311,13 +311,13 @@ enum ActorControlType : uint16_t
RequestLandSignOwned = 0x452, RequestLandSignOwned = 0x452,
RequestWardLandInfo = 0x453, RequestWardLandInfo = 0x453,
RequestLandRelinquish = 0x454, RequestLandRelinquish = 0x454,
RequestExternalHousingInventory = 0x0458, RequestHousingLandInventory = 0x0458,
RequestEstateRename = 0x45A, RequestEstateRename = 0x45A,
RequestEstateEditGreeting = 0x45B, RequestEstateEditGreeting = 0x45B,
RequestEstateGreeting = 0x45C, // sends FFXIVIpcHousingEstateGreeting in return RequestEstateGreeting = 0x45C, // sends FFXIVIpcHousingEstateGreeting in return
RequestEstateEditGuestAccessSettings = 0x45D, RequestEstateEditGuestAccessSettings = 0x45D,
RequestEstateTagSettings = 0x45F, RequestEstateTagSettings = 0x45F,
RequestInternalHousingInventory = 0x0461, RequestHousingEstateInventory = 0x0461,
RequestHousingItemUI = 0x463, RequestHousingItemUI = 0x463,
RequestSharedEstateSettings = 0x46F, RequestSharedEstateSettings = 0x46F,
UpdateEstateLightingLevel = 0x471, UpdateEstateLightingLevel = 0x471,

View file

@ -12,7 +12,7 @@
extern Sapphire::Framework g_fw; extern Sapphire::Framework g_fw;
Sapphire::ItemContainer::ItemContainer( uint16_t storageId, uint16_t maxSize, const std::string& tableName, Sapphire::ItemContainer::ItemContainer( uint16_t storageId, uint16_t maxSize, const std::string& tableName,
bool isMultiStorage, bool isPersistentStorage ) : bool isMultiStorage, bool isPersistentStorage ) :
m_id( storageId ), m_id( storageId ),
m_size( maxSize ), m_size( maxSize ),
m_tableName( tableName ), m_tableName( tableName ),

View file

@ -421,7 +421,7 @@ void Sapphire::Network::GameConnection::clientTriggerHandler( const Packets::FFX
break; break;
} }
case ClientTriggerType::RequestExternalHousingInventory: case ClientTriggerType::RequestHousingLandInventory:
{ {
if( param2 != 1 ) if( param2 != 1 )
return; return;
@ -436,7 +436,7 @@ void Sapphire::Network::GameConnection::clientTriggerHandler( const Packets::FFX
break; break;
} }
case ClientTriggerType::RequestInternalHousingInventory: case ClientTriggerType::RequestHousingEstateInventory:
{ {
// only sent if param1 is 1, because the client sends this with 0 when you open the ui for whatever reason // only sent if param1 is 1, because the client sends this with 0 when you open the ui for whatever reason
if( param1 != 1 ) if( param1 != 1 )