|
Poofin/Poofout Saving [by ?] |
|
|
|
Posted Wednesday, August 12th @ 11:33:33 PM, by George Greer in the Wizard dept.
Circle 2.2. Click the link below to read it or download it.
From: ?
Subject: Saving Poofins And Poofouts
Basically in 'db.c' in char_to_store, I have:
POOFIN(ch) = st->player_special_data.poofin;
POOFOUT(ch) = st->player_special_data.poofout;
In store_to_char, I have:
if (POOFIN(ch))
st->player_special_data.poofin = POOFIN(ch);
else
st->player_special_data.poofin = '\0';
Finally, in 'structs.h' in the specials structure, add:
char *poofin;
char *poofout;
<< Poof Saves (3.0bpl11, version 3) [by Gary Barnett] | Reply | View as text | Threaded | Poofin/Poofout Saving [by John Dodds] >> |
|
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.
|
|
|
|
|
|
|