keep.c

skylib_fluffos_v3/mudlib/cmds/player/keep.c · 436 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

#define EFFECT "/std/effects/object/identity_hold"

inherit COMMAND_BASE;

int cmd( object *obs )  {
   object thing;

   foreach(thing in obs) {
      thing->add_effect( EFFECT, ([ "keep" : 1 ]) );
   }
   write( "You will now attempt to keep "+
         (string)query_multiple_short(obs)+".\n" );

   return 1;
} /* cmd() */

mixed *query_patterns() {
   return ({ "<indirect:object:me>", (: cmd( $1 ) :) });
} /* query_patterns() */

Site Stats

Snippets: 1791
Codebases: 571