[NEWBIE] autowiz + ascii pfiles

From: Jimmie Tryon (spark@FIRSTWORLD.NET)
Date: 04/27/01

I just recently installed ascii pfiles onto the mud, and used the
autowiz.ascii file to attempt to get autowiz working correctly.  However,
it is still not reading autowiz when I advance someone.  Below, is my
autowiz code:

void read_file(void)
  void add_name(byte level, char *name);
  FBFILE *plr_index;
  int rec_count = 0, i, last = 0, level = 0, autowiz = 0;
  char index_name[40], line[256], bits[64];
  char name[MAX_NAME_LENGTH];
  long id = 0;

  sprintf(index_name, "%s", PLR_INDEX_FILE);
  if(!(plr_index = fbopen(index_name, FB_READ))) {
    perror("What the hell?  No playerfile index!");

  /* count the number of players in the index */
  while (fbgetline(plr_index, line))
    if(*line != '~')

for(i = 0; i < rec_count; i++) {
    fbgetline(plr_index, line);
    sscanf(line, "%ld %s %d %s %d %d", &id, name, &level, bits, &last,


    if (level >= MIN_LEVEL && !autowiz)
      add_name(level, name);


In the syslog I get, initiating autowiz but it never completes the process.

Any help is greatly appreciated.

   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |

This archive was generated by hypermail 2b30 : 12/05/01 PST