|
Poof Saves (3.0bpl11, version 2) [by Rasdan] |
|
|
|
Posted Wednesday, August 12th @ 11:33:22 PM, by George Greer in the Wizard dept.
Added Mar 5, 1997. Click the link below to read it or download it.
From: Rasdan <thomajam@ucs.orst.edu>
Subject: poof saves
Here is how I got poofin/poofout to save:
STRUCTS.H
======================
Remove poofin/poofout from wherever they are defined now.
Right below
#define HOST_LENGTH add:
#define POOF_LENGTH
80
In char_player_data, right below char *title; add:
char *poofin;
char *poofout;
In char_file_u, below:
char title[MAX_TITLE_LENGTH+1];
add:
char poofin[POOF_LENGTH + 1];
char poofout[POOF_LENGTH + 1];
DB.C
========================
In store_to_char,
below: ch->player.title = str_dup(st->title);
add:
ch->player.poofin = str_dup(st->poofin);
ch->player.poofout = str_dup(st->poofout);
In char_to_store, below:
if (GET_TITLE(ch))
strcpy(st->title, GET_TITLE(ch));
else
*st->title = '\0';
add:
if (POOFIN(ch))
strcpy(st->poofin, POOFIN(ch));
else
*st->poofin = '\0';
if (POOFOUT(ch))
strcpy(st->poofout, POOFOUT(ch));
else
*st->poofin = '\0';
Well, that's the way it works for me. Hope this helps at all.
Rasdan
<< Player Log File Checking [by Thomas Katzlberger] | Reply | View as text | Flattened | Poof Saves (3.0bpl11, version 3) [by Gary Barnett] >> |
|
Related Links |
|
|
|
CircleMUD Snippets |
|
|
Note: Not all of these snippets will work perfectly with
your version of code, so be prepared to fix one
or two bugs that may arise, and please let me know
what you needed to do to fix it. Sending a corrected
version is always welcome.
|
Finally, if you wish to use any of the snippets from this
page, you are more than welcome, just mention the
authors in your credits. If you wish to release any
of these snippets to the public on another site,
contact me FIRST.
|
|
|
|
|
|
|