mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-30 08:07:46 +00:00
Add debug log for CFRegisterDuty
This commit is contained in:
parent
7ff741884d
commit
dfb3e4163a
1 changed files with 20 additions and 3 deletions
|
@ -1149,18 +1149,35 @@ void Core::Network::GameConnection::cfDutyInfoRequest(Core::Network::Packets::Ga
|
|||
void Core::Network::GameConnection::cfRegisterDuty(Core::Network::Packets::GamePacketPtr pInPacket,
|
||||
Core::Entity::PlayerPtr pPlayer)
|
||||
{
|
||||
// TODO implment
|
||||
// TODO use for loop for this
|
||||
auto contentId1 = pInPacket->getValAt< uint16_t >( 46 );
|
||||
auto contentId2 = pInPacket->getValAt< uint16_t >( 48 );
|
||||
auto contentId3 = pInPacket->getValAt< uint16_t >( 50 );
|
||||
auto contentId4 = pInPacket->getValAt< uint16_t >( 52 );
|
||||
auto contentId5 = pInPacket->getValAt< uint16_t >( 54 );
|
||||
|
||||
pPlayer->sendDebug("Duty register request");
|
||||
pPlayer->sendDebug("ContentId1" + std::to_string(contentId1));
|
||||
pPlayer->sendDebug("ContentId2" + std::to_string(contentId2));
|
||||
pPlayer->sendDebug("ContentId3" + std::to_string(contentId3));
|
||||
pPlayer->sendDebug("ContentId4" + std::to_string(contentId4));
|
||||
pPlayer->sendDebug("ContentId5" + std::to_string(contentId5));
|
||||
|
||||
// let's cancel it because otherwise you can't register it again
|
||||
GamePacketNew< FFXIVIpcCFNotify > cfCancelPacket( pPlayer->getId() );
|
||||
cfCancelPacket.data().state1 = 3;
|
||||
cfCancelPacket.data().state2 = 1; // Your registration is withdrawn.
|
||||
queueOutPacket( cfCancelPacket );
|
||||
}
|
||||
|
||||
void Core::Network::GameConnection::cfRegisterRoulette(Core::Network::Packets::GamePacketPtr pInPacket,
|
||||
Core::Entity::PlayerPtr pPlayer)
|
||||
{
|
||||
|
||||
pPlayer->sendDebug("Roulette register");
|
||||
}
|
||||
|
||||
void Core::Network::GameConnection::cfDutyAccepted(Core::Network::Packets::GamePacketPtr pInPacket,
|
||||
Core::Entity::PlayerPtr pPlayer)
|
||||
{
|
||||
|
||||
pPlayer->sendDebug("TODO: Duty accept");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue