Hi Sandi, some things you might wanna consider, is not letting the player
save till character creation is done, or level 2 or whatever, just so you
don't have to do any cleanup.

I had to do something similar with one of my systems, so I figured I'd give
you this snippet
    if ( ( victim = get_char_world( ch, arg1 ) ) == NULL )
    {


        isChar = load_char_obj( &d, arg1);
        if (!isChar)
        {
            send_to_char("Usable Name\n\r", ch );
            return;
        }
        else
        {
                send_to_char("Name already in use\n\r", ch );
        }
    }

Word of warning tho, I load the player into the system, but not into a room,
so I can modify him as I please while they're offline with this code, you
may have to "unload" the &d, but by that time, he's already in the
char_list, so I simply save_char_obj him and extract him.

Hope this helps


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sandi Fallon
Sent: Monday, June 27, 2005 6:38 PM
To: rom@rom.org
Subject: Re: Making a list of filenames.

Sorry, Mike, I should have explained a bit more.

On my MUD, after choosing a name and password, you're in the game.
All the "creation" stuff is done in rooms, so you can ask questions
on channels, or even have someone there to help you. So, at the time
of renaming, the player is logged into the game.

I need to check that their new name doesn't match some other player's
name, even if the other player isn't logged in, and that's the reason
for the list. Unless opening and closing a file is more efficient...


Sandi


PS: Speaking of player names, Dom, have you been dropping by?

-- 
ROM mailing list
ROM@rom.org
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom


Reply via email to