qp_eople.c

skylib_fluffos_v3/mudlib/cmds/creator/qp_eople.c · 465 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

/* qpeople command, trial out by Turrican for a commands daemon. */
inherit COMMAND_BASE;

#include <peopler.h>
#include <creator.h>

mixed cmd(string str) {
   mixed *stuff;

   stuff = this_player()->query_property("qpeople list");
   if (!stuff) {
      stuff = D_DEFAULT;
   }
   return PEOPLER->do_command(stuff, str);
} /* cmd() */

mixed *query_patterns() {
   return ({ "", (: cmd(0) :),
             "<word>", (: cmd($4[0]) :) });
} /* query_patterns() */

Site Stats

Snippets: 1791
Codebases: 571