UODiamondCodex

Stuck (Unstuck) System

A self-rescue command that, after a 2-minute stationary channel, teleports a stuck player back to town — Britain normally, or Moonglow for murderers/negative-karma players. Source: UOD - System Stuck.scp.

How it works

The FUNCTION stuck starts the process with several gates:

  • Blocked in event regions/states: e_ffa, e_maze, e_britainpvp, e_bash, and in regions named *Champion*, *Tourney*, *waiting*, *race*, *arena*, *starting*, *Jail*.
  • Blocked if already stuck (restest 1 i_stuck).
  • Requires the player to be alive, at full health, and at full mana (if dead, it suggests saying "Home Home Home" instead).

On success it equips the timer item i_stuck and records the player's current X/Y (tag.currentposx/y). It tells the player their destination up front (Moonglow if kills > 3 or karma < -4000, otherwise Britain).

i_stuck (MORE=120) is a 120-second countdown that ticks every second:

  • Each tick announces the remaining seconds.
  • Cancels immediately if the player drops below full health or mana, or if they move (current position no longer matches the stored position).
  • When the counter reaches 0 it teleports: go moonglow for murderers/negative-karma, else go britain.

Commands / player-facing usage

Command Effect
stuck Begin the 2-minute unstuck channel; must stay still, alive, full HP/mana

Key definitions

DEFNAME Role
stuck Command that validates conditions and starts the timer
i_stuck 120-second countdown that performs the teleport
tag.currentposx / tag.currentposy Stored position; movement cancels the process
Destination rule kills > 3 or karma < -4000 → Moonglow, else Britain