Customize Morgue Snippet

Posted by Yourdrunkendad on Mon 04 Aug 2003 07:51 AM — 1 posts, 10,057 views.

#0
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);