That wouldnt work. The code that checks for duplicate names just gets a list of files in the directory, it doesnt actually open each file.
----- Original Message ----- From: "Alexander Nicholas Thaler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[email protected]> Sent: Friday, August 16, 2002 12:40 AM Subject: Re: Phone numbrs in a Modern MUD > Store it in their playerfile, and you could modify the code that checks > for duplicate names at character creation time to check for duplicate > numbers. > > On Thu, 15 Aug 2002 [EMAIL PROTECTED] wrote: > > > Hey guys, I've made cell phones in my modern-day MUD, and they work great as > > it is...but I was thinking it'd be neat if each player was assigned a random > > 7 digit number, and you had to have the number to call them...I'm thinking > > that chars can be assigned this number at creation, and the chars that > > already exist can use a command like 'assignphone' or something like that. > > The only problem here is making sure no duplicate numbers are used. To do > > this I was thinking that the numbers could be saved into a separate file, > > matching numbers with names. This file could then be scanned for numbers > > that match the random # generated, to make sure that no duplicates were > > assigned. But I'm just a newbie that gets by with copy/modify other > > functions, so I have no idea what to do. Any help would be appreciated > > greatly. > > > > Thanks, > > Zack > > > > Drug Wars MUD, > > dwmud.ods.org 2528 > > http://fly.to/dwmud > > > > -- > > ROM mailing list > > [email protected] > > http://www.rom.org/cgi-bin/mailman/listinfo/rom > > > > ---------------------------------------------------------------------- > Alex Thaler > http://www.columbia.edu/~ant14 ICQ: 24629153 > > One thousand monkeys. One thousand MicroVAXes. One thousand years. > X windows. > > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom >

