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
➜ SMAUG coding
➜ Customize Morgue Snippet
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Yourdrunkendad
(35 posts) Bio
|
Date
| Mon 04 Aug 2003 07:51 AM (UTC) |
Message
| I implemented this Morgue snippet, it's pretty basic, however I wanted to know how to change this (i'm assuming involving corpsetimer) so that the corpse stays where they died for 15 or 20 minutes, then goes to the morgue, so that players aren't completely indifferent to death.
1.- Add in MUD.H :
#define ROOM_VNUM_MORGUE XXXX /*Where XXXX is your chosen room */
2.- Add in MAKEOBJS.C :
Into the function make_corpse():
ROOM_INDEX_DATA *location;
location = get_room_index ( ROOM_VNUM_MORGUE );
Now look at the end of this function for:
obj_to_room( corpse, ch->in_room );
and change it to:
if (IS_NPC(ch))
obj_to_room( corpse, ch->in_room );
else
obj_to_room (corpse,location); |
Shampoo is for sissies real men use poo*
[werd]thewerd.com "Smacking Your Mom Then Running Away" | 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.
8,100 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top