Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ ROM
➜ Running the server
➜ Need assistance please.
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| AkiraMuyo
(41 posts) Bio
|
Date
| Thu 05 Sep 2002 05:07 AM (UTC) |
Message
| 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 | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Thu 05 Sep 2002 05:48 AM (UTC) Amended on Thu 05 Sep 2002 05:49 AM (UTC) by Nick Gammon
|
Message
| 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). |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| AkiraMuyo
(41 posts) Bio
|
Date
| Reply #2 on Thu 05 Sep 2002 05:55 AM (UTC) |
Message
| Wow, Thank you. I think I can find the newbie armor by myself with this new addition.
Gratzi,
Akira | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #3 on Thu 05 Sep 2002 06:01 AM (UTC) |
Message
| 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). |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| AkiraMuyo
(41 posts) Bio
|
Date
| Reply #4 on Thu 05 Sep 2002 06:48 AM (UTC) |
Message
| 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 | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #5 on Thu 05 Sep 2002 07:17 AM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
16,672 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top