mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 08:27:46 +00:00
Stuff I forgot
This commit is contained in:
parent
a2522873d5
commit
3a6906cbc2
5 changed files with 5 additions and 11 deletions
|
@ -118,7 +118,7 @@ namespace Packets {
|
||||||
|
|
||||||
EorzeaTimeOffset = 0x01B4,
|
EorzeaTimeOffset = 0x01B4,
|
||||||
|
|
||||||
CharaGearParams = 0x01C0,
|
EquipDisplayFlags = 0x01C0,
|
||||||
|
|
||||||
CFAvailableContents = 0x01CF,
|
CFAvailableContents = 0x01CF,
|
||||||
|
|
||||||
|
|
|
@ -1290,7 +1290,7 @@ struct FFXIVIpcEorzeaTimeOffset : FFXIVIpcBasePacket<EorzeaTimeOffset>
|
||||||
* Structural representation of the packet sent by the server
|
* Structural representation of the packet sent by the server
|
||||||
* to set the gear show/hide status of a character
|
* to set the gear show/hide status of a character
|
||||||
*/
|
*/
|
||||||
struct FFXIVIpcCharaGearParams : FFXIVIpcBasePacket<CharaGearParams>
|
struct FFXIVIpcEquipDisplayFlags : FFXIVIpcBasePacket<EquipDisplayFlags>
|
||||||
{
|
{
|
||||||
uint8_t bitmask;
|
uint8_t bitmask;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1429,7 +1429,7 @@ void Core::Entity::Player::setTitle( uint16_t titleId )
|
||||||
void Core::Entity::Player::setEquipDisplayFlags( uint8_t state )
|
void Core::Entity::Player::setEquipDisplayFlags( uint8_t state )
|
||||||
{
|
{
|
||||||
m_equipDisplayFlags = state;
|
m_equipDisplayFlags = state;
|
||||||
GamePacketNew< FFXIVIpcCharaGearParams, ServerZoneIpcType > paramPacket( getId() );
|
GamePacketNew< FFXIVIpcEquipDisplayFlags, ServerZoneIpcType > paramPacket( getId() );
|
||||||
paramPacket.data().bitmask = m_equipDisplayFlags;
|
paramPacket.data().bitmask = m_equipDisplayFlags;
|
||||||
sendToInRangeSet( paramPacket, true );
|
sendToInRangeSet( paramPacket, true );
|
||||||
setSyncFlag( PlayerSyncFlags::Status );
|
setSyncFlag( PlayerSyncFlags::Status );
|
||||||
|
|
|
@ -90,7 +90,7 @@ bool Core::Entity::Player::load( uint32_t charId, Core::SessionPtr pSession )
|
||||||
|
|
||||||
if( !pQR )
|
if( !pQR )
|
||||||
{
|
{
|
||||||
g_log.error( "[SQL] Failed loading Player ID " + char_id_str );
|
g_log.error( "[DB] Failed loading Player ID " + char_id_str );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -375,13 +375,7 @@ void Core::DebugCommandHandler::add( char * data, Core::Entity::PlayerPtr pPlaye
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int32_t opcode;
|
pPlayer->sendUrgent( subCommand + " is not a valid ADD command." );
|
||||||
sscanf(params.c_str(), "%x", &opcode);
|
|
||||||
|
|
||||||
Network::Packets::GamePacketNew<Network::Packets::Server::FFXIVIpcCharaGearParams, Network::Packets::ServerZoneIpcType > paramPacket(pPlayer->getId());
|
|
||||||
paramPacket.data().bitmask = opcode;
|
|
||||||
pPlayer->sendToInRangeSet(paramPacket, true);
|
|
||||||
pPlayer->sendUrgent( subCommand + " is not a valid ADD command." + std::to_string(opcode) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue