Re: [Circle] [CODE] asciimod

From: Johan Dustler (Johan.Dustler@epk.ericsson.se)
Date: 11/25/96


> From: Bob Dole <doogie@amnesiac.NMSU.Edu>
> 
> Hi,
>      I've recently placed asciimod into my mud and added the extra 
> pfile flags that i have in my pfiles beyond the origional pfile
> code such as race and olc_zone.  The problem I am encoutering is
> that skills and affects do not save.  They're fine for immortals
> since the game sets them all to 100 anyway.  But when a player
> is practiced in a skill or spell, or if anyone has a magic affect 
> such as sanctuary, then they quit completely, to remove them from 
> current game memory, then relog, the affects and skill proficiencies
> are gone.  Has anyone else had this problem?  As far as I can tell
> its the snippet I got since I put up the origional code and only added
> the asciimod snippet and it still doesn't save them.  Any insight
> would be greatly appreciated.
> 
>                                                Hydragon
>   						doogie@scf.nmsu.edu

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   |
+-----------------------------------------------------------+



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