Skip to content

Commit

Permalink
Fix two missing opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1arm committed Feb 21, 2022
1 parent d45a51b commit 02a9502
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/game/Server/Opcodes.h
Expand Up @@ -903,7 +903,7 @@ enum Opcodes
CMSG_MOVE_SET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY_ACK = 0x1341,
MSG_MOVE_START_SWIM_CHEAT = 0x1342,
MSG_MOVE_STOP_SWIM_CHEAT = 0x1343,
SMSG_MOVE_SET_CAN_FLY = 0x3DA1, // 4.3.4 15595
SMSG_MOVE_SET_CAN_FLY = 0x720E, // 4.3.4 15595
SMSG_MOVE_UNSET_CAN_FLY = 0x15A2, // 4.3.4 15595
CMSG_MOVE_SET_CAN_FLY_ACK = 0x790C, // 4.3.4 15595
CMSG_MOVE_SET_FLY = 0x1347,
Expand Down Expand Up @@ -1439,6 +1439,7 @@ enum Opcodes
SMSG_REFORGE_RESULT = 0x58A4, // 4.3.4 15595
CMSG_LOAD_SCREEN = 0x2422, // 4.3.4 15595
SMSG_START_TIMER = 0x59A5, // 4.3.4 15595
CMSG_VIOLENCE_LEVEL = 0x7816,
};

// Don't forget to change this value and add opcode name to Opcodes.cpp when you add new opcode!
Expand Down
3 changes: 2 additions & 1 deletion src/game/Server/WorldSession.h
Expand Up @@ -466,7 +466,8 @@ class WorldSession
// Misc
void SetClientTimeDelay(uint32 delay) { m_clientTimeDelay = delay; }
void ResetClientTimeDelay() { m_clientTimeDelay = 0; }

void HandleViolenceLevel(WorldPacket& recvPacket);

public: // opcodes handlers

// opcodes handlers
Expand Down
8 changes: 8 additions & 0 deletions src/game/WorldHandlers/MiscHandler.cpp
Expand Up @@ -1857,3 +1857,11 @@ void WorldSession::HandleObjectUpdateFailedOpcode(WorldPacket& recv_data)
}
}

void WorldSession::HandleViolenceLevel(WorldPacket& recvPacket)
{
uint8 violenceLevel;
recvPacket >> violenceLevel;

// do something?
}

0 comments on commit 02a9502

Please sign in to comment.