I'd suggest putting the locker into the person's pfile.  This way you don't 
have the entire MUD's lockers in memory at all times.  Also, when a person 
deletes, their locker goes with them.
Doing this is easy, basically look at how fwrite_obj and fread_obj work now.  
It should be possible to reuse them with very little change to create a new 
section in the pfile where objects stored in the locker are saved.

If you really want to put all lockers in the same file, it's entirely possible 
with fwrite_obj and fread_obj (I use them to save the contents of the chests 
in all player homes to one file), but you'll need to do a little more hacking 
(it is possible to trick the mud to load objects into a container by putting 
it in the nested containers list).

> I am just asking for a nudge here, I guess I am gonna have to go find a
> C book now anywyas huh :)

That's a definitely.

--Palrich.


Reply via email to