Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Core/Handler: Implement CMSG_REQUEST_FORCED_REACTIONS opcode and handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightprince committed Nov 10, 2023
1 parent 35b0753 commit aa6a109
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/server/game/Handlers/CharacterHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,13 @@ void WorldSession::HandleSetFactionInactiveOpcode(WorldPacket& recvData)
_player->GetReputationMgr().SetInactive(FactionIndex, Status);
}

void WorldSession::HandleRequestForcedReactionsOpcode(WorldPacket& recvData)
{
SF_LOG_DEBUG("network", "WORLD: Received CMSG_REQUEST_FORCED_REACTIONS");

_player->GetReputationMgr().SendForceReactions();
}

void WorldSession::HandleShowingHelmOpcode(WorldPacket& recvData)
{
SF_LOG_DEBUG("network", "CMSG_SHOWING_HELM for %s", _player->GetName().c_str());
Expand Down
1 change: 1 addition & 0 deletions src/server/game/Server/Protocol/Opcodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ void OpcodeTable::InitializeClientTable()
DEFINE_OPCODE_HANDLER(CMSG_REQUEST_VEHICLE_NEXT_SEAT, 0x0141, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandleChangeSeatsOnControlledVehicle ); // 5.4.8 18414
DEFINE_OPCODE_HANDLER(CMSG_REQUEST_VEHICLE_PREV_SEAT, 0x03C4, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandleChangeSeatsOnControlledVehicle ); // 5.4.8 18414
DEFINE_OPCODE_HANDLER(CMSG_REQUEST_VEHICLE_SWITCH_SEAT, 0x1143, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandleChangeSeatsOnControlledVehicle ); // 5.4.8 18414
DEFINE_OPCODE_HANDLER(CMSG_REQUEST_FORCED_REACTIONS, 0x06F5, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandleRequestForcedReactionsOpcode ); // 5.4.8 18414
DEFINE_OPCODE_HANDLER(CMSG_PLAYER_LOGIN, 0x158F, STATUS_AUTHED, PROCESS_THREADUNSAFE, &WorldSession::HandlePlayerLoginOpcode ); // 5.4.8 18414
DEFINE_OPCODE_HANDLER(CMSG_PUSHQUESTTOPARTY, 0x03D2, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandlePushQuestToParty ); // 5.4.8 18414
DEFINE_OPCODE_HANDLER(CMSG_PVP_LOG_DATA, 0x14C2, STATUS_LOGGEDIN, PROCESS_INPLACE, &WorldSession::HandlePVPLogDataOpcode ); // 5.4.8 18414
Expand Down
1 change: 1 addition & 0 deletions src/server/game/Server/Protocol/Opcodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ enum Opcodes
CMSG_REQUEST_VEHICLE_NEXT_SEAT,
CMSG_REQUEST_VEHICLE_PREV_SEAT,
CMSG_REQUEST_VEHICLE_SWITCH_SEAT,
CMSG_REQUEST_FORCED_REACTIONS,
CMSG_RESET_INSTANCES,
CMSG_RESURRECT_RESPONSE,
CMSG_RETURN_TO_GRAVEYARD,
Expand Down
1 change: 1 addition & 0 deletions src/server/game/Server/WorldSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ class WorldSession
void HandleSetLfgBonusFactionID(WorldPacket& recvData);
void HandleSetWatchedFactionOpcode(WorldPacket& recvData);
void HandleSetFactionInactiveOpcode(WorldPacket& recvData);
void HandleRequestForcedReactionsOpcode(WorldPacket& recvData);

void HandleUpdateAccountData(WorldPacket& recvPacket);
void HandleRequestAccountData(WorldPacket& recvPacket);
Expand Down

0 comments on commit aa6a109

Please sign in to comment.