Re: [Newbie] Racial Death

From: George (greerga@CIRCLEMUD.ORG)
Date: 06/06/98


On Sat, 6 Jun 1998, Lord Kyu wrote:

>I don't want them to see the menu, I want it to give them a nice little
>message like "You have lost your soul to your god." delete their character,
>then close their connection. I also don't want them to ever have corpses.

make_corpse():

  int i;

+ if (GET_RACE(ch) == RACE_HATED) {
+   send_to_char("Your god hates you.\r\n", ch);
+   return;
+ }

  corpse = create_obj();

raw_kill():

  make_corpse(ch);

+ if (GET_RACE(ch) == RACE_HATED)
+   SET_BIT(PLR_FLAGS(ch), PLR_DELETED);

  extract_char(ch);

nanny():

  sh_int load_room;

+ if (d->character && PLR_FLAGGED(d->character, PLR_DELETED))
+   STATE(d) = CON_CLOSE;

  skip_spaces(&arg);

Untested, again.

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://patches.van.ml.org/          | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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