aorecomp

Anarchy Online classic in the browser

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


docs/pet-retreat.md (3665B)


Stopping owned pet combat

Original /pet behind emits PetCommand6b333303 with body words 2, 0, 1009, 0, 0. /pet wait emits 4, 0, 1009, 0, 0. Both use the implicit authenticated owner's pet set. Named selectors and other argument forms remain outside this admission. The actual 14.9.1 requests are retained under local/pet-retreat/ and the earlier wait captures in pet movement.

Funcom's classic Your Guide to Anarchy Online, printed page70, describes behind as "Retreat from combat" and wait as staying without attacking. The publisher-authored manual, mirrored here is corroborated for the command names by the shipped14.9.1 cd_image/text/help/Pet Commands.txt. The mirror's upload date is not used as the manual's publication date.

Current encounter transition

The current ready session may command only its owned living, unexpired pets in the same playfield. Behind and wait clear that pet's encounter threat and use the existing StopFight path to clear its outgoing target, future swing and scheduler entry. Threat clearing prevents the next combat tick from immediately reselecting the stopped opponent. Damage credit and already committed outcomes are not rewritten, and the existing recharge deadline remains unchanged. The opponent's independent attack is not cancelled.

StopFight precedes the movement controller. Behind installs the existing NPC owner-follow controller. Wait clears follow/pursuit, applies Halt19 and publishes an empty FollowTarget identity. No ownership, resource, expiry or allocation change occurs, and these transient commands do not write SQLite.

This stops the current encounter and its queued future swing. It does not establish all subsequent aggression/retaliation modes. A separate early-style player guide says a waiting pet may react to a fresh attack, unlike a literal reading of the classic manual's no-attack wording. Its future14.2 reference does not prove the 14.9.1 behavior. Default and command-specific retaliation remain evidence gaps with the open pet-combat work; no speculative persistent passive flag was added.

Verification

Public-handler tests cover idle/attacking pets, pre-existing threat, a future recharge, authenticated and forged/unavailable requests, no checkpoint writes, native stop-before-controller ordering and an opponent whose independent target and clock remain unchanged. Advancing past the old swing verifies no resumed pet attack or hit.

Two controlled owners complete the normal summon action before browser entry. A test-only endpoint starts a held production-scheduler attack; no weapon hit is calculated, so this does not establish the unresolved PT50 weapon/profile binding. Real native behind and wait commands stop both visible copies before their held deadlines. Behind follows ordinary owner movement; wait stays at its commanded pose while the owner moves away. Both deadline checks preserve target health, the other pet, ownership and the original25-point post-summon balances. The final native check takes21.17seconds with no page errors or dropped events. The source, traces, screenshots and precise verification scope are retained in local/pet-retreat/.

The broader pet/threat suite passes28 roots/90 results normally and under race detection. Maintained-package vet and Node syntax checks pass. An independent audit verifies both client streams, the two stop-before-controller transitions, no weapon results, equal final pet poses and preserved native owner counts.