apply pending protocol, ui, audio, and CodeQL fixes

This commit is contained in:
Kelsi 2026-02-19 16:17:06 -08:00
parent 586fb88c5f
commit c69457ae3b
14 changed files with 276 additions and 142 deletions

View file

@ -282,6 +282,7 @@ enum class LogicalOpcode : uint16_t {
CMSG_SELL_ITEM,
SMSG_SELL_ITEM,
CMSG_BUY_ITEM,
CMSG_BUYBACK_ITEM,
SMSG_BUY_FAILED,
// ---- Trainer ----

View file

@ -2052,7 +2052,7 @@ public:
/** CMSG_BUY_ITEM packet builder */
class BuyItemPacket {
public:
static network::Packet build(uint64_t vendorGuid, uint32_t itemId, uint32_t count);
static network::Packet build(uint64_t vendorGuid, uint32_t itemId, uint32_t slot, uint32_t count);
};
/** CMSG_SELL_ITEM packet builder */
@ -2061,6 +2061,12 @@ public:
static network::Packet build(uint64_t vendorGuid, uint64_t itemGuid, uint32_t count);
};
/** CMSG_BUYBACK_ITEM packet builder */
class BuybackItemPacket {
public:
static network::Packet build(uint64_t vendorGuid, uint32_t slot);
};
/** SMSG_LIST_INVENTORY parser */
class ListInventoryParser {
public: