Immort program

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 11/24/97


     look at how the world files are read in.
     in db.c check out parse_*()
     --Angus


______________________________ Forward Header __________________________________
Subject:  Immort program
Author:  INTERNET:CIRCLE@post.queensu.ca at CSERVE
Date:    11/23/97 7:13 PM

Ok, I have been doing a lot of Pwhipes, and I will be doing a lot more in
teh time to come, so I have decided to make a program for the immortals to
use that will automatically update them.

What I have been thinking of is a program called "Upme" which, when the
players use it, it asks for a password.  Next it will call a function
which opens an immort file which has in it the name, password, level, and
zone for the player in it.

There will be one line for each set of fields, and every immortal except
the IMPL will be in it.  The routine opens the file, takes the information
line by line, puts each field into the respective variable, and checks it.
If the name and password match, it will update the player, otherwise it
goes to te next line.

I havn't had any trouble with making the do_upme or the routine to search
in the variables, but I'm having trouble getting the program to take the
variables line by line.

What I have tried doing is a while statement like ((var =
getc(immort_file)) && var != " " && var != "\n")

I just not sure what way to go about this. If you people want, I can post
what I currently have, but it is really messed up and isn't anywhere near
working.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST