mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-27 01:00:13 +00:00
Add /inspect command to view player equipment
- Add CMSG_INSPECT (0x114) and SMSG_INSPECT_RESULTS (0x115) opcodes - Implement InspectPacket builder for sending inspect requests - Add inspectTarget() method to GameHandler with validation - Add /inspect slash command in chat system - Validate target is a player before sending inspect request - Show helpful error messages for invalid inspect attempts - Display confirmation message when inspect request is sent
This commit is contained in:
parent
4da8c75af4
commit
8b8e32e716
6 changed files with 51 additions and 0 deletions
|
|
@ -1174,6 +1174,13 @@ network::Packet SetActiveMoverPacket::build(uint64_t guid) {
|
|||
return packet;
|
||||
}
|
||||
|
||||
network::Packet InspectPacket::build(uint64_t targetGuid) {
|
||||
network::Packet packet(static_cast<uint16_t>(Opcode::CMSG_INSPECT));
|
||||
packet.writeUInt64(targetGuid);
|
||||
LOG_DEBUG("Built CMSG_INSPECT: target=0x", std::hex, targetGuid, std::dec);
|
||||
return packet;
|
||||
}
|
||||
|
||||
network::Packet NameQueryPacket::build(uint64_t playerGuid) {
|
||||
network::Packet packet(static_cast<uint16_t>(Opcode::CMSG_NAME_QUERY));
|
||||
packet.writeUInt64(playerGuid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue