Probly be easyest to set up a table like the clan table or a linked list. With all the people and their phone numbers, and then when it generates one just have it loop through the list to see if it's already made that one. Pretty simple to set up.
----- Original Message ----- From: "Ben" <[EMAIL PROTECTED]> To: "Alexander Nicholas Thaler" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[email protected]> Sent: Thursday, August 15, 2002 4:48 PM Subject: Re: Phone numbrs in a Modern MUD > 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 > > > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom >

