# Advanced Loot Rules window (staged 2026-10-03, TEST only, not published)

Files: dinput8.dll (md5 7a28b1e9, client_dll 62f7af4 = build of 330a69c), HJ_AdvLootWnd.xml (+ Rules... button),
HJ_AdvLootRulesWnd.xml (new window, from client_dll/genxml_rules.py), EQUI.xml (= patch_files EQUI.xml a9d36cba plus
one line: <Include>HJ_AdvLootRulesWnd.xml</Include>). verify_sites.py vs patch_files/eqgame.exe: 37 hooks + 1 call
site, 0 problems. The DLL also carries the not-yet-published backstab byte patch (client_dll 95cc35d).
Server side: quests e2cabce9d on test (advloot_engine.lua + commands/advloot.lua).

## Test on the desktop
scp -r openclawvm:heroes_journey_workspace/patcher/staged_lootrules /tmp/ && bash /tmp/staged_lootrules/install_desktop.sh
Launch with "EverQuest RoF2 Tanks (Direct)" (the Patcher launcher restores the live files). hjclient.log should
show "...+lootrules) loaded" and, on first open, "HJ_AdvLootRulesWnd: window created (list ok)".
Undo: bash /tmp/staged_lootrules/install_desktop.sh --revert (or run the Patcher launcher once).

## Publish (after Trevor confirms on test)
1. Prod quests: cd ~/eqserver/quests && git cherry-pick e2cabce9d   (clean with or without personal loot
   62ebfca85/ddb3cee8a), then prod console: api reload 22. No restart.
2. Patcher: back up patch_files/dinput8.dll and patch_files/uifiles/default/{EQUI,HJ_AdvLootWnd}.xml to
   ~/.local/share/eq-backups/<date>/, copy this folder's dinput8.dll to patch_files/ and the three XML files to
   patch_files/uifiles/default/, put a line at the top of news.txt, run python3 generate_manifest.py.
   Old clients are fine: without the new XML the DLL falls back to the chat list.
