UODiamondCodex

Monster Bash

A casual, open PvM "bash" zone players can enter and leave freely. Inside, players cannot loot each other and cannot harm each other with spells, and a self-serve resurrect command keeps the action going. This is a lightweight persistent event area rather than a scheduled competition.

Source: server/scripts/UOD/Events/UOD - Monster Bash.scp

How to run it

There is no GM start/stop or scheduler in the script — the bash is entered and exited via step-tiles, and death is handled by a player command.

Command / Trigger Effect
Step on i_bashenter (Enter Bash) Adds the e_bash event to the player and teleports them to the bash area (<morep> of the enter tile).
Step on i_bashleave (Exit Bash) Removes e_bash, resets the player's kills/deaths/karma to pre-event values, restores runebook use, and moves them back (moveback).
.bashres (FUNCTION bashres, [PLEVEL 1]) If the player is in e_bash and at 0 hits, resurrects them on the spot. Available to normal players (plevel 1).

Note: The destination of i_bashenter is whatever position is stored in that tile's morep, so the arena location is configured per-placement, not hardcoded in the script.

How it plays

  • Entering applies e_bash, which enforces the bash rules:
    • No PvP magic: harmful spells cast at other players are blocked (@spelleffect returns 1 when the target isn't the caster and the caster isn't an NPC).
    • No looting others: picking up items from another player's corpse/pack is blocked (@itempickup_pack); targeting corpses is blocked (@itemtargon_item).
    • A short list of spells is prohibited outright (@spellcast: fields, summons, gate, mark/recall, etc.).
    • Runebooks cannot be used inside (@itemdclick).
  • On death: the player is told to type .bashres to resurrect; there is no forced teleport out, so players can keep fighting monsters as long as they like.
  • Leaving via i_bashleave restores the player's kills/deaths/karma tags (so PvM kills there don't stick) and re-enables runebooks. A warning notes criminal status can still persist.

Key definitions

Type Name Purpose
EVENTS e_bash Core bash rules: no looting, no PvP magic, spell/runebook restrictions, death message.
FUNCTION bashres Self-serve resurrect for downed participants (registered under [PLEVEL 1]).
ITEMDEF i_bashenter (i_rune_alchem_6) Step tile that adds e_bash and teleports into the bash (dest = its morep).
ITEMDEF i_bashleave (i_rune_alchem_6) Step tile that removes e_bash, restores stats, and moves the player back.

Ambiguous: the script defines the mechanics but not the physical arena/region — placement (and the i_bashenter morep destination) is done in-world by a GM, not in this file.