Need assistance please.

Posted by AkiraMuyo on Thu 05 Sep 2002 05:07 AM — 6 posts, 21,378 views.

#0
Greetings everyone, long time no chat..
I've come across a small problem. If any of you could be so kind as to direct me to the file that contains the information for new characters (i.e, Start location, Equipment to be loaded at creation, etc.) that would be awesome.

Thanks in advance,
Akira
Australia Forum Administrator #1
That would be in comm.c, nanny function. Here is the relevant code:


if ( ch->level == 0 )
{

    ch->perm_stat[class_table[ch->class].attr_prime] += 3;

    ch->level   = 1;
    ch->exp = exp_per_level(ch,ch->pcdata->points);
    ch->hit = ch->max_hit;
    ch->mana    = ch->max_mana;
    ch->move    = ch->max_move;
    ch->train    = 3;
    ch->practice = 5;
    sprintf( buf, "the %s",
    title_table [ch->class] [ch->level]
    [ch->sex == SEX_FEMALE ? 1 : 0] );
    set_title( ch, buf );

    do_function (ch, &do_outfit,"");
    obj_to_char(create_object(get_obj_index(OBJ_VNUM_MAP),0),ch);

    char_to_room( ch, get_room_index( ROOM_VNUM_SCHOOL ) );
    send_to_char("\n\r",ch);
    do_function(ch, &do_help, "newbie info");
    send_to_char("\n\r",ch);
}


You can see you are given 3 trains, 5 practices, the map (OBJ_VNUM_MAP), and put into the school (ROOM_VNUM_SCHOOL).
Amended on Thu 05 Sep 2002 05:49 AM by Nick Gammon
#2
Wow, Thank you. I think I can find the newbie armor by myself with this new addition.

Gratzi,
Akira
Australia Forum Administrator #3
Yes, look in do_outfit function in act_wiz.c (referenced above). There you will see a reference to the newbie stuff (OBJ_VNUM_SCHOOL_BANNER, OBJ_VNUM_SCHOOL_VEST, OBJ_VNUM_SCHOOL_SWORD, OBJ_VNUM_SCHOOL_SHIELD).
#4
Darn... Sorry to ask so much. I tried commenting out both the comm.c equipment call function and the act_wiz.c do_equip function, but when I create a new character it gives me this error when entering the mud.

Wed Sep 04 11:46:14 2002 :: [*****] BUG: Create_object: NULL pObjIndex.


Then of course forcefully shuts the mud down. Basically, i've ripped all the rooms out so it cannot create those items it wants, so I'm trying to tell it to not create any items at all at the begining and to just put them in a blank room for the time being. If you can give any more advice i'd be very appreciative.

Thanks,
Akira
Australia Forum Administrator #5
Maybe change that BUG call to tell you the vnum? You might have missed one somewhere. If you know the vnum you can search for where it is equipped.