fix: use CMSG_OPEN_ITEM for locked containers (lockboxes)

Right-clicking a locked container (e.g. Dead-Tooth's Strong Box) was
sending CMSG_USE_ITEM with spellId=0, which the server rejects. Locked
containers (itemClass==1, inventoryType==0) now send CMSG_OPEN_ITEM
instead, letting the server auto-check the keyring for the required key.
This commit is contained in:
Kelsi 2026-03-18 06:06:29 -07:00
parent 2fb7901cca
commit 25138b5648
5 changed files with 50 additions and 2 deletions

View file

@ -2027,6 +2027,12 @@ public:
static network::Packet build(uint8_t bagIndex, uint8_t slotIndex, uint64_t itemGuid, uint32_t spellId = 0);
};
/** CMSG_OPEN_ITEM packet builder (for locked containers / lockboxes) */
class OpenItemPacket {
public:
static network::Packet build(uint8_t bagIndex, uint8_t slotIndex);
};
/** CMSG_AUTOEQUIP_ITEM packet builder */
class AutoEquipItemPacket {
public: