Re: [Code help] - pfiles

From: Xual (xual@satanspawn.ml.org)
Date: 01/30/99


On Sat, 30 Jan 1999, Will Andrews wrote:

> At 02:22 PM 1/30/99 -0700, you wrote:
> >Might want to throw a load_char() and save_char() somewhere in that
> >loop...
>
> load_char() and save_char() are in db.c.. they're only called to load the
> characters and save them -- while the MUD is running, the player table is
> active -- no need to load characters again. Although you're right-- a
> save_char() may be appropriate in order to save the character's new AC
> level.. but not totally necessary.

Have a look at do_stat() and do_set(), any time you want to get at a
players variables, you have to load them if they're not already online.

"Misery is boundless"
        -Xual the Torturer, on the Eve of the Sundering.

Danathara Online RPG
telnet://danathara.ml.org:4000


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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