Poofin/Poofout Saving [by John Dodds]
Snippet Posted Wednesday, August 12th @ 11:33:37 PM, by George Greer in the Wizard dept.
Circle 3.x. Click the link below to read it or download it.

From: "John C. Dodds" <zzan@dbeach.com>
Subject: [Circle] saving poofin/poofout

I finally got poofs to save. here is what i did to do that:

structs.h:
add a define
#define POOF_LENGTH <whatever size you want poofs to be>

in the structure player_special_data_saved add this where the spares are
(**warning this will corrupt playerfile since none of the spares are
chars**):

char poofin[POOF_LENGTH + 1];
char poofout[POOF_LENGTH + 1];

and in db.c:
in store to char:
  POOFIN(ch) = st->player_specials_saved.poofin;
  POOFOUT(ch) = st->player_specials_saved.poofout;
and in char to store:
  if (POOFIN(ch))

  strcpy(st->player_specials_saved.poofin, POOFIN(ch));
  if (POOFOUT(ch))

  strcpy(st->player_specials_saved.poofout, POOFOUT(ch));


Thanks to Brian Gray.


<< Poofin/Poofout Saving [by ?] | Reply | View as text | Threaded | Poofset Command [by Rasdan] >>

 


Related Links
  download
Related Articles
More by greerga
 
 

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.