do_area prob

Brinny <[email protected]>
Newsgroups gmane.games.devel.mud.rom
Message-ID <[email protected]>
Alright, I am having a weird problem with do_area...
it might not even be with do_area but another piece of
code I wrote for aedit. I'll try to explain...

I added this to do_areas in db.c:

        sprintf (buf, "%d %d %-39s%-39s\n\r",
                 pArea1->min_level,
pArea1->max_level,pArea1->credits, (pArea2 != NULL) ?
pArea2->credits : "");
        send_to_char (buf, ch);

This is my aedit_level code, which might look at lot
like aedit_vnum because I used aedit_vnum as a
reference while doing this:

AEDIT (aedit_level)
{
    AREA_DATA *pArea;
    char lower[MAX_STRING_LENGTH];
    char upper[MAX_STRING_LENGTH];
    int ilower;
    int iupper;

    EDIT_AREA (ch, pArea);

    argument = one_argument (argument, lower);
    one_argument (argument, upper);

    if (!is_number (lower) || lower[0] == '\0'
        || !is_number (upper) || upper[0] == '\0')
    {
        send_to_char ("Syntax:  level [#xlower]
[#xupper]\n\r", ch);
        return FALSE;
    }

    if ((ilower = atoi (lower)) > (iupper = atoi
(upper)))
    {
        send_to_char ("AEdit:  Upper must be larger
then lower.\n\r", ch);
        return FALSE;
    }


    pArea->min_level = ilower;
    send_to_char ("Lower level set.\n\r", ch);

    pArea->max_level = iupper;
    send_to_char ("Upper level set.\n\r", ch);

    return TRUE;
}


This is the problem.. I'm trying to make do_areas a
little prettier, so I added the levels of each area to
do_areas, then it showed up nicely when I type area on
the mud. I then edited the levels in aedit of
midgaard.are (I don't think it matters what area, but
migaard.are is area_first)... did a done, asave
changed, copyover, and boom crash. I went into the
area directory and changed the levels of midgaard.are
back to what they were but that didn't fix anything. I
hope this is clear :] Any help == great :)

Brittany.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.