Death message

Posted by Arsen on Sun 13 Oct 2002 02:53 AM — 3 posts, 15,790 views.

#0
Is there any way I can change the message that is sent when a player dies? I want to make it a picture of the Grim Reaper.
#1
Yes there is check. Hopefully your compiling your own source code to. Since doing so will be pretty the much the only way for you to do changes like this on your own. Anyway, search for the following code in fight.c. Replace the you have been killed! to what you want.


case POS_DEAD:
if ( dt >= 0 && dt < top_sn )
{
SKILLTYPE *skill = skill_table[dt];

if ( skill->die_char && skill->die_char[0] != '\0' )
act( AT_DEAD, skill->die_char, ch, NULL, victim, TO_CHAR );
if ( skill->die_vict && skill->die_vict[0] != '\0' )
act( AT_DEAD, skill->die_vict, ch, NULL, victim, TO_VICT );
if ( skill->die_room && skill->die_room[0] != '\0' )
act( AT_DEAD, skill->die_room, ch, NULL, victim, TO_NOTVICT );
}
act( AT_DEAD, "$n is DEAD!!", victim, 0, 0, TO_ROOM );
act( AT_DEAD, "You have been KILLED!!\n\r", victim, 0, 0, TO_CHAR );
break;

Hope this helps,
Akira
USA #2
actually theres a simpler way
while online hedit _diemsg_ i believe
its what pops up before your char is put into the room with the healer