scorepl_ayer.c

skylib_fluffos_v3/mudlib/cmds/creator/scorepl_ayer.c · 969 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

inherit COMMAND_BASE;

#define SCORE_CMD "/cmds/player/score"

int score_quests(object *obs) {
   object play;

   foreach(play in obs) {
      write("Quests score for " + play->the_short() + ":\n");
      SCORE_CMD->score_quests(play);
   }
   return 1;
} /* score_quests() */

int score_stats(object *obs) {
   object play;
 
   foreach(play in obs) {
      write("Stats score for " + play->the_short() + ":\n");
      SCORE_CMD->score_stats(play, "verbose");
   }
   return 1;
} /* score_stats() */

int score_normal(object *obs) {
   object play;
 
   foreach(play in obs) {
      write("Score for " + play->the_short() + ":\n");
      SCORE_CMD->score_normal(play, "verbose");
   }
   return 1;
} /* score_normal() */

mixed *query_patterns() {
   return ({ "quests <indirect:player>", (: score_quests($1) :), 
             "stats <indirect:player>", (: score_stats($1) :),
             "<indirect:any-living>", (: score_normal($1) :) });
} /* query_patterns() */

Site Stats

Snippets: 1791
Codebases: 571