clean.c

gurba-0.40/lib/cmds/wiz/clean.c · 355 B

From the archive gurba.tgz

Download the archive   « Back to the archive contents

/* A small command to clear out all the objects in a room
 *
 * Fudge
 */

void main( string arg ) {
  object *objs;
  int i;

  objs = this_environment()->query_inventory();
  for( i = 0; i < sizeof( objs ); i++ ) {
    if( objs[i]->is_player() == 0 ) {
      objs[i]->destruct();
    }
  }
  this_player()->simple_action( "$N $vclean the room.", 0 );
}

Site Stats

Snippets: 1791
Codebases: 571