Code question: real death

From: Mud Admin (
Date: 06/28/96

In an effort to make the possibility of death in my MUD more exciting, I 
came up with the follow idea:

When a player dies, it makes a system shock check to see if they survive.
If they make the check, the survive and just die.
If they fail, the have suffered permenent death and should get dumped 
from the game.

void perm_death(struct char_data *ch)
  int percent, prob = 0;
  prob = (con_app[GET_CON(ch)].shock);
  percent = number(1, 101);
  if (percent > prob) {
      save_char(ch, NOWHERE);
      send_to_char("You have suffered permenent death!\r\n", ch);
      send_to_char("The next time you enter the Empire, it will be with a 
new character.\r\n", ch);
      sprintf(buf, "%s (lev %d) has died for real.", GET_NAME(ch),
      mudlog(buf, NRM, LVL_GOD, TRUE);
      STATE(ch->desc) = CON_CLOSE;
  } else GET_CON(ch) = GET_CON(ch) -1;

I want them out of the game totally. no link, no nothing. It is not doing 
that however, it is sending me to the main menu.

Help/advice is welcome, please. Flames are not.

--Ziz, NetShamen

This archive was generated by hypermail 2b30 : 12/18/00 PST