aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


commit abb880abfcfbfadce70390dea297d13d514adbe6
parent 5cb799cc22cd1d82c20c88c179d390cc62e0d853
Author: anon <anon@example.com>
Date:   Sun,  8 Nov 2026 19:29:18 +0000

Document loot metadata research and emulator source candidates

Diffstat:
Mdocs/npc-loot.md | 76++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+), 0 deletions(-)

diff --git a/docs/npc-loot.md b/docs/npc-loot.md @@ -27,6 +27,82 @@ profile selects supported QL3..5 gloves/pistols; the Clan profile retains fixed QL4. Broader useful pools, variable quantities, historical distributions and a universal loot-quality rule remain open in TODO. +## Item metadata and emulator comparison, November 8 + +Question: can the original item catalog supply loot eligibility or probabilities, +and which parts of other emulator implementations can guide additional sources? +This bounded audit inspected the decoded 14.9.1 item attributes, the retained +CellAO revision `ca77f375a7dabe3be769da94e6c2a3d093344c2c`, and AORebirth revision +`6ec06bbd45e72496923275dcc8fd4e25fecace73`. These are pinned research snapshots, +not a claim about either project's latest deployment. + +No verified generic loot-eligibility attribute or drop probability was found in +the decoded item properties. Item class, capabilities, quality and requirements +can help screen candidates, but do not assign them to a creature or vendor. +`NoDrop` restricts transfer; it must not exclude an item from corpse generation. +CellAO's `ItemTemplate.CanBeTemplateItem` only checks flag bit 3; no callers in +that snapshot establish it as a loot admission rule. + +The local attribute scan found 1,484 records containing stat 422 (`chance_of_use`), +including innate monster weapons, and ten records containing stat 534 +(`dud_chance`), with Mine examples. Stat 345 (`HasAlwaysLootable` in the emulator +stat enums) occurs in none of the decoded item attributes. All observed top-level +stat IDs have names in our catalog, but names do not establish every field's +semantics or exhaust undecoded record sections. None of these observations +justifies treating an item percentage as a drop rate. + +The external code keeps loot selection separate from the client item record: + +- [CellAO `DBMobTemplate`](https://github.com/CellAO/CellAO-NightPredator/blob/ca77f375a7dabe3be769da94e6c2a3d093344c2c/CellAO/Libraries/Source/CellAO.Database/Entities/DBMobTemplate.cs) + defines `DropHashes`, `DropSlots` and `DropRates`; rates are percent times 100, + so 1250 means 12.5%. Its + [`mobdroptable.sql`](https://github.com/CellAO/CellAO-NightPredator/blob/ca77f375a7dabe3be769da94e6c2a3d093344c2c/CellAO/Libraries/Source/CellAO.Database/SqlTables/mobdroptable.sql) + maps pool hashes to low/high template IDs, QL bounds and a level-range check. + The file explicitly describes its 25 seed rows as examples for level design; + they are not a complete recovered original loot database. +- AORebirth's + [`LootableDynel.RollItemTable`](https://github.com/subarumike/AORebirth/blob/6ec06bbd45e72496923275dcc8fd4e25fecace73/AORebirth/Server/ZoneEngine_New/Core/Entities/LootableDynel.cs) + rolls each NPC entry's `Chance`, `Repeats` and `LevelMod`, then asks + `HashItemMinter.RollSpawnIds` to resolve the item pool. `HashItemCatalog` reads + the separately authored `GameData/ItemTemplates.json` categories/families; + the minter filters candidates by supported QL. This JSON is server content, + not evidence that the original client item records contain drop chances. +- AORebirth's architecture document describes a richer global loot system, + but the inspected `LootGenerationService` and associated evidence adapters + reside under `Tests/Fixtures/Gameplay/Playfields`. The inspected production + path uses `LootableDynel`; its checked-in `NpcTemplates.json` contains only + the fallback `AAAA` template and no loot table. Do not infer production + content coverage from the architecture document or test fixtures alone. + +The [observed-loot CSV](https://github.com/subarumike/AORebirth/blob/6ec06bbd45e72496923275dcc8fd4e25fecace73/docs/reference/loot/mob-loot-coverage/ObservedLiveLootSeed.csv) +is useful for candidate membership: for example, eight Beach Leet bodies include +four Monster Parts observations and one Low-Tech glove observation. These are +sample frequencies, not established 50%/12.5% original probabilities. The corpus +includes later starter-island content and must be checked against 14.9.1 item +identities and our existing NPC bindings before use. + +Cross-checking that CSV against our source index gives a concrete review list: +Ruby (136626), Ember (136628), Golden Sphere (136642), Pearl of Rubi-Ka (136646), +Snake Ring (136610), and Bracelet of Ka (136618) exist in our catalog and have +no indexed acquisition source. Low-Tech gloves (70562) already have shops but +no configured drops. Perfectly Formed Seashell (259990) and Spinal Section +(248323) are absent from our 14.9.1 catalog and must not be imported. The six +unsourced candidates still need effect/usage and target-era membership review; +this comparison does not establish their loot rates or authorize all their QLs. + +The useful design direction is small reusable item pools assigned explicitly to +reviewed species/bosses, with separate probabilities and supported QL ranges. +Our current per-profile loot rows already support a small first expansion; +copying the other project's broader architecture is unnecessary. Keep observed +membership, historical evidence and provisional balance choices distinct. + +Missing evidence remains target-era creature-to-pool membership and its actual +probability/QL distributions. Reopen historical research for a named candidate +when a period table, capture or credible contemporary account becomes available. +A deliberately provisional early-game pool can proceed as a separate content +change with explicit rates and focused economy/effect checks. This audit changes +no loot tables, probabilities or runtime behavior. + ## Evidence boundary The shipped item record 42640 has type 51005, QL 1, value 100 and no effect sections;