Re: ASCII pfiles

From: Johan Dustler (Johan.Dustler@epk.ericsson.se)
Date: 01/12/97


Here is the fix so skills and affections get read back correctly.

-Johan


----- Begin Included Message -----

In db.c load_char() search for 'Affs', and change the else so it looks
like this.

        else if(!strcmp(tag, "Affs")) {
          get_line(fl, line);
          i = 0;
          do {
            sscanf(line, "%d %d %d %d %d", &num, &num2, &num3, &num4, &num5);
            if (num != 0) {
              aff = &(player->affected[i]);
              aff->type = num;
              aff->duration = num2;
              aff->modifier = num3;
              aff->location = num4;
              aff->bitvector = num5;
              get_line(fl, line);
              i++;
            }
          } while (num != 0);

Then search for 'Skil' and change that else so it looks like this.

        else if(!strcmp(tag, "Skil")) {
          get_line(fl, line);
          do {
            sscanf(line, "%d %d", &num, &num2);
              if(num != 0) {
                psds->skills[num] = num2;
                get_line(fl, line);
              }
          } while (num != 0);

-Johan
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



----- End Included Message -----

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST