mud/
mud/2.4.5/dgd/include/
mud/2.4.5/dgd/std/
mud/2.4.5/dgd/sys/
mud/2.4.5/doc/
mud/2.4.5/doc/examples/
mud/2.4.5/log/
mud/2.4.5/obj/Go/
mud/2.4.5/players/
mud/2.4.5/players/lars/
mud/2.4.5/room/death/
mud/2.4.5/room/maze1/
mud/2.4.5/room/post_dir/
mud/2.4.5/room/sub/
/*
 * This is a curse that the player can't get rid of.
 * It prevents you from shouting.
 */

int start_time;

query_auto_load() {
    return "obj/shout_curse:" + start_time;
}

start(ob) {
    move_object(this_object(), ob);
    start_time = time();
    tell_object(ob, "You get a sore throat suddenly, without any reason.\n");
}

id(str) {
    return str == "shout_curse";
}

long() {
    write("How can you look at a curse ?\n");
}

drop() { return 1; }

init() {
    add_action("do_shout", "shout");
}

do_shout() {
    if (time() < start_time + 3600) {
	write("You can't shout with a sore throat !\n");
	say(call_other(this_player(), "query_name") +
	    " makes croaking sounds.\n");
	return 1;
    } else {
	destruct(this_object());
	return 0;
    }
}

init_arg(str) {
    sscanf(str, "%d", start_time);
}

extra_look() {
    return "the throat seems to be sore";
}