void raw_kill()

From: Jeepster11 (Jeepster11@EMAIL.MSN.COM)
Date: 11/02/98


From: Taliesin <jeepster11@msn.com>
Subject: void raw_kill()

Allright You guessed it this just a quick hack of void raw_kill.  I got
tired of
having people booted out to the menu screen if they died. This way they are
re-
turned to the mortal start room whence they began. Yes it is ugly, but it
works. If you have any suggestions, holler @ me.
>>------Bo----->Young

void raw_kill(struct char_data * ch)
{
    sh_int load_room; /* Which room to place char in Taliesin - The Mists of
Avalon */

 if (GET_LEVEL(ch) >= LVL_IMMORT)
   load_room = r_immort_start_room;
 else
   load_room = r_mortal_start_room;

 if (FIGHTING(ch))
    stop_fighting(ch);

  while (ch->affected)
    affect_remove(ch, ch->affected);

  death_cry(ch);

  if (!IS_NPC(ch)) {
   make_corpse(ch);
      char_from_room(ch);
      char_to_room(ch, load_room);
      GET_POS(ch) = POS_STANDING;
      look_at_room(ch, 0);
  } else {
   make_corpse(ch);
      extract_char(ch);
  }
 }


     +------------------------------------------------------------+
     | 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