level_list.c

ldmud-3.3.719/mud/lp-245/obj/level_list.c · 532 B

From the archive ldmud-3.3.719.tar.gz

Download the archive   « Back to the archive contents

string short() {
    return "A list of the top players" ;
}

void long() {
    cat("/SORT_LEVEL");
}

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

int id(string str) {
    return str == "list" || str == "top" || str == "top players" ||
	str == "list of top players" || str == "top list";
}

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

int query_weight() { return 1; }

int get() { return 1; }

int query_value() { return 5; }

Site Stats

Snippets: 1791
Codebases: 571