100 Player Killing (PK) resources for MUD players
Developing a Player Killing (PK) system in a MUD requires a precise balance between competitive depth and player retention. This resource provides technical specifications for combat logic, anti-griefing protocols, and death-state management designed for administrators and developers of text-based environments.

PK System Architecture & Combat Logic
- 1
Level-Band PK Restrictions
beginnerhighImplement a 'range check' in the combat initiation function that prevents players from attacking targets outside a specific level delta (e.g., +/- 10 levels).
- 2
PK Toggle (Consent System)
beginnerstandardCreate a persistent player flag 'PK_ENABLED'. Use a 24-hour cooldown for disabling the flag to prevent players from toggling safety during active conflicts.
- 3
Arena Instance Logic
intermediatemediumScript isolated rooms with the 'ROOM_ARENA' flag where death carries no experience loss or equipment drop, using a separate coordinate plane to prevent outside interference.
- 4
Combat Timers (Anti-Quit)
beginnerhighApply a 'COMBAT_TIMER' buff to players that prevents the 'quit' command for 60 seconds after the last offensive action or damage received.
- 5
Global Combat Heartbeat
advancedmediumDecouple combat rounds from the standard 2-second MUD pulse to a faster 1-second 'combat heartbeat' for more responsive PK interactions.
- 6
Skill-Based Interrupts
intermediatehighImplement a casting-time variable for spells that is reset or delayed when the player takes physical damage, allowing melee classes to 'spell-lock' casters.
- 7
Bounty Board API
intermediatestandardDevelop a system where players deposit gold to place a 'WANTED' flag on others. The reward is automatically transferred to the killer's bank upon the target's death.
- 8
Stealth vs. Detection Ratios
intermediatemediumBalance 'Hide' and 'Sneak' skills against 'Perception' stats using a randomized roll plus level modifiers to prevent permanent invisibility in PK zones.
- 9
Room Flag: No-Recall
beginnerstandardApply a 'NO_RECALL' flag to specific PK-heavy zones to prevent players from using magic to escape combat instantly.
- 10
Aggressor Flagging
intermediatehighSet a temporary 'CRIMINAL' flag on the player who initiates an attack. This allows others to defend themselves without triggering guard NPCs or reputation loss.
- 11
Crowd Control Diminishing Returns
advancedhighCode a counter that reduces the duration of subsequent stuns or paralyze effects on the same target within a 30-second window.
- 12
PK Activity Logging
intermediatestandardDirect all PK kill data to a flat file or SQL table including attacker, victim, room ID, and final damage type for administrative auditing.
Anti-Griefing & Zone Design
- 1
Newbie Sanctuary Zones
beginnerhighHard-code a 'SAFE_ZONE' flag for all rooms within level 1-10 areas, disabling all offensive commands directed at players.
- 2
Guard NPC Intervention
intermediatestandardProgram city guards with high-level stats to automatically track and attack players carrying the 'CRIMINAL' or 'MURDERER' flag.
- 3
IP-Based PK Blocking
advancedhighImplement a check in the combat handler that prevents two characters logged in from the same IP address from attacking each other or assisting in PK.
- 4
Kill-Streak Visibility
beginnermediumAutomatically announce high-kill streaks to the 'GOSSIP' channel, effectively placing a soft-bounty on the player by alerting the server to their location.
- 5
Revenge Buff Mechanics
intermediatestandardGrant a temporary 5% stat boost to players who have been killed by the same aggressor more than three times in an hour.
- 6
Area-of-Effect Safety
intermediatehighModify AoE spells to exclude players from damage unless the caster is already in a PK-enabled state or the target is a flagged aggressor.
- 7
Corpse Camping Prevention
beginnerhighGrant a 30-second 'INVULNERABILITY' flag to players upon respawning to allow them to move away from their death location.
- 8
Alignment-Based Penalties
intermediatemediumReduce a player's 'Alignment' score for every non-aggressive player killed, eventually triggering 'Outlaw' status and vendor price hikes.
- 9
Multi-Play Restrictions
advancedmediumRestrict players from having more than one character in the same PK zone simultaneously to prevent 'scouting' with alts.
- 10
Dynamic PK Zones
intermediatestandardScript certain zones to only enable PK during specific in-game times (e.g., Nighttime) or during world events.
- 11
Fleeing Mechanics
beginnermediumImplement a 'flee' command that has a percentage chance to fail based on the player's remaining stamina and the opponent's dexterity.
- 12
Clan Territory Flags
advancedstandardCreate room-ownership flags that allow clan members to attack intruders without penalty while inside their designated base.
Death, Looting, & Corpse Management
- 1
Corpse Decay Timers
beginnerstandardSet corpses to vanish after 20 minutes, with a 'COOLDOWN' period where only the killer or the victim can access the inventory.
- 2
Full-Loot vs. Partial-Loot
intermediatehighConfigure the 'drop_inventory' function to either dump all items to the corpse or protect 'Legendary' flagged items.
- 3
Experience Debt System
intermediatemediumInstead of level loss, apply an 'XP_DEBT' flag where 50% of future experience gains go toward clearing the debt incurred from a PK death.
- 4
Ghost State Exploration
advancedmediumUpon death, move the player to a 'SPIRIT_WORLD' plane where they can see rooms but cannot interact with items or players until resurrected.
- 5
Corpse Recovery NPC
beginnerstandardProgram a 'Gravedigger' NPC that will summon a player's corpse to a safe city for a fee equal to 10% of the player's total gold.
- 6
Item Binding Logic
intermediatehighImplement 'Bind on Equip' flags for high-tier gear to ensure they cannot be looted by other players in PK combat.
- 7
Trophy Collection (Ears/Heads)
beginnerstandardAutomatically generate a unique item (e.g., 'The Ear of [Victim]') in the killer's inventory upon a successful PK.
- 8
Resurrection Sickness
beginnermediumApply a 'WEAKNESS' debuff that reduces all primary stats by 20% for 5 minutes after being resurrected by a player or NPC.
- 9
Soulstone Insurance
intermediatemediumCreate a consumable item that, when held, prevents equipment drop for a single death, consumed upon the player's defeat.
- 10
Death Message Customization
beginnerstandardAllow players to set a custom 'death cry' that is displayed to the room when they are killed in PK.
- 11
Graveyard Respawn Points
beginnerstandardMap specific rooms as 'RESPAWN_POINTS' based on the player's last visited city or alignment status.
- 12
Loot Log API
intermediatestandardCreate a log entries for every item taken from a player's corpse to assist admins in identifying 'ninja looting' or griefing patterns.