lpmud/mudlib/
lpmud/mudlib/doc/
lpmud/mudlib/doc/LPC/
lpmud/mudlib/log/
lpmud/mudlib/players/
lpmud/mudlib/room/maze1/
lpmud/mudlib/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"); add_verb("shout");
}

do_shout() {
    if (time() < start_time + 1000) {
	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);
}

short() {
    return "A sore throat";
}