compose.c

gurba-0.40/lib/cmds/wiz/compose.c · 510 B

From the archive gurba.tgz

Download the archive   « Back to the archive contents

void main( void ) {
   object ob;
   string str, tmp;
   object *inv;
   int i;
   
   str = "";
   inv = this_player()->query_inventory();
   if( sizeof( inv ) ) {
      for( i=0; i < sizeof( inv ); i++ ) {
         tmp = inv[i]->query_autoload_filename();
         if ( tmp && (tmp != "") ) {
            str = str + tmp + "^!";
         }
      }
   }
   /* terminate autoload string */
   str = str + "*^!";
   write("compose_autoload_string = "+str+"\n");
   this_player()->set_autoload_string(str);
}



Site Stats

Snippets: 1791
Codebases: 571