mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Extend EncodeBagSlot with two new branches matching vanilla's bagID conventions: - bagID = -1 -> main bank (24 slots at linear 39..62, container = player GUID; same shape as backpack with a +38 offset instead of +22). - bagID = 5..10 -> equipped bank bags (containers at equipment slots 64..69; same shape as equipped bags with the index range shifted). Both paths require the bank window to be open in the current session — the engine doesn't sync bank-side CGContainers or bank inventory entries before then, so ResolveEquipmentSlot returns null and EncodeBagSlot bails cleanly. Same constraint GetContainerItemInfo has on bank IDs.