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
➜ Death message
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Arsen
(44 posts) Bio
|
| Date
| Sun 13 Oct 2002 02:53 AM (UTC) |
| Message
| | 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. | | Top |
|
| Posted by
| AkiraMuyo
(41 posts) Bio
|
| Date
| Reply #1 on Sun 13 Oct 2002 03:42 AM (UTC) |
| Message
| 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 | | Top |
|
| Posted by
| Typhon
USA (112 posts) Bio
|
| Date
| Reply #2 on Sun 13 Oct 2002 10:05 PM (UTC) |
| Message
| 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 | | 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.
15,078 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top