mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
Handle auction removed, container open, and GM ticket status
- SMSG_AUCTION_REMOVED_NOTIFICATION: notify player of expired auction - SMSG_OPEN_CONTAINER: log container open event - SMSG_GM_TICKET_STATUS_UPDATE: consume (no ticket UI yet) - SMSG_PLAYER_VEHICLE_DATA: consume (no vehicle UI yet) - SMSG_SET_EXTRA_AURA_INFO_NEED_UPDATE: consume
This commit is contained in:
parent
7f89bd950a
commit
a1dbbf3915
1 changed files with 34 additions and 0 deletions
|
|
@ -4121,6 +4121,40 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
packet.setReadPos(packet.getSize());
|
||||
break;
|
||||
}
|
||||
case Opcode::SMSG_AUCTION_REMOVED_NOTIFICATION: {
|
||||
// uint32 auctionId + uint32 itemEntry + uint32 itemRandom — auction expired/cancelled
|
||||
if (packet.getSize() - packet.getReadPos() >= 12) {
|
||||
/*uint32_t auctionId =*/ packet.readUInt32();
|
||||
uint32_t itemEntry = packet.readUInt32();
|
||||
/*uint32_t itemRandom =*/ packet.readUInt32();
|
||||
ensureItemInfo(itemEntry);
|
||||
auto* info = getItemInfo(itemEntry);
|
||||
std::string itemName = info ? info->name : ("Item #" + std::to_string(itemEntry));
|
||||
addSystemChatMessage("Your auction of " + itemName + " has expired.");
|
||||
}
|
||||
packet.setReadPos(packet.getSize());
|
||||
break;
|
||||
}
|
||||
case Opcode::SMSG_OPEN_CONTAINER: {
|
||||
// uint64 containerGuid — tells client to open this container
|
||||
// The actual items come via update packets; we just log this.
|
||||
if (packet.getSize() - packet.getReadPos() >= 8) {
|
||||
uint64_t containerGuid = packet.readUInt64();
|
||||
LOG_DEBUG("SMSG_OPEN_CONTAINER: guid=0x", std::hex, containerGuid, std::dec);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Opcode::SMSG_GM_TICKET_STATUS_UPDATE:
|
||||
// GM ticket status (new/updated); no ticket UI yet
|
||||
packet.setReadPos(packet.getSize());
|
||||
break;
|
||||
case Opcode::SMSG_PLAYER_VEHICLE_DATA:
|
||||
// Vehicle data update for player in vehicle; no vehicle UI yet
|
||||
packet.setReadPos(packet.getSize());
|
||||
break;
|
||||
case Opcode::SMSG_SET_EXTRA_AURA_INFO_NEED_UPDATE:
|
||||
packet.setReadPos(packet.getSize());
|
||||
break;
|
||||
case Opcode::SMSG_TAXINODE_STATUS:
|
||||
// Node status cache not implemented yet.
|
||||
packet.setReadPos(packet.getSize());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue