locked.c

ds2.4.1/lib/domains/Praxis/locked.c · 719 B

From the archive ds2.4.1.zip

Download the archive   « Back to the archive contents

#include <config.h>

inherit "/lib/std/room";

void init() {
    ::init();
    add_action("any_hook", "", 1);
}

void create() {
    ::create();
    SetNoClean(1);
    SetShort("the locked room");
    SetProperties(([ "no scry" : 1, "light" : 1, "indoors" : 1 ]));
    SetLong(
      "You have been assimilated.\n"
      "From this time on, you will service the Borg.");
    SetExits( 
      (["square" : "/domains/Praxis/square"]) );
}

static int any_hook(string str) {
    message("prompt", sprintf("\n(%s) Password: ", mud_name()),
      this_player());
    return 1;
}
int CanReceive(object ob) {
    if(!ob) ob = previous_object();
    if(!((int)ob->query_locked())) return 0;
    else return ::CanReceive(ob);
}

Site Stats

Snippets: 1791
Codebases: 571