----- Original Message ----- From: "Tristan M" <[EMAIL PROTECTED]>
Subject: Re: dirent.h in windows

i really wouldnt have the slightest clue on how to change from flat files to a database like you guys were talking about, and to avoid have to cycle thru each pfile i just made it change all the online players races, then if a player logs in and there race is deleted theyre given a warning telling them theyre now a human, and they become human. it seems to work fine. thanks for the help tho:) and if i did want to write a snippet on the implementation of such a database that would be fantastic lol


Using the versioning feature in the pfiles is smiple and easy to do this sort of change.

Search for vers in save.c to see how it's used.

You'd run a check (in bottom of load_char_obj) to see if the version is less the new version and the race is the one needs changing then make the change.

When the player comes into the game give the players who have ch->version less than current version a message about the change.

Update to the new version number near the top of fwrite_char where the version is written to the pfile.


 |\      _,,,---,,_
 /,`.-'`'    -.  ;-;;,_
|,4-  ) )-,_..;\ (  `'-'
'---''(_/--'  `-'\_)
BluSky is often lurking at Afterlife MUD:
[EMAIL PROTECTED] * http://www.afterlife.mudservices.com
------------------> telnet://afterlife.mudservices.com:5000
ROM FAQ ----------> http://www.hypercube.org/tess/rom/
ROMList Archive --> http://www.rom.org/pipermail/rom/

Reply via email to