mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
- SortBankBags with the bank closed planned moves for the main bank, whose GUIDs sit in the player's invMgr from login, and the server refused each one. ViewForBag now hides the bank unless a banker is open, the same check as the engine's slot reader 0x6228a0. - Phase two waited for the first BAG_UPDATE_DELAYED. If the server refused every merge, none came: later sorts were ignored and the placement ran at the next unrelated bag change. Both phases now lock the items they relocate and wait on the world tick until the engine clears those locks (slot change, refusal, or merge destroying the source). A 3 s deadline that restarts on each answer releases any stragglers. - Phase one sized transfers for uncached items as 0 - count, a uint32 underflow that poured every stack into the first. Uncached items are now skipped. - Locked items (cursor, trade, in-flight move) are pinned in place instead of being moved and having the server refuse the move. - The autosort exclusions passed a stack-local bag list that the deferred placement read after it was freed. The active list is now owned. - A login or /reload resets an in-flight sort, so it can't resume on the next character's bags. Also add doc descriptors for all eight C_Container registrations, report locksReleased from _classicapi_SortBagsStats, rewrite the stale comments, and update docs/API.md.