Skip to content

Commit

Permalink
Fix opcode table and remove more non existent opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Exxenoz authored and killerwife committed Apr 6, 2024
1 parent 0137c31 commit bbea109
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
3 changes: 0 additions & 3 deletions src/game/Anticheat/module/Movement/movement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ uint16 GetOrderResponse(uint16 opcode)
case SMSG_MOVE_SET_HOVER:
case SMSG_MOVE_UNSET_HOVER:
return CMSG_MOVE_HOVER_ACK;
case SMSG_MOVE_SET_FLIGHT:
case SMSG_MOVE_UNSET_FLIGHT:
return CMSG_MOVE_FLIGHT_ACK;
case SMSG_MOVE_WATER_WALK:
case SMSG_MOVE_LAND_WALK:
return CMSG_MOVE_WATER_WALK_ACK;
Expand Down
7 changes: 1 addition & 6 deletions src/game/Server/Opcodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,7 @@ OpcodeHandler opcodeTable[NUM_MSG_TYPES] =
/*0x326*/ { "SMSG_GHOSTEE_GONE", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_ServerSide},
/*0x327*/ { "CMSG_GM_UPDATE_TICKET_STATUS", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_NULL},
/*0x328*/ { "SMSG_GM_TICKET_STATUS_UPDATE", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_ServerSide},
/*0x329*/ { "MSG_SET_DUNGEON_DIFFICULTY", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_NULL },
/*0x32A*/ { "CMSG_GMSURVEY_SUBMIT", STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandleGMSurveySubmitOpcode},
/*0x32B*/ { "SMSG_UPDATE_INSTANCE_OWNERSHIP", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_ServerSide},
/*0x32C*/ { "CMSG_IGNORE_KNOCKBACK_CHEAT", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_NULL},
Expand All @@ -849,10 +850,4 @@ OpcodeHandler opcodeTable[NUM_MSG_TYPES] =
/*0x338*/ { "SMSG_CHARACTER_PROFILE", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_ServerSide},
/*0x339*/ { "SMSG_CHARACTER_PROFILE_REALM_CONNECTED", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_ServerSide},
/*0x33A*/ { "SMSG_DEFENSE_MESSAGE", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_ServerSide},
/*0x33C*/ { "MSG_GM_RESETINSTANCELIMIT", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_NULL},
/*0x33E*/ { "SMSG_MOVE_SET_FLIGHT_OBSOLETE", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_ServerSide},
/*0x33F*/ { "SMSG_MOVE_UNSET_FLIGHT_OBSOLETE", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_ServerSide},
/*0x340*/ { "CMSG_MOVE_FLIGHT_ACK_OBSOLETE", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_NULL},
/*0x341*/ { "MSG_MOVE_START_SWIM_CHEAT", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_NULL},
/*0x342*/ { "MSG_MOVE_STOP_SWIM_CHEAT", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_NULL}
};
10 changes: 2 additions & 8 deletions src/game/Server/Opcodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ enum Opcodes
SMSG_GHOSTEE_GONE = 0x326,
CMSG_GM_UPDATE_TICKET_STATUS = 0x327,
SMSG_GM_TICKET_STATUS_UPDATE = 0x328,
MSG_SET_DUNGEON_DIFFICULTY = 0x329,
CMSG_GMSURVEY_SUBMIT = 0x32A,
SMSG_UPDATE_INSTANCE_OWNERSHIP = 0x32B,
CMSG_IGNORE_KNOCKBACK_CHEAT = 0x32C,
Expand All @@ -861,17 +862,10 @@ enum Opcodes
SMSG_CHARACTER_PROFILE = 0x338,
SMSG_CHARACTER_PROFILE_REALM_CONNECTED = 0x339,
SMSG_DEFENSE_MESSAGE = 0x33A,
MSG_GM_RESETINSTANCELIMIT = 0x33C,
// SMSG_MOTD = 0x33D,
SMSG_MOVE_SET_FLIGHT = 0x33E,
SMSG_MOVE_UNSET_FLIGHT = 0x33F,
CMSG_MOVE_FLIGHT_ACK = 0x340,
MSG_MOVE_START_SWIM_CHEAT = 0x341,
MSG_MOVE_STOP_SWIM_CHEAT = 0x342,
};

// Don't forget to change this value and add opcode name to Opcodes.cpp when you add new opcode!
#define NUM_MSG_TYPES 0x424
#define NUM_MSG_TYPES 0x33B

/// Player state
enum SessionStatus
Expand Down

0 comments on commit bbea109

Please sign in to comment.