Door Control

An object which locks or unlocks an exit with the 'dlock <name of exit>' and 'unlock <name of exit>' commands.

Author: Unknown
Category: Building
Functions: name().
Compatibility: CobraMUSH, PennMUSH, TinyBit, TinyMUSH, TinyMUX.

Instructions

Copy and paste the below code into a compatible MUSH or MUX.

MUSHCode for Door Control

@create Door Control
@link Door Control = #857
@lock/Basic Door Control=#857
@set Door Control = OPAQUE
@set Door Control = SAFE
@set Door Control = ROYALTY
@FAILURE Door Control=You can't pick something that's integrated into the wall!
&UNLOCK Door Control=$unlock *:@lock/enter %0=;@unlock %0;@emit name(%0) is now UNLOCKED.
&LOCK Door Control=$dlock *:@lock/enter %0=#949;@lock %0=#949;@emit name(%0) is now LOCKED.
@DESCRIBE Door Control=This is a door control.