newspaper.c

ldmud-3.2.9/mud/lp-245/obj/newspaper.c · 413 B

From the archive ldmud-329.tar.gz

Download the archive   « Back to the archive contents

short() {
    return "A newspaper" ;
}

long() {
    cat("/NEWSPAPER");
}

init() {
    add_action("read", "read");
}

id(str) {
    return str == "newspaper" || str == "paper" || str == "news";
}

read(str) {
    if (!id(str))
	return 0;
    say(this_player()->query_name() + " reads the newspaper.\n");
    long();
    return 1;
}

query_weight() { return 1; }

get() { return 1; }

query_value() { return 5; }

Site Stats

Snippets: 1791
Codebases: 571