NPC threat and instant taunts
NPC target selection uses individual player threat, separately from the player/team damage totals that determine rewards and corpse access. Ordinary weapons, specials, instant nano damage and periodic nano damage share it. Complete instant Hit plus TauntNPC programs add their authored signed amount after recording actual damage. No program ID chooses threat behavior.
Reconstruction policy
The original client does not implement the server's hate arithmetic. Shipped team help describes retaliation, tanks and taunting a monster off a teammate. Funcom's 14.0 notes, reproduced in an April 2002 report, say Mongo Smash incorrectly used Mongo Slam's hate amount. This establishes that magnitude matters, without supplying a numerical formula. The June 2003 Managing Aggro guide survives in differing later mirrors; its exact numbers are not sufficient evidence for the original server.
The following rules are explicit reconstruction choices:
- Add one point of threat per actual HP removed, then the signed TauntNPC amount. Clamp a negative total to zero. A hostile cast or zero-damage hit can introduce a zero-score participant without inventing damage credit.
- Select the highest eligible individual score. Retain the current opponent on equal scores; otherwise choose the lowest actor identity on a tie.
- Require a living connected player, ready and finished loading, in the same playfield, with interest in the NPC. Recheck active NPC fights each combat visit. Range and the existing pursuit policy still govern actual attacks.
- Disconnect, zoning and death remove that player's entry and immediately select another eligible participant. Stopping a player's own attack does not pacify the NPC. Damage credit remains for the NPC's life.
- NPC death clears threat. New lives start empty. Threat, fighting targets and attack clocks are encounter state held in memory; restarting the server resets them. Durable damage, contributions, rewards and nano progress retain their existing persistence rules. A later offline DoT can add damage threat but cannot select its disconnected caster.
No decay, damage-equivalent multiplier, current-target bonus, healing threat, pet threat or proximity aggression formula is claimed. A correlated period server capture is still needed to replace these choices with canonical rules.
Switching sends StopFight before Attack, so the native holder consumes queued weapon results against its old opponent. It preserves an existing next-swing deadline and recharge, rather than restarting or accelerating either phase. The relevant maintained native fields and consumers are in combat state.
Complete template contracts
An independent reparse scanned 4,366 original nanos and 83,245 item resources.
Of 239 nanos containing TauntNPC53117, none contains it alone. The supported
ordinary group is 27 complete programs and 27 individual crystals: 20 taunts
and seven nukes. All have exactly Hit53002 followed by TauntNPC53117, with
target3, one execution, no interval or function requirements, header [0,4]
and argument header9. The taunt arguments are two zero eight-byte opaque
values surrounding one signed integer. Unknown companions remain rejected.
The complete reader checks the attack/defence dictionaries, their zero default
entries, the OnUse section, action3 criteria and ordinary casting metadata.
The reviewed flag variants are 0x8000 and 0x80008000, with no duration or
strain. Taunts have school405=4 and zero Nano Resist weight; nukes have
school405=1 and their own positive weight. Resonance Blast retains can30=1.
Ordinary single-Hit and periodic admission retain their existing restrictions.
| Program | Crystal | Actual HP damage | Authored taunt |
|---|---|---|---|
| Aggression Prod26341 | 26468 | 1, stat92 | 59 |
| Ego Pummel26418 | 26545 | 1, stat92 | 181 |
| Enmity26421 | 26548 | 1, stat92 | 50 |
| Burning Bones28597 | 28800 | 1005..2476, stat97 | 2520 |
| Resonance Blast201935 | 201936 | 3105..5970, stat94 | -3000 |
Every ordinary taunt includes its authored one-point energy Hit (stat92). Enmity retains its unusual 35m range and 50 taunt. These are instant contracts: no timed active nano or NCU occupancy is manufactured from the NCU stat. Raw costs, native float debit, attack/recharge, range and real/visual profession, level and skill criteria use the shared upload/cast path. Existing resistance, damage and line-of-sight reconstruction limits still apply.
Mongo wrappers/area children, roots, snares, calms, pet aggression and unusual NPC/event effects are separate complete contracts and remain unsupported. Supporting their taunt component does not admit their other effects.
The checked-in independent oracle is
server/testdata/hit-taunt-nanos.json. Complete raw records, source offsets,
hashes and separate reparse verification are retained in
local/npc-threat-research/catalog/; period-source findings are in the adjacent
sources/ directory. Resource DAT SHA256 is
ad8afec23058db02af75b9f5d614ef6ebe3e93cc817bd626955f18a372e13741;
IDX SHA256 is
46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71.
Verification
Automated coverage includes the exact 27-program/crystal census, each upload and complete cast, every authored requirement boundary, signed negative taunt, instant lifecycle, cold durable results and encounter reset. Two-player checks cover damage switching, ties, shared team credit, swing-clock retention, packet order, unavailable targets, zoning and death. Fault injection covers target failure, ignored contribution writes and deferred COMMIT failure: uncommitted damage and threat cannot become visible or retarget the NPC.
The complete Go server/data suite passed 5,655 tests/subtests, with the server package completing in 855.426s. The exporter and assets packages compiled and have no test files. Focused threat, transaction and concurrent periodic-damage checks passed under the race detector three times in 101.067s. Vet and the preview build passed.
An additional controlled socket-disconnect test verifies immediate threat removal, takeover by the remaining connection, preserved swing deadline and unchanged lifetime damage credit. It was added after the full suite and is verified separately under the race detector. All ten repetitions passed in 94.307s; production code was unchanged after the full-suite run.
Two headed WASM clients on the GPU uploaded Aggression Prod through the native inventory, cast through the native PSI menu, and agreed on target selection in both directions. Equal totals retained the current target; repeated taunts switched it. Both clients received eight one-point energy hits on the primary fixture across the initial and ordinary-stat runs, with ordered StopFight/Attack on target changes and no timed nano or application errors. A fresh login correctly retained the other participant as the NPC target. The two-minute browser grace has also been verified with a living disconnected target. Two fresh native clients uploaded Aggression Prod; one cast established the surviving participant's threat, and two casts selected the other player. Closing that player's tab retained the target through grace: the observer read 392 HP at 111.914 seconds. At 120.046 seconds after close, it received StopFight, Attack on the remaining participant, then removal of the expired actor. The saved former target remained alive at 379 HP. All 33 outcomes during grace used the old target; all 17 later observed outcomes used the new target, with none sent late to the expired target. Damage credit remained 1/2 independently of threat removal. Reconnecting the former target did not steal the encounter. Across the takeover window, the survivor's native HP changed from 457 to 426 exactly with the five received hits: 5, 5, 7, 8 and 6. The NPC weapon ring was empty at both snapshot endpoints; no extra native damage was observed in this bounded check.
TestExpiredBrowserWorldSessionRemovesLivingTargetAndRetargetsNPC exercises
the real WebSocket detach/expiry path, with only the two-minute timer advanced
in automation. It verifies eligibility before expiry, StopFight/Attack/removal
order, unchanged swing deadline, living saved state, transient threat removal,
unchanged lifetime credit and exclusion from a later observer's initial replay.
Native snapshots, wire/SQLite assertions and hardware identity are retained in
local/npc-grace-smoke/. Owned fixtures were removed with unrelated rows
unchanged and database integrity checks passing. No production change was needed.
The broader browser/threat run passed 144 tests/subtests in 73.049s. Expiry and
disconnect integration checks passed three times under the race detector in
135.078s; vet passed.
The initial Body Development5000 fixtures showed player HP differences between native observers. At Body Development80, both clients read 326/347 HP after the checked switch. This bounds the observed result; it does not establish general combat HP/recovery correctness. Correlating server HP, recovery phases and pending weapon results remains a separate TODO alongside healing delivery.