1
Fork 0
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:
amibu 2017-10-06 00:22:08 +02:00
parent a2522873d5
commit 3a6906cbc2
5 changed files with 5 additions and 11 deletions

View file

@ -118,7 +118,7 @@ namespace Packets {
EorzeaTimeOffset = 0x01B4,
CharaGearParams = 0x01C0,
EquipDisplayFlags = 0x01C0,
CFAvailableContents = 0x01CF,

View file

@ -1290,7 +1290,7 @@ struct FFXIVIpcEorzeaTimeOffset : FFXIVIpcBasePacket<EorzeaTimeOffset>
* Structural representation of the packet sent by the server
* to set the gear show/hide status of a character
*/
struct FFXIVIpcCharaGearParams : FFXIVIpcBasePacket<CharaGearParams>
struct FFXIVIpcEquipDisplayFlags : FFXIVIpcBasePacket<EquipDisplayFlags>
{
uint8_t bitmask;
};

View file

@ -1429,7 +1429,7 @@ void Core::Entity::Player::setTitle( uint16_t titleId )
void Core::Entity::Player::setEquipDisplayFlags( uint8_t state )
{
m_equipDisplayFlags = state;
GamePacketNew< FFXIVIpcCharaGearParams, ServerZoneIpcType > paramPacket( getId() );
GamePacketNew< FFXIVIpcEquipDisplayFlags, ServerZoneIpcType > paramPacket( getId() );
paramPacket.data().bitmask = m_equipDisplayFlags;
sendToInRangeSet( paramPacket, true );
setSyncFlag( PlayerSyncFlags::Status );

View file

@ -90,7 +90,7 @@ bool Core::Entity::Player::load( uint32_t charId, Core::SessionPtr pSession )
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;
}

View file

@ -375,13 +375,7 @@ void Core::DebugCommandHandler::add( char * data, Core::Entity::PlayerPtr pPlaye
}
else
{
int32_t opcode;
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) );
pPlayer->sendUrgent( subCommand + " is not a valid ADD command." );
}