Newbie: Adding items to pfiles

From: Craig Wilson (cwilson2@bigpond.net.au)
Date: 12/09/02


Hi Guys,

I have been working on letting the PC change their stats on the fly. I
have used the statedit snippet off the ftp site. I have that full
working. I am using circlemud 3.o bpl22 with pfiles and olc.

My question is how do I save and reload each items to the pfiles? I have
tried to add an extra line for char point(CP), these would be used to
increase stats as the PC plays.

I have changed the save_data and load_data functions in the db.c, it
seems to work while the player keeps their first connection. I have
tried to use the mud log function to output the CP value before saving
and after reading. The problem seems the be somewhere around the
connection of an existing char.

Any ideas ?

Craig.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT