Re: Ascii player files

From: Christian Duvall (chris@DP.NET)
Date: 07/28/97


Demond De Inosantos wrote:
>
>         Ok I used the psds->olc_zone; but when my builders come back on
> they have lost the olc_zone it doesn't save or it does but when they
> getback on its set to 0 or -1??
>
> Thanx,
> Demond
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>      +------------------------------------------------------------+

Ok here is the play by play. You need to..
In load_char:
find= psds->spells_to_learn = 0;
add= psds->olc_zone = -1;  /* this is the initialization */
Find case 'O':
      break;

Change to:
     case 'O':
          if( !strcmp( tag, "Olc " ) )
          psds->olc_zone = num;
          break;

in save_char();
Find:
     fprintf(outfile, "Lern: %d\n", (int)psds->spells_to_learn);
    if(psds->olc_zone)
Add:
    if(psds->olc_zone)
      fprintf(outfile, "Olc : %d\n", (int)psds->olc_zone);
In init_char()
 find
  ch->real_abils.cha = 25;

Add:
  ch->player_specials->saved.olc_zone = -1;

THERE! Use similar format with everything new you add.
Christian Duvall
chris@dp.net


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