mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-07-31 01:41:14 -04:00
A locked type-3 chest (e.g. Dead-tooth's Strongbox) is not opened by CMSG_GAMEOBJ_USE, and casting the key's OPEN_LOCK spell via CMSG_CAST_SPELL is rejected because the player does not know it. Open it the way the real client does: send CMSG_USE_ITEM for the key item, targeting the chest (TARGET_FLAG_GAMEOBJECT), so the server casts the key's on-use spell and unlocks it. Locate the key wherever it lives (backpack, bag, or keyring) and add GameObject-target support to UseItemPacket. Chests opened by a known player spell (Pick Lock) still cast it; unlocked/quest containers still use a plain CMSG_GAMEOBJ_USE.