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
➜ SMAUG
➜ Running the server
➜ Starting / Dying and Initial Equiping
Starting / Dying and Initial Equiping
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Thu 24 May 2001 10:12 PM (UTC) |
Message
| The short answer is, you can't do most of that without coding. For instance, the initial equipment is hard-coded. You want something like "newbieset" which re-equips a newbie. The C code for that has lines like this in it:
obj = create_object( get_obj_index(OBJ_VNUM_SCHOOL_VEST), 1 );
obj_to_char(obj, victim);
obj = create_object( get_obj_index(OBJ_VNUM_SCHOOL_SHIELD), 1 );
obj_to_char(obj, victim);
obj = create_object( get_obj_index(OBJ_VNUM_SCHOOL_BANNER), 1 );
obj_to_char(obj, victim);
This is hard-coded into the server. You would do something similar on a new character.
To change the starting room, or what happens when they die is also hard-coded.
You are either going to have to work within the existing server framework (including hard-coded words like "Thoric gives you one gold coin for your sacrifice") or make some changes to the code.
|
- 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.
5,152 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top