Question: ASCII

From: Crimson Wizard (cwizard@GIBLETS.COM)
Date: 08/09/97


When a player practices skills and spells, they go into the pfile under
"Skil" like normal
1 95
2 95
0 0
etc...

when a character quits the info stays
but when a character comes back INTO the game, the skills are basically
wiped out and set back to 0 0... I'm trying to figure out if there is
something wrong in db.c where it loads things back in, here is the code:

     case 'S':
        if(!strcmp(tag, "Sex "))
          player->sex = num;
        else if(!strcmp(tag, "Skil")) {
          i = 0;
          do {
            sscanf(line, "%d %d", &num, &num2);
              if(num != 0)
                psds->skills[i] = num2;
          } while (num != 0);
        } else if(!strcmp(tag, "Str ")) {
          sscanf(line, "%d/%d", &num, &num2);
          cad->str = num;
          cad->str_add = num2;
        }
        break;

this is pretty much right after Sam's ascii pfile patch... and it looks
right, but i can't figure out why the skills are getting zero'd out.

Help appreciated, i'm going to give myself an enema now.


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



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