Why do you need a list of player names? The new argument would be exactly the new name they want, so you can copy the code from nanny() to try to load the file. If the file doesn't exist, then change the player's name, save them so the file is created and no one else can create with that name. Then you can copy the code from delete to clear file for that player's original name.
You'd also want to check the descriptor list to make sure there is nobody in the process of creating with the new name. Cheers On 6/27/05, Sandi Fallon <[EMAIL PROTECTED]> wrote: > Greetings, > > I had this idea to let players rename themselves after they had > chosen their race and class, etc, as the name you think up at the > login prompt isn't always appropriate for the choices you make later. > > Easy, I thought, as most of it's in the nanny. Oops. I'd forgotten > that the nanny takes the easy way out of preventing duplicate player > names by simply loading the file, if found, and asking for the pword. > > So, now I need to figure out how to get a list of player names that > I can compare to the new name argument. File handling from within > the MUD isn't exactly my strong point, so I thought I'd ask for > suggestions. > > > Thanks, > Sandi > > -- > ROM mailing list > [email protected] > Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom >

