clan.c

demise/src/clan.c · 390.8 KB

From the archive dodbackup-final.tar.gz

Download the archive   « Back to the archive contents

/***************************************************************************
 *  Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer,        *
 *  Michael Seifert, Hans Henrik St{rfeldt, Tom Madsen, and Katja Nyboe.   *
 *                                                                         *
 *  Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael          *
 *  Chastain, Michael Quan, and Mitchell Tse.                              *
 *                                                                         *
 *  In order to use any part of this Merc Diku Mud, you must comply with   *
 *  both the original Diku license in 'license.doc' as well the Merc       *
 *  license in 'license.txt'.  In particular, you may not remove either of *
 *  these copyright notices.                                               *
 *                                                                         *
 *  Much time and thought has gone into this software and you are          *
 *  benefitting.  We hope that you share your changes too.  What goes      *
 *  around, comes around.                                                  *
 ***************************************************************************/

/***************************************************************************
 *  God Wars Mud improvements copyright (C) 1994, 1995, 1996 by Richard    *
 *  Woolcock.  This mud is NOT to be copied in whole or in part, or to be  *
 *  run without the permission of Richard Woolcock.  Nobody else has       *
 *  permission to authorise the use of this code.                          *
 ***************************************************************************/

#if defined(macintosh)
#include <types.h>
#else
#include <sys/types.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "merc.h"

/*
 * Local functions.
 */

void adv_spell_damage args ((CHAR_DATA * ch, OBJ_DATA * book,
			     OBJ_DATA * page, char *argument));
void adv_spell_affect args ((CHAR_DATA * ch, OBJ_DATA * book,
			     OBJ_DATA * page, char *argument));
void adv_spell_action args ((CHAR_DATA * ch, OBJ_DATA * book,
			     OBJ_DATA * page, char *argument));
void birth_write args ((CHAR_DATA * ch, char *argument));
bool birth_ok args ((CHAR_DATA * ch, char *argument));


#define MAX_CHAIN(ch) ((ch)->class == CLASS_MAGE ? 5 : \
                       (ch)->class == CLASS_SKINDANCER ? 4 : 3)

int
max_chain (CHAR_DATA * ch, OBJ_DATA * book)
{
  int page = 5;

  if (!IS_PUREMAGE (ch))
    page--;

  if (!IS_PUREMAGE (ch) && !IS_SKINDANCER (ch))
    page--;

  if (IS_PUREMAGE (ch) && get_trust (ch) > LEVEL_MAGE)
    page++;

  if (!IS_MAGE (ch) && IS_XX (ch, XX_RAKMAGE))
    page = 1;

  if (IS_ITEMAFF (ch, ITEMA_MASTERMAGE) && IS_WEAP (book, WEAPON_MASTERMAGE))
    page += 2;

  if (IS_CREATOR (ch) && page < 6)
    page = 6;

  return page;
}

/* Need to get rid of those flames somehow - KaVir */
void
do_smother (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  int fail = 0;
  int light = 0;
  bool demon = FALSE;

  one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (arg[0] == '\0')
    {
      send_to_char ("Smother whom?\n\r", ch);
      return;
    }

  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      send_to_char ("They aren't here.\n\r", ch);
      return;
    }

  if (!IS_AFFECTED (victim, AFF_FLAMING))
    {
      send_to_char ("But they are not on fire!\n\r", ch);
      return;
    }

  if (IS_NYM (victim, NYM_NEPHFURY))
    {
      fail = 5;
      light = 40;
      demon = TRUE;
    }
  else if (IS_MORE (victim, MORE_FLAMES))
    {
      fail = 10;
      light = 70;
      demon = TRUE;
    }
  else
    {
      fail = 10;
      light = 98;
    }

  if (number_percent () > fail)
    {
      act ("You try to smother the flames around $N but fail!", ch, NULL,
	   victim, TO_CHAR);
      act ("$n tries to smother the flames around you but fails!", ch, NULL,
	   victim, TO_VICT);
      act ("$n tries to smother the flames around $N but fails!", ch, NULL,
	   victim, TO_NOTVICT);
      if (number_percent () > light && !IS_AFFECTED (ch, AFF_FLAMING)
	  && ch != victim)
	{
	  act ("A spark of flame from $N's body sets you on fire!", ch, NULL,
	       victim, TO_CHAR);
	  act ("A spark of flame from your body sets $n on fire!", ch, NULL,
	       victim, TO_VICT);
	  act ("A spark of flame from $N's body sets $n on fire!", ch, NULL,
	       victim, TO_NOTVICT);
	  SET_BIT (ch->affected_by, AFF_FLAMING);
	  if (demon)
	    SET_BIT (ch->more, MORE_FLAMES);
	}
      return;
    }

  act ("You manage to smother the flames around $M!", ch, NULL, victim,
       TO_CHAR);
  act ("$n manages to smother the flames around you!", ch, NULL, victim,
       TO_VICT);
  act ("$n manages to smother the flames around $N!", ch, NULL, victim,
       TO_NOTVICT);
  REMOVE_BIT (victim->nymbits, NYM_NEPHFURY);
  REMOVE_BIT (victim->affected_by, AFF_FLAMING);
  REMOVE_BIT (victim->more, MORE_FLAMES);
  return;
}

/* Loads of Vampire powers follow.  KaVir */

void
do_fangs (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (IS_DEMON (ch) && !IS_VAMPIRE (ch) && !IS_WEREWOLF (ch) && !IS_KAHN (ch))
    {
      if (!IS_SET (ch->pcdata->disc[C_POWERS], DEM_FANGS))
	{
	  send_to_char ("You haven't been granted the gift of fangs.\n\r",
			ch);
	  return;
	}
    }
  else if (!IS_VAMPIRE (ch) && !IS_WEREWOLF (ch) && !IS_KAHN (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (IS_KAHN (ch))
    {
      if (ch->pcdata->powers[KAHN_FORMS] < 2)
	{
	  send_to_char
	    ("You require level 2 Forms mastery to use your fangs.\n\r", ch);
	  return;
	}
    }

  if (IS_VAMPIRE (ch) && ch->pcdata->vamprage > 0)
    {
      send_to_char ("Your beast won't let you retract your fangs.\n\r", ch);
      return;
    }

  if (IS_VAMPAFF (ch, VAM_FANGS))
    {
      send_to_char ("Your fangs slide back into your gums.\n\r", ch);
      act ("$n's fangs slide back into $s gums.", ch, NULL, NULL, TO_ROOM);
      REMOVE_BIT (ch->vampaff, VAM_FANGS);
      return;
    }
  send_to_char ("Your fangs extend out of your gums.\n\r", ch);
  act ("A pair of razor sharp fangs extend from $n's mouth.", ch, NULL, NULL,
       TO_ROOM);
  SET_BIT (ch->vampaff, VAM_FANGS);
  return;
}

void
do_shift (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];
  char buf[MIL];
/*
    int toform = 0;
*/
  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_WEREWOLF (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
/*
    if ( arg[0] == '\0' )
    {
	send_to_char( "You can shift between the following forms: Homid, Glabro, Crinos, Hispo, Lupus.\n\r", ch );
	return;
    }
    if      ( !str_cmp(arg,"homid" ) ) toform = 1;
    else if ( !str_cmp(arg,"glabro") ) toform = 2;
    else if ( !str_cmp(arg,"crinos") ) toform = 3;
    else if ( !str_cmp(arg,"hispo" ) ) toform = 4;
    else if ( !str_cmp(arg,"lupus" ) ) toform = 5;
    else
    {
	send_to_char( "You can shift between the following forms: Homid, Glabro, Crinos, Hispo, Lupus.\n\r", ch );
	return;
    }
    if ( ch->pcdata->wolfform[1] < 1 || ch->pcdata->wolfform[1] > 5) 
	ch->pcdata->wolfform[1] = 1;
    if ( ch->pcdata->wolfform[1] == toform )
    {
	send_to_char( "You are already in that form.\n\r", ch );
	return;
    }
    ch->pcdata->wolfform[1] = toform;
*/
  if (ch->pcdata->wolfform[1] <= FORM_HOMID
      && !IS_AFFECTED (ch, AFF_POLYMORPH))
    {
      if (IS_AFFECTED (ch, AFF_POLYMORPH))
	{
	  send_to_char ("You can only change from homid form.\n\r", ch);
	  return;
	}
      if (ch->stance[0] != -1)
	do_stance (ch, "");
      if (ch->mounted == IS_RIDING)
	do_dismount (ch, "");
      if (!IS_VAMPAFF (ch, VAM_NIGHTSIGHT))
	SET_BIT (ch->vampaff, VAM_NIGHTSIGHT);
      if (!IS_VAMPAFF (ch, VAM_FANGS))
	SET_BIT (ch->vampaff, VAM_FANGS);
      if (!IS_VAMPAFF (ch, VAM_CLAWS))
	SET_BIT (ch->vampaff, VAM_CLAWS);
      send_to_char ("You transform into lupus form.\n\r", ch);
      act ("$n transforms into a wolf.", ch, NULL, NULL, TO_ROOM);
      SET_BIT (ch->polyaff, POLY_WOLF);
      SET_BIT (ch->affected_by, AFF_POLYMORPH);
      sprintf (buf, "%s the wolf", ch->name);
      free_string (ch->morph);
      ch->morph = str_dup (buf);
      ch->pcdata->wolfform[1] = FORM_LUPUS;
      return;
    }
  else
    {
      if (ch->pcdata->wolfform[1] != FORM_LUPUS)
	{
	  send_to_char ("You can only change from lupus form.\n\r", ch);
	  return;
	}
      if (IS_VAMPAFF (ch, VAM_CLAWS))
	REMOVE_BIT (ch->vampaff, VAM_CLAWS);
      if (IS_VAMPAFF (ch, VAM_FANGS))
	REMOVE_BIT (ch->vampaff, VAM_FANGS);
      if (IS_VAMPAFF (ch, VAM_NIGHTSIGHT))
	REMOVE_BIT (ch->vampaff, VAM_NIGHTSIGHT);
      send_to_char ("You transform into homid form.\n\r", ch);
      act ("$n transforms into human form.", ch, NULL, NULL, TO_ROOM);
      REMOVE_BIT (ch->polyaff, POLY_WOLF);
      REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
      free_string (ch->morph);
      ch->morph = str_dup ("");
      ch->pcdata->wolfform[1] = FORM_HOMID;
      if (ch->pcdata->wolf >= 100)
	ch->pcdata->wolf = 99;
      return;
    }
  return;
}

void
do_claws (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (IS_DEMON (ch))
    {
      if (!IS_SET (ch->pcdata->disc[C_POWERS], DEM_CLAWS))
	{
	  send_to_char ("You haven't been granted the gift of claws.\n\r",
			ch);
	  return;
	}
    }
  else if (IS_KAHN (ch))
    {
      if (ch->pcdata->powers[KAHN_TIGER] < 3)
	{
	  send_to_char
	    ("You require level 3 Tiger mastery to use your claws.\n\r", ch);
	  return;
	}
    }
  else if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch) && !IS_WEREWOLF (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if ((IS_VAMPIRE (ch) || IS_GHOUL (ch)) && get_disc (ch, DISC_PROTEAN) < 2)
    {
      send_to_char ("You require level 2 Protean to use Claws.\n\r", ch);
      return;
    }

  if ((IS_VAMPIRE (ch) || IS_GHOUL (ch)) && !IS_ABOMINATION (ch)
      && ch->pcdata->vamprage > 0)
    {
      send_to_char ("Your beast won't let you retract your claws.\n\r", ch);
      return;
    }

  if (IS_VAMPAFF (ch, VAM_CLAWS))
    {
      if (IS_VAMPIRE (ch) || IS_GHOUL (ch))
	{
	  send_to_char ("Your claws slide back under your nails.\n\r", ch);
	  act ("$n's claws slide back under $s nails.", ch, NULL, NULL,
	       TO_ROOM);
	}
      else if (IS_WEREWOLF (ch) && get_auspice (ch, AUSPICE_AHROUN) > 3)
	{
	  send_to_char
	    ("Your gleaming silver talons slide back into your fingers.\n\r",
	     ch);
	  act ("$n's gleaming silver talons slide back into $s fingers.", ch,
	       NULL, NULL, TO_ROOM);
	}
      else
	{
	  send_to_char ("Your talons slide back into your fingers.\n\r", ch);
	  act ("$n's talons slide back into $s fingers.", ch, NULL, NULL,
	       TO_ROOM);
	}
      REMOVE_BIT (ch->vampaff, VAM_CLAWS);
      return;
    }

  if (IS_VAMPIRE (ch) || IS_GHOUL (ch))
    {
      send_to_char ("Sharp claws extend from under your finger nails.\n\r",
		    ch);
      act ("Sharp claws extend from under $n's finger nails.", ch, NULL, NULL,
	   TO_ROOM);
    }
  else if (IS_WEREWOLF (ch) && get_auspice (ch, AUSPICE_AHROUN) > 3)
    {
      send_to_char ("Gleaming silver talons extend from your fingers.\n\r",
		    ch);
      act ("Gleaming silver talons extend from $n's fingers.", ch, NULL, NULL,
	   TO_ROOM);
    }
  else
    {
      send_to_char ("Razor sharp talons extend from your fingers.\n\r", ch);
      act ("Razor sharp talons extend from $n's fingers.", ch, NULL, NULL,
	   TO_ROOM);
    }
  SET_BIT (ch->vampaff, VAM_CLAWS);
  return;
}

void
do_nightsight (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (IS_DEMON (ch))
    {
      if (!IS_SET (ch->pcdata->disc[C_POWERS], DEM_EYES))
	{
	  send_to_char
	    ("You haven't been granted the gift of nightsight.\n\r", ch);
	  return;
	}
    }
  else if (IS_WEREWOLF (ch))
    {
      if (get_breed (ch, BREED_METIS) < 1 && get_disc (ch, DISC_PROTEAN) < 1
	  && !IS_POLYAFF (ch, POLY_ZULO))
	{
	  send_to_char
	    ("You require the level 1 Metis power to use Eyes of the Cat.\n\r",
	     ch);
	  return;
	}
    }
  else if (IS_MONK (ch))
    {
      if (ch->monkab[AWARE] < 1)
	{
	  stc
	    ("You must obtain a level one knowledge of Awareness first.\n\r",
	     ch);
	  return;
	}
    }
  else if (ch->class == CLASS_KAHN)
    {
      if (ch->pcdata->powers[KAHN_TIGER] < 4)
	{
	  send_to_char
	    ("You require 4 level Tiger mastery to use Nightsight.\n\r", ch);
	  return;
	}
    }
  else if (IS_DJINN (ch))
    {
      if (!IS_SET (ch->pcdata->powers[DJINNPOWERS], DJINN_SIGHT))
	{
	  send_to_char ("You havent been granted sight yet.\n\r", ch);
	  return;
	}
    }
  else if (IS_ANGELW (ch))
    {
      if (!IS_SET (ch->apowers, APOWER_VISION))
	{
	  stc ("You haven't enwarped that gift yet.\n\r", ch);
	  return;
	}
    }
  else if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (((!IS_WEREWOLF (ch) || IS_ABOMINATION (ch)) && !IS_DEMON (ch))
      && !IS_KAHN (ch) && !IS_DJINN (ch) && !IS_MONK (ch) && !IS_ANGELW (ch)
      && get_disc (ch, DISC_PROTEAN) < 1)
    {
      send_to_char
	("You require level 1 Protean to use Gleam of Red Eyes.\n\r", ch);
      return;
    }
  else if ((IS_VAMPIRE (ch) || IS_GHOUL (ch)) && ch->pcdata->vamprage > 0)
    {
      send_to_char ("Not while your beast is in control.\n\r", ch);
      return;
    }

  if (IS_VAMPAFF (ch, VAM_NIGHTSIGHT))
    {
      if (IS_WEREWOLF (ch) && get_disc (ch, DISC_PROTEAN) < 1)
	{
	  send_to_char ("The green glow in your eyes fades.\n\r", ch);
	  act ("The green glow in $n's eyes fades.", ch, NULL, NULL, TO_ROOM);
	}
      else if (IS_ANGELW (ch))
	{
	  send_to_char ("The blue glow in your eyes fades.\n\r", ch);
	  act ("The blue glow in $n's eyes fades.", ch, NULL, NULL, TO_ROOM);
	}
      else if (ch->class == CLASS_KAHN)
	{
	  send_to_char ("The yellow glow in your eyes fades.\n\r", ch);
	  act ("The yellow glow in $n's eyes fades.", ch, NULL, NULL,
	       TO_ROOM);
	}
      else
	{
	  send_to_char ("The red glow in your eyes fades.\n\r", ch);
	  act ("The red glow in $n's eyes fades.", ch, NULL, NULL, TO_ROOM);
	}
      REMOVE_BIT (ch->vampaff, VAM_NIGHTSIGHT);
      return;
    }
  if (IS_WEREWOLF (ch) && get_disc (ch, DISC_PROTEAN) < 1)
    {
      send_to_char ("Your eyes start glowing emerald green.\n\r", ch);
      act ("$n's eyes start glowing emerald green.", ch, NULL, NULL, TO_ROOM);
    }
  else if (IS_ANGELW (ch))
    {
      send_to_char ("Your eyes start glowing brilliantly blue.\n\r", ch);
      act ("$n's eyes start glowing brilliantly blue.", ch, NULL, NULL,
	   TO_ROOM);
    }
  else if (ch->class == CLASS_KAHN)
    {
      send_to_char ("Your eyes start glowing sparkling yellow.\n\r", ch);
      act ("$n's eyes start glowing sparkling yellow.", ch, NULL, NULL,
	   TO_ROOM);
    }
  else
    {
      send_to_char ("Your eyes start glowing fiery red.\n\r", ch);
      act ("$n's eyes start glowing fiery red.", ch, NULL, NULL, TO_ROOM);
    }
  SET_BIT (ch->vampaff, VAM_NIGHTSIGHT);
  return;
}

void
do_majesty (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];
  char buf[MIL];

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (IS_WEREWOLF (ch) && get_tribe (ch, TRIBE_SHADOW_LORDS) > 2)
    {
      do_icy (ch, "");
      return;
    }

  if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (get_disc (ch, DISC_PRESENCE) < 5)
    {
      send_to_char ("You require level 5 Presence to use Majesty.\n\r", ch);
      return;
    }

  if (has_fighttimer (ch))
    return;

  if (IS_ITEMAFF (ch, ITEMA_PEACE))
    {
      send_to_char ("You lower your Majesty.\n\r", ch);
      act ("$n no longer seems so imposing.", ch, NULL, NULL, TO_ROOM);
      REMOVE_BIT (ch->itemaffect, ITEMA_PEACE);
      ch->pcdata->majesty = 60;
      return;
    }
  if (ch->pcdata->majesty > 0)
    {
      if (ch->pcdata->majesty > 1)
	sprintf (buf, "You cannot raise your Majesty for another %s.\n\r",
		 get_time (ch->pcdata->majesty, ""));
      else
	sprintf (buf,
		 "You cannot raise your Majesty for another 1 second.\n\r");
      send_to_char (buf, ch);
      return;
    }
  send_to_char ("Your raise your Majesty.\n\r", ch);
  act ("$n suddenly appears very imposing.", ch, NULL, NULL, TO_ROOM);
  SET_BIT (ch->itemaffect, ITEMA_PEACE);
  return;
}

void
do_awe (CHAR_DATA * ch, char *argument)
{
  if (IS_NPC (ch))
    return;

  if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (get_disc (ch, DISC_PRESENCE) < 1)
    {
      send_to_char ("You require level 1 Presence to use Awe.\n\r", ch);
      return;
    }

  if (IS_EXTRA (ch, EXTRA_AWE))
    {
      send_to_char ("You are no longer awe-inspiring.\n\r", ch);
      act ("$n no longer appears so awe-inspiring.", ch, NULL, NULL, TO_ROOM);
      REMOVE_BIT (ch->extra, EXTRA_AWE);
      return;
    }
  send_to_char ("Your are now awe-inspiring.\n\r", ch);
  act ("$n suddenly appears very awe-inspiring.", ch, NULL, NULL, TO_ROOM);
  SET_BIT (ch->extra, EXTRA_AWE);
  return;
}

void
do_shadowsight (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (IS_DEMON (ch))
    {
      if (!IS_SET (ch->pcdata->disc[C_POWERS], DEM_SHADOWSIGHT))
	{
	  send_to_char
	    ("You haven't been granted the gift of shadowsight.\n\r", ch);
	  return;
	}
    } 
  else if (ch->class == CLASS_KAHN)
    {
      if (ch->pcdata->powers[KAHN_TIGER] < 2)
	{
	  send_to_char
	    ("You require level 2 Tiger mastery to use shadowsight.\n\r", ch);
	  return;
	}
    }
  else if (IS_CLASS (ch, CLASS_MONK) && ch->monkab[AWARE] < 2)
    {
      stc ("You must obtain a level two knowledge of Awareness first.\n\r",
	   ch);
      return;
    }
  else if (!IS_WEREWOLF (ch) && !IS_KAHN (ch) && !IS_MONK (ch)
	   && !IS_DEMON (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (IS_AFFECTED (ch, AFF_SHADOWSIGHT))
    {
      send_to_char ("You can no longer see between planes.\n\r", ch);
      REMOVE_BIT (ch->affected_by, AFF_SHADOWSIGHT);
      return;
    }
  send_to_char ("You can now see between planes.\n\r", ch);
  SET_BIT (ch->affected_by, AFF_SHADOWSIGHT);
  return;
}

void
do_bite (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  char buf[MIL];
  bool can_sire = FALSE;
  int blood, sn, improve;
  int ch_gen = ch->vampgen;

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_VAMPIRE (ch) || (ch->vampgen < 1))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (is_affected (ch, gsn_potency))
    ch_gen++;

  if (ch->vampgen == 2 && strlen (ch->clan) < 2)
    {
      send_to_char ("First you need to get a clan name.\n\r", ch);
      return;
    }


  if (ch->pcdata->cland[0] == -1 ||
      ch->pcdata->cland[1] == -1 || ch->pcdata->cland[2] == -1)
    {
      send_to_char ("First you need to buy your disciplines.\n\r", ch);
      return;
    }

  if (ch_gen > 6 || true_generation (ch, ch->lord) > 6)
    can_sire = FALSE;
  else
    can_sire = TRUE;

  if (!can_sire)
    {
      send_to_char ("You are not able to create any childer.\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    return;

  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      send_to_char ("They aren't here.\n\r", ch);
      return;
    }

  if (IS_NPC (victim))
    {
      send_to_char ("Not on NPC's.\n\r", ch);
      return;
    }

  if (!IS_IMMUNE (victim, IMM_VAMPIRE))
    {
      send_to_char ("They refuse to drink your blood.\n\r", ch);
      return;
    }

  if (ch == victim)
    {
      send_to_char ("You are already a vampire!\n\r", ch);
      return;
    }

  if (IS_MAGE (victim))
    {
      send_to_char ("They refuse to drink your blood.\n\r", ch);
      return;
    }

  if (victim->level != LEVEL_AVATAR && !IS_IMMORTAL (victim))
    {
      send_to_char ("You can only make avatars into vampires.\n\r", ch);
      return;
    }

  if (IS_WEREWOLF (victim))
    {
      send_to_char ("You are unable to create werevamps!\n\r", ch);
      return;
    }

  if (IS_VAMPIRE (victim))
    {
      send_to_char ("But they are already a vampire!\n\r", ch);
      return;
    }

  if (IS_DEMON (victim))
    {
      send_to_char ("Nothing happens.\n\r", ch);
      return;
    }

  if (IS_HIGHLANDER (victim))
    {
      send_to_char ("You cannot turn highlanders into vampires.\n\r", ch);
      return;
    }

  if (ch->blood[BLOOD_CURRENT] < 10)
    {
      send_to_char ("You don't have enough blood.\n\r", ch);
      return;
    }

  blood = number_range (5, 10) * ch->blood[BLOOD_POTENCY];
  ch->blood[BLOOD_CURRENT] -= blood;
  victim->blood[BLOOD_CURRENT] += blood;

  if (ch->beast > 0 && ch->beast < 100)
    ch->beast += 1;
  act ("You feed $N some blood from your open wrist.", ch, NULL, victim,
       TO_CHAR);
  act ("$n feeds $N some blood from $s open wrist.", ch, NULL, victim,
       TO_NOTVICT);
  act ("$n feeds you some blood from $s open wrist.", ch, NULL, victim,
       TO_VICT);

  /* For Abominations */
  if (IS_WEREWOLF (ch) && get_tribe (ch, TRIBE_GET_OF_FENRIS) > 0)
    {
      act ("You scream in agony as the blood burns through your body!",
	   victim, NULL, NULL, TO_CHAR);
      act ("$n screams in agony and falls to the ground...DEAD!", victim,
	   NULL, NULL, TO_ROOM);
      if (IS_NPC (victim))
	{
	  demon_gain (ch, victim);
	  group_gain (ch, victim);
	}
      victim->form = 1;
      killperson (ch, victim);
      return;
    }

  if (!IS_GHOUL (victim) && ch->class == CLASS_VAMPIRE)
    {
      if (victim->class != 0)
	{
	  sprintf (buf, "But $E is already a %s\n\r", get_class (ch));
	  act (buf, ch, NULL, victim, TO_CHAR);
	  return;
	}
    }

  victim->class = CLASS_VAMPIRE;
  if (victim->vampgen != 0)
    {
      do_autosave (ch, "");
      do_autosave (victim, "");
      send_to_char ("Your vampiric status has been restored.\n\r", victim);
      return;
    }

  send_to_char ("You are now a vampire.\n\r", victim);
  act ("You just made $N a Vampire.\n\r", ch, NULL, victim, TO_CHAR);
  REMOVE_BIT (victim->extra, EXTRA_PREGNANT);
  REMOVE_BIT (victim->extra, EXTRA_LABOUR);
  victim->vampgen = ch_gen + 1;
  update_gen (victim);
  free_string (victim->lord);
  if (ch->vampgen == 1)
    victim->lord = str_dup (ch->name);
  else
    {
      sprintf (buf, "%s %s", ch->lord, ch->name);
      victim->lord = str_dup (buf);
    }

  if (IS_MORE (ch, MORE_ANTITRIBU))
    SET_BIT (victim->more, MORE_ANTITRIBU);

  if (ch->vampgen == 1)
    {
      /* Second generation vampires chose all their disciplines */
      victim->pcdata->cland[0] = -1;
      victim->pcdata->cland[1] = -1;
      victim->pcdata->cland[2] = -1;
    }
  else
    {
      /* They get the clan discipline */
      improve = victim->pcdata->cland[0] = ch->pcdata->cland[0];
      if (improve >= 0)
	victim->pcdata->powers[improve] = -1;

      /* They get their sires personal discipline */
      improve = victim->pcdata->cland[1] = ch->pcdata->cland[2];
      if (improve >= 0)
	victim->pcdata->powers[improve] = -1;

      /* They get to chose a discipline of their own */
      victim->pcdata->cland[2] = -1;
    }

  for (sn = 0; sn <= DISC_MAX; sn++)
    {
      victim->pcdata->powers[sn] = 0;
    }

  do_autosave (victim, "");
  return;
}

void
do_claw (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  char buf[MIL];
  bool can_sire = FALSE;
  int gifts;

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_WEREWOLF (ch) || (ch->vampgen < 1))
    {
      do_claws (ch, "");
      return;
    }

  if (ch->vampgen == 1 || ch->vampgen == 2)
    can_sire = TRUE;

  if (ch->vampgen > 3)
    can_sire = FALSE;
  else
    can_sire = TRUE;

  if (!can_sire)
    {
      send_to_char ("You are unable to spread your gift.\n\r", ch);
      return;
    }

  if (ch->vampgen == 2)
    {
      if (strlen (ch->clan) < 2)
	{
	  send_to_char ("First you need to create a tribe.\n\r", ch);
	  return;
	}
      if (ch->pcdata->cland[2] == -1)
	{
	  send_to_char ("First you need to select a tribe gift.\n\r", ch);
	  return;
	}
    }

  if (arg[0] == '\0')
    {
      send_to_char ("Claw whom?\n\r", ch);
      return;
    }

  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      send_to_char ("They aren't here.\n\r", ch);
      return;
    }

  if (IS_NPC (victim))
    {
      send_to_char ("Not on NPC's.\n\r", ch);
      return;
    }

  if (ch == victim)
    {
      send_to_char ("You cannot claw yourself.\n\r", ch);
      return;
    }

  if (IS_MAGE (victim))
    {
      send_to_char ("You cannot claw mages.\n\r", ch);
      return;
    }

  if (IS_IMMORTAL (victim))
    {
      send_to_char ("You cannot claw immortals.\n\r", ch);
      return;
    }

  if (IS_VAMPIRE (victim))
    {
      send_to_char ("You are unable to create werevamps!\n\r", ch);
      return;
    }

  if (IS_DEMON (victim))
    {
      send_to_char ("But they have no soul!\n\r", ch);
      return;
    }

  if (IS_GHOUL (victim))
    {
      send_to_char ("They have been tainted with Kindred blood.\n\r", ch);
      return;
    }

  if (IS_HIGHLANDER (victim))
    {
      send_to_char ("You cannot turn highlanders into werewolves.\n\r", ch);
      return;
    }

  if (IS_WEREWOLF (victim))
    {
      send_to_char ("But they are already a werewolf!\n\r", ch);
      return;
    }

  if (victim->class != 0)
    {
      sprintf (buf, "But $E is already a %s\n\r", get_class (ch));
      act (buf, ch, NULL, victim, TO_CHAR);
      return;
    }

  if (!IS_IMMUNE (victim, IMM_VAMPIRE))
    {
      send_to_char ("You cannot claw an unwilling person.\n\r", ch);
      return;
    }

  if (!IS_VAMPAFF (ch, VAM_CLAWS))
    {
      send_to_char ("First you better get your claws out!\n\r", ch);
      return;
    }

  act ("You plunge your claws into $N.", ch, NULL, victim, TO_CHAR);
  act ("$n plunges $s claws into $N.", ch, NULL, victim, TO_NOTVICT);
  act ("$n plunges $s claws into your chest.", ch, NULL, victim, TO_VICT);
  victim->class = CLASS_WEREWOLF;
  victim->level = LEVEL_AVATAR;

  victim->pcdata->cland[0] = gifts = number_range (0, 2);
  victim->pcdata->breed[gifts] = -1;

  victim->pcdata->cland[1] = gifts = number_range (0, 4);
  victim->pcdata->auspice[gifts] = -1;

  if (ch->vampgen > 2)
    {
      victim->pcdata->cland[2] = gifts = ch->pcdata->cland[2];
      victim->pcdata->tribes[gifts] = -1;
    }
  else
    victim->pcdata->cland[2] = -1;

  send_to_char ("You are now a werewolf.\n\r", victim);
  victim->vampgen = ch->vampgen + 1;
  free_string (victim->lord);
  if (ch->vampgen == 1)
    victim->lord = str_dup (ch->name);
  else
    {
      sprintf (buf, "%s %s", ch->lord, ch->name);
      victim->lord = str_dup (buf);
    }

  do_autosave (ch, "");
  do_autosave (victim, "");
  return;
}

void
do_clanname (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  argument = one_argument (argument, arg);
  if (IS_NPC (ch))
    return;

  if (arg[0] == '\0')
    {
      send_to_char ("Whose clan do you wish to change or name?\n\r", ch);
      return;
    }

  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      send_to_char ("They aren't here.\n\r", ch);
      return;
    }

  if (IS_NPC (victim))
    return;

  smash_tilde (argument);
  if (strlen (argument) < 0 || strlen (argument) > 25)
    {
      send_to_char ("Clan name should be between 0 and 25 letters long.\n\r",
		    ch);
      send_to_char ("Leave a blank to remove clan.\n\r", ch);
      return;
    }
  free_string (victim->clan);
  victim->clan = str_dup (argument);
  send_to_char ("Clan set.\n\r", ch);
  send_to_char ("Clan set.\n\r", victim);
  return;
}

void
do_clandisc (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];
  char buf[MIL];
  int improve, sn, col;

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_VAMPIRE (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    {
      send_to_char
	("--------------------------------------------------------------------------------\n\r",
	 ch);
      send_to_char ("                               -= Disciplines =-\n\r",
		    ch);
      send_to_char
	("--------------------------------------------------------------------------------\n\r",
	 ch);
      if (ch->vampgen <= 2)
	{
	  /* Clan discipline */
	  improve = ch->pcdata->cland[0];
	  sprintf (buf, "Clan Discipline: %s.\n\r", disc_name (improve));
	  send_to_char (buf, ch);

	  /* Personal discipline 1 */
	  improve = ch->pcdata->cland[1];
	  sprintf (buf, "Personal Discipline: %s.\n\r", disc_name (improve));
	  send_to_char (buf, ch);

	  /* Personal discipline 2 */
	  improve = ch->pcdata->cland[2];
	  sprintf (buf, "Personal Discipline: %s.\n\r", disc_name (improve));
	  send_to_char (buf, ch);
	}
      else
	{
	  /* Clan discipline */
	  improve = ch->pcdata->cland[0];
	  sprintf (buf, "Clan Discipline: %s.\n\r", disc_name (improve));
	  send_to_char (buf, ch);

	  /* Sires discipline */
	  improve = ch->pcdata->cland[1];
	  sprintf (buf, "Sires Discipline: %s.\n\r", disc_name (improve));
	  send_to_char (buf, ch);

	  /* Personal discipline */
	  improve = ch->pcdata->cland[2];
	  sprintf (buf, "Personal Discipline: %s.\n\r", disc_name (improve));
	  send_to_char (buf, ch);
	}
      send_to_char
	("--------------------------------------------------------------------------------\n\r",
	 ch);
      if (ch->pcdata->cland[2] >= 0)
	return;
      send_to_char
	("Please select another discipline from the list below.\n\r", ch);
      send_to_char
	("--------------------------------------------------------------------------------\n\r",
	 ch);
      col = 0;
      for (sn = 0; sn <= DISC_MAX; sn++)
	{
	  if (ch->pcdata->powers[sn] != 0)
	    continue;
	  sprintf (buf, "%-15s           ", disc_name (sn));
	  send_to_char (buf, ch);
	  if (++col % 3 == 0)
	    send_to_char ("\n\r", ch);
	}
      if (col % 3 != 0)
	send_to_char ("\n\r", ch);
      send_to_char
	("--------------------------------------------------------------------------------\n\r",
	 ch);
      return;
    }

  if (!str_cmp (arg, "animalism"))
    improve = DISC_ANIMALISM;
  else if (!str_cmp (arg, "auspex"))
    improve = DISC_AUSPEX;
  else if (!str_cmp (arg, "celerity"))
    improve = DISC_CELERITY;
  else if (!str_cmp (arg, "chimerstry"))
    improve = DISC_CHIMERSTRY;
  else if (!str_cmp (arg, "daimoinon"))
    improve = DISC_DAIMOINON;
  else if (!str_cmp (arg, "dominate"))
    improve = DISC_DOMINATE;
  else if (!str_cmp (arg, "fortitude"))
    improve = DISC_FORTITUDE;
  else if (!str_cmp (arg, "melpominee"))
    improve = DISC_MELPOMINEE;
  else if (!str_cmp (arg, "necromancy"))
    improve = DISC_NECROMANCY;
  else if (!str_cmp (arg, "obeah"))
    improve = DISC_OBEAH;
  else if (!str_cmp (arg, "obfuscate"))
    improve = DISC_OBFUSCATE;
  else if (!str_cmp (arg, "obtenebration"))
    improve = DISC_OBTENEBRATION;
  else if (!str_cmp (arg, "potence"))
    improve = DISC_POTENCE;
  else if (!str_cmp (arg, "presence"))
    improve = DISC_PRESENCE;
  else if (!str_cmp (arg, "protean"))
    improve = DISC_PROTEAN;
  else if (!str_cmp (arg, "quietus"))
    improve = DISC_QUIETUS;
  else if (!str_cmp (arg, "serpentis"))
    improve = DISC_SERPENTIS;
  else if (!str_cmp (arg, "thanatosis"))
    improve = DISC_THANATOSIS;
  else if (!str_cmp (arg, "thaumaturgy"))
    improve = DISC_THAUMATURGY;
  else if (!str_cmp (arg, "vicissitude"))
    improve = DISC_VICISSITUDE;
  else
    {
      send_to_char ("You know of no such discipline.\n\r", ch);
      return;
    }

  if (ch->pcdata->cland[0] == improve ||
      ch->pcdata->cland[1] == improve || ch->pcdata->cland[2] == improve)
    {
      send_to_char ("You already know that discipline.\n\r", ch);
      return;
    }

  if (ch->pcdata->cland[0] < 0)
    ch->pcdata->cland[0] = improve;
  else if (ch->pcdata->cland[1] < 0)
    ch->pcdata->cland[1] = improve;
  else if (ch->pcdata->cland[2] < 0)
    ch->pcdata->cland[2] = improve;
  else
    {
      send_to_char ("All of your discipline slots are full.\n\r", ch);
      return;
    }
  ch->pcdata->powers[improve] = -1;
  send_to_char ("Ok.\n\r", ch);

  return;
}

void
do_mask (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  char buf[MSL];

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_DRAGON (ch) && !IS_VAMPIRE (ch) && !IS_GHOUL (ch)
      && !IS_WEREWOLF (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (IS_DRAGON (ch))
    {
      if (!IS_SET (ch->dpwrs, DRA_MASK))
	{
	  send_to_char ("You haven't yet gained the mask power.\n\r", ch);
	  return;
	}
    }
  else if (IS_WEREWOLF (ch) && !IS_ABOMINATION (ch))
    {
      if (get_breed (ch, BREED_HOMID) < 5)
	{
	  stc ("You need Homid to level 5 to use that gift.\n\r", ch);
	  return;
	}
    }
  else
    {
      if (get_disc (ch, DISC_OBFUSCATE) < 2)
	{
	  send_to_char
	    ("You require level 2 Obfuscate to use Mask of a Thousand Faces.\n\r",
	     ch);
	  return;
	}
    }

  if (arg[0] == '\0')
    {
      send_to_char ("Change to look like whom?\n\r", ch);
      return;
    }

  if (IS_AFFECTED (ch, AFF_POLYMORPH) && !IS_VAMPAFF (ch, VAM_DISGUISED))
    {
      send_to_char ("Not while polymorphed.\n\r", ch);
      return;
    }

  if (IS_EXTRA (ch, EXTRA_VICISSITUDE))
    {
      send_to_char ("You are unable to change your appearance.\n\r", ch);
      return;
    }

  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      send_to_char ("They aren't here.\n\r", ch);
      return;
    }

  if (IS_NPC (victim))
    {
      send_to_char ("Not on NPC's.\n\r", ch);
      return;
    }

  if (IS_IMMORTAL (victim) && victim != ch)
    {
      send_to_char ("You can only mask avatars or lower.\n\r", ch);
      return;
    }
  if (ch == victim)
    {
      if (!IS_AFFECTED (ch, AFF_POLYMORPH) && !IS_VAMPAFF (ch, VAM_DISGUISED))
	{
	  send_to_char ("You already look like yourself!\n\r", ch);
	  return;
	}
      if (!IS_POLYAFF (ch, POLY_MASK))
	{
	  send_to_char ("Nothing happens.\n\r", ch);
	  return;
	}
      sprintf (buf, "$n's form shimmers and transforms into a clone of %s.",
	       ch->name);
      act (buf, ch, NULL, NULL, TO_ROOM);
      REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
      REMOVE_BIT (ch->vampaff, VAM_DISGUISED);
      REMOVE_BIT (ch->polyaff, POLY_MASK);
      free_string (ch->morph);
      ch->morph = str_dup ("");
      act ("Your form shimmers and transforms into a clone of $n.", ch, NULL,
	   NULL, TO_CHAR);
      return;
    }
  if (IS_VAMPAFF (ch, VAM_DISGUISED))
    {
      if (!IS_POLYAFF (ch, POLY_MASK))
	{
	  send_to_char ("Nothing happens.\n\r", ch);
	  return;
	}
      act ("Your form shimmers and transforms into a clone of $N.", ch, NULL,
	   victim, TO_CHAR);
      act ("$n's form shimmers and transforms into a clone of you.", ch, NULL,
	   victim, TO_VICT);
      act ("$n's form shimmers and transforms into a clone of $N.", ch, NULL,
	   victim, TO_NOTVICT);
      free_string (ch->morph);
      ch->morph = str_dup (victim->name);
      SET_BIT (ch->polyaff, POLY_MASK);
      return;
    }
  act ("Your form shimmers and transforms into a clone of $N.", ch, NULL,
       victim, TO_CHAR);
  act ("$n's form shimmers and transforms into a clone of you.", ch, NULL,
       victim, TO_VICT);
  act ("$n's form shimmers and transforms into a clone of $N.", ch, NULL,
       victim, TO_NOTVICT);
  SET_BIT (ch->affected_by, AFF_POLYMORPH);
  SET_BIT (ch->vampaff, VAM_DISGUISED);
  SET_BIT (ch->polyaff, POLY_MASK);
  free_string (ch->morph);
  ch->morph = str_dup (victim->name);
  return;
}

void
do_change (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];
  char buf[MSL];
  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (get_disc (ch, DISC_PROTEAN) < 4)
    {
      send_to_char ("You require level 4 Protean to Change Shape.\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    {
      send_to_char
	("You can change between 'human', 'bat', 'wolf' and 'mist' forms.\n\r",
	 ch);
      return;
    }

  if (has_fighttimer (ch))
    return;

  if (!str_cmp (arg, "bat"))
    {
      if (IS_AFFECTED (ch, AFF_POLYMORPH))
	{
	  send_to_char ("You can only polymorph from human form.\n\r", ch);
	  return;
	}
      if (ch->stance[0] != -1)
	do_stance (ch, "");
      if (ch->mounted == IS_RIDING)
	do_dismount (ch, "");
      SET_BIT (ch->polyaff, POLY_BAT);
      clear_stats (ch);
      act ("You transform into bat form.", ch, NULL, NULL, TO_CHAR);
      act ("$n transforms into a bat.", ch, NULL, NULL, TO_ROOM);
      SET_BIT (ch->vampaff, VAM_FLYING);
      SET_BIT (ch->vampaff, VAM_SONIC);
      SET_BIT (ch->vampaff, VAM_CHANGED);
      SET_BIT (ch->affected_by, AFF_POLYMORPH);
      sprintf (buf, "%s the vampire bat", ch->name);
      free_string (ch->morph);
      ch->morph = str_dup (buf);
      return;
    }
  else if (!str_cmp (arg, "wolf"))
    {
      if (IS_AFFECTED (ch, AFF_POLYMORPH))
	{
	  send_to_char ("You can only polymorph from human form.\n\r", ch);
	  return;
	}
      if (ch->stance[0] != -1)
	do_stance (ch, "");
      if (ch->mounted == IS_RIDING)
	do_dismount (ch, "");
      act ("You transform into wolf form.", ch, NULL, NULL, TO_CHAR);
      act ("$n transforms into a dire wolf.", ch, NULL, NULL, TO_ROOM);
      SET_BIT (ch->polyaff, POLY_WOLF);
      clear_stats (ch);
      SET_BIT (ch->affected_by, AFF_POLYMORPH);
      SET_BIT (ch->vampaff, VAM_CHANGED);
      sprintf (buf, "%s the dire wolf", ch->name);
      free_string (ch->morph);
      ch->morph = str_dup (buf);
      return;
    }
  else if (!str_cmp (arg, "mist"))
    {
      if (IS_AFFECTED (ch, AFF_POLYMORPH))
	{
	  send_to_char ("You can only polymorph from human form.\n\r", ch);
	  return;
	}
      if (ch->stance[0] != -1)
	do_stance (ch, "");
      if (ch->mounted == IS_RIDING)
	do_dismount (ch, "");
      act ("You transform into mist form.", ch, NULL, NULL, TO_CHAR);
      act ("$n transforms into a white mist.", ch, NULL, NULL, TO_ROOM);
      if (IS_EXTRA (ch, TIED_UP))
	{
	  act ("The ropes binding you fall through your ethereal form.", ch,
	       NULL, NULL, TO_CHAR);
	  act ("The ropes binding $n fall through $s ethereal form.", ch,
	       NULL, NULL, TO_ROOM);
	  REMOVE_BIT (ch->extra, TIED_UP);
	  REMOVE_BIT (ch->extra, GAGGED);
	  REMOVE_BIT (ch->extra, BLINDFOLDED);
	}
      if (is_affected (ch, gsn_web))
	{
	  act ("The webbing entrapping $n falls through $s ethereal form.",
	       ch, NULL, NULL, TO_ROOM);
	  send_to_char
	    ("The webbing entrapping you falls through your ethereal form.\n\r",
	     ch);
	  affect_strip (ch, gsn_web);
	}
      if (IS_AFFECTED (ch, AFF_WEBBED))
	{
	  act ("The webbing entrapping $n falls through $s ethereal form.",
	       ch, NULL, NULL, TO_ROOM);
	  send_to_char
	    ("The webbing entrapping you falls through your ethereal form.\n\r",
	     ch);
	  REMOVE_BIT (ch->affected_by, AFF_WEBBED);
	}
      if (is_affected (ch, gsn_tendrils))
	{
	  act
	    ("The tendrils of darkness entrapping $n fall through $s ethereal form.",
	     ch, NULL, NULL, TO_ROOM);
	  send_to_char
	    ("The tendrils of darkness entrapping you fall through your ethereal form.\n\r",
	     ch);
	  affect_strip (ch, gsn_tendrils);
	}
      if (IS_AFFECTED (ch, AFF_SHADOW))
	{
	  act
	    ("The tendrils of darkness entrapping $n fall through $s ethereal form.",
	     ch, NULL, NULL, TO_ROOM);
	  send_to_char
	    ("The tendrils of darkness entrapping you fall through your ethereal form.\n\r",
	     ch);
	  REMOVE_BIT (ch->affected_by, AFF_SHADOW);
	}
      if (is_affected (ch, gsn_jail))
	{
	  act ("The band of water entrapping $n splash to the ground.", ch,
	       NULL, NULL, TO_ROOM);
	  send_to_char
	    ("The bands of water entrapping you splash to the ground.\n\r",
	     ch);
	  affect_strip (ch, gsn_jail);
	}
      if (IS_AFFECTED (ch, AFF_JAIL))
	{
	  act ("The band of water entrapping $n splash to the ground.", ch,
	       NULL, NULL, TO_ROOM);
	  send_to_char
	    ("The bands of water entrapping you splash to the ground.\n\r",
	     ch);
	  REMOVE_BIT (ch->affected_by, AFF_JAIL);
	}
      SET_BIT (ch->polyaff, POLY_MIST);
      clear_stats (ch);
      SET_BIT (ch->vampaff, VAM_CHANGED);
      SET_BIT (ch->affected_by, AFF_POLYMORPH);
      SET_BIT (ch->affected_by, AFF_ETHEREAL);
      sprintf (buf, "%s the white mist", ch->name);
      free_string (ch->morph);
      ch->morph = str_dup (buf);
      return;
    }
  else if (!str_cmp (arg, "human"))
    {
      if (!IS_AFFECTED (ch, AFF_POLYMORPH))
	{
	  send_to_char ("You are already in human form.\n\r", ch);
	  return;
	}
      if (IS_VAMPAFF (ch, VAM_CHANGED) && IS_POLYAFF (ch, POLY_BAT))
	{
	  REMOVE_BIT (ch->vampaff, VAM_FLYING);
	  REMOVE_BIT (ch->vampaff, VAM_SONIC);
	  REMOVE_BIT (ch->polyaff, POLY_BAT);
	}
      else if (IS_VAMPAFF (ch, VAM_CHANGED) && IS_POLYAFF (ch, POLY_WOLF))
	REMOVE_BIT (ch->polyaff, POLY_WOLF);
      else if (IS_VAMPAFF (ch, VAM_CHANGED) && IS_POLYAFF (ch, POLY_MIST))
	{
	  REMOVE_BIT (ch->polyaff, POLY_MIST);
	  REMOVE_BIT (ch->affected_by, AFF_ETHEREAL);
	}
      else
	{
	  /* In case they try to change to human from a non-vamp form */
	  send_to_char ("You seem to be stuck in this form.\n\r", ch);
	  return;
	}
      act ("You transform into human form.", ch, NULL, NULL, TO_CHAR);
      act ("$n transforms into human form.", ch, NULL, NULL, TO_ROOM);
      REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
      REMOVE_BIT (ch->vampaff, VAM_CHANGED);
      clear_stats (ch);
      free_string (ch->morph);
      ch->morph = str_dup ("");
      return;
    }
  else
    send_to_char
      ("You can change between 'human', 'bat', 'wolf' and 'mist' forms.\n\r",
       ch);
  return;
}

void
do_vampire (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];
  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_IMMUNE (ch, IMM_VAMPIRE))
    {
      send_to_char ("You lower your defences.\n\r", ch);
      SET_BIT (ch->immune, IMM_VAMPIRE);
      return;
    }
  send_to_char ("You raise your defences.\n\r", ch);
  REMOVE_BIT (ch->immune, IMM_VAMPIRE);
  return;
}

void
do_shadowplane (CHAR_DATA * ch, char *argument)
{
  OBJ_DATA *obj;
  char arg[MIL];
  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_IMMORTAL (ch))
    {
      if (!IS_WEREWOLF (ch) && !IS_KAHN (ch))
	{
	  send_to_char ("Huh?\n\r", ch);
	  return;
	}
    }

  if (has_fighttimer (ch))
    return;

  if (arg[0] == '\0')
    {
      if (!IS_AFFECTED (ch, AFF_SHADOWPLANE))
	{
	  send_to_char ("You fade into the Umbra.\n\r", ch);
	  act ("$n slowly fades out of existance.", ch, NULL, NULL, TO_ROOM);
	  SET_BIT (ch->affected_by, AFF_SHADOWPLANE);
	  do_look (ch, "auto");
	  return;
	}
      REMOVE_BIT (ch->affected_by, AFF_SHADOWPLANE);
      send_to_char ("You fade back into the real world.\n\r", ch);
      act ("$n slowly fades into existance.", ch, NULL, NULL, TO_ROOM);
      do_look (ch, "auto");
      return;
    }

  if ((obj = get_obj_carry (ch, arg)) == NULL)
    {
      send_to_char ("You are not carrying that object.\n\r", ch);
      return;
    }

  if (IS_AFFECTED (ch, AFF_SHADOWPLANE))
    {
      act ("You toss $p to the ground and it vanishes into the real world.",
	   ch, obj, NULL, TO_CHAR);
      act ("$n tosses $p to the ground and it vanishes.", ch, obj, NULL,
	   TO_ROOM);
      obj_from_char (obj);
      obj_to_room (obj, ch->in_room);
    }
  else
    {
      act ("You toss $p to the ground and it vanishes into the Umbra.", ch,
	   obj, NULL, TO_CHAR);
      act ("$n tosses $p to the ground and it vanishes.", ch, obj, NULL,
	   TO_ROOM);
      obj_from_char (obj);
      obj_to_room (obj, ch->in_room);
      SET_BIT (obj->extra_flags, ITEM_SHADOWPLANE);
    }
  return;
}

void
do_introduce (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];
  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (has_clan (ch))
    do_stateempire (ch, "");
  else
    send_to_char ("Huh?\n\r", ch);
  return;
}

void
do_stateempire (CHAR_DATA * ch, char *argument)
{
  char buf[MSL];
  char buf2[MSL];
  char emp[MSL];
  char sex[MSL];
  char sex2[MSL];
  char sex3[MSL];
  char rank[MSL];
  char ruler[MSL];
  char emperor[MSL];
  char sponsor[MSL];
  char name[MSL];
  bool female = FALSE;
  int i, x;

  if (IS_NPC (ch))
    return;

  if (!has_clan (ch))
    return;

  if (!clan_exists (ch->clan))
    return;

  if (ch->pcdata->empire == 0)
    return;

  i = ch->pcdata->empire[0];

  sprintf (emp, "%s#P", ch->clan);
  sprintf (rank, "%s", get_emprank (ch));
  sprintf (name, "%s", capitalize (ch->name));
  if (strlen (ch->lord) > 3)
    sprintf (emperor, "%s", capitalize (ch->lord));

  if (IS_EMPEROR (ch) || ch->sponsor == NULL || strlen (ch->sponsor) < 4)
    sprintf (sponsor, "The Divine");
  else
    sprintf (sponsor, "%s", capitalize (ch->sponsor));


  if (IS_SET (clantable[i].bits, EMPIRE_FEMALE))
    {
      sprintf (sex, "she");
      sprintf (sex2, "her");
      sprintf (sex3, "Her");
      sprintf (ruler, "Empress");
      female = TRUE;
    }
  else if (IS_SET (clantable[i].bits, EMPIRE_MALE))
    {
      sprintf (sex, "he");
      sprintf (sex2, "him");
      sprintf (sex3, "His");
      sprintf (ruler, "Emperor");
    }
  else
    {
      sprintf (sex, "it");
      sprintf (sex2, "it");
      sprintf (sex3, "Its");
      sprintf (ruler, "Emperor");
    }

  if (!str_cmp (sponsor, emperor))
    sprintf (sponsor, "The Emp%s",
	     female ? "ress herself, may she live forever" :
	     "eror himself, may he live forever");

  sprintf (buf, "My name is %s!", name);
  do_say (ch, buf);

  if (IS_EMPEROR (ch))
    {
      sprintf (buf, "I am the %s of the %s Empire!", rank, emp);
      do_say (ch, buf);
      sprintf (buf,
	       "My power is granted by %s, all shall bow before me or suffer for eternity!",
	       sponsor);
      do_say (ch, buf);
      return;
    }
  if (IS_HEIR (ch))
    {
      sprintf (buf, "I am the %s to the throne of the %s Empire.", rank, emp);
      do_say (ch, buf);
    }
  else
    {
      sprintf (buf, "I am a %s in the %s Empire.", rank, emp);
      do_say (ch, buf);
    }
  sprintf (buf, "I was sponsored before the Empire by %s.", sponsor);
  do_say (ch, buf);
  sprintf (buf, "My life belongs to the glorious %s %s, may %s live forever.",
	   ruler, emperor, sex);
  do_say (ch, buf);
  sprintf (buf,
	   "%s power is granted by The Divine, all shall bow before %s or suffer for eternity!",
	   sex3, sex2);
  do_say (ch, buf);
  return;
}

void
do_bloodline (CHAR_DATA * ch, char *argument)
{
  char arg1[MIL];
  char arg2[MIL];
  char arg3[MIL];
  char buf[MSL];
  char buf2[MSL];

  argument = one_argument (argument, arg1);
  argument = one_argument (argument, arg2);
  argument = one_argument (argument, arg3);

  if (IS_NPC (ch))
    return;

  if (arg1 != '\0')
    arg1[0] = UPPER (arg1[0]);
  if (arg2 != '\0')
    arg2[0] = UPPER (arg2[0]);
  if (arg3 != '\0')
    arg3[0] = UPPER (arg3[0]);

  if (!str_cmp (arg1, "Corim"))
    strcpy (arg1, "Corim");

  if (strlen (ch->clan) < 2 && ch->vampgen != 1)
    {
      strcpy (buf, "In the name of Gaia, I announce my Garou heritage.");
      do_say (ch, buf);
      sprintf (buf, "My name is %s, I am a Ronin of no tribe.", ch->name);
      do_say (ch, buf);
      return;
    }
  if (IS_BSD (ch))
    strcpy (buf, "In the name of the Wyrm, I announce my Garou heritage.");
  else
    strcpy (buf, "In the name of Gaia, I announce my Garou heritage.");
  do_say (ch, buf);
  if (ch->vampgen != 1)
    {
      if (ch->vampgen == 4)
	sprintf (buf2, "%s", arg3);
      else if (ch->vampgen == 3)
	sprintf (buf2, "%s", arg2);
      else if (ch->vampgen == 2)
	sprintf (buf2, "%s", arg1);
      if (ch->vampgen == 1)
	{
	  if (IS_BSD (ch))
	    sprintf (buf, "My name is %s, chosen Champion of the Wyrm.",
		     ch->name);
	  else
	    sprintf (buf, "My name is %s, chosen Champion of Gaia.",
		     ch->name);
	}
      if (ch->vampgen == 2)
	sprintf (buf, "My name is %s, Chieftain of the %s tribe, pup of %s.",
		 ch->name, ch->clan, buf2);
      else
	sprintf (buf, "My name is %s, of the %s tribe, pup of %s.", ch->name,
		 ch->clan, buf2);
      do_say (ch, buf);
    }
  if (arg3[0] != '\0')
    {
      sprintf (buf, "My name is %s, of the %s #Rtribe, pup of %s.",
	       arg3, ch->clan, arg2);
      do_say (ch, buf);
    }
  if (arg2[0] != '\0')
    {
      if (arg1[0] != '\0')
	sprintf (buf,
		 "My name is %s, Chieftain of the %s #Rtribe, pup of %s.",
		 arg2, ch->clan, arg1);
      else
	sprintf (buf, "My name is %s, of the %s #Rtribe, pup of %s.", arg2,
		 ch->clan, arg1);
      do_say (ch, buf);
    }
  if (ch->vampgen == 1)
    {
      if (IS_BSD (ch))
	sprintf (buf, "My name is %s, chosen Champion of the Wyrm.",
		 ch->name);
      else
	sprintf (buf, "My name is %s, chosen Champion of Gaia.", ch->name);
    }
  else
    {
      if (IS_BSD (ch))
	sprintf (buf, "My name is %s, chosen Champion of the Wyrm.", arg1);
      else
	sprintf (buf, "My name is %s, chosen Champion of Gaia.", arg1);
    }
  do_say (ch, buf);
  return;
}

void
do_tradition (CHAR_DATA * ch, char *argument)
{
  char arg1[MIL];
  char arg2[MIL];
  char arg3[MIL];
  char arg4[MIL];
  char arg5[MIL];
  char arg6[MIL];
  char buf[MSL];
  char buf2[MIL];
  char buf3[MIL];

  argument = one_argument (argument, arg1);
  argument = one_argument (argument, arg2);
  argument = one_argument (argument, arg3);
  argument = one_argument (argument, arg4);
  argument = one_argument (argument, arg5);
  argument = one_argument (argument, arg6);

  if (IS_NPC (ch))
    return;

  if (arg1 != '\0')
    arg1[0] = UPPER (arg1[0]);
  if (arg2 != '\0')
    arg2[0] = UPPER (arg2[0]);
  if (arg3 != '\0')
    arg3[0] = UPPER (arg3[0]);
  if (arg4 != '\0')
    arg4[0] = UPPER (arg4[0]);
  if (arg5 != '\0')
    arg5[0] = UPPER (arg5[0]);
  if (arg6 != '\0')
    arg6[0] = UPPER (arg6[0]);

  if (!str_cmp (arg1, "Nymph"))
    strcpy (arg1, "Nymph");

  if (!IS_VAMPIRE (ch) || (ch->vampgen < 1) || (ch->vampgen > 7))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (!str_cmp (ch->clan, "") && ch->vampgen >= 2)
    {
      send_to_char ("Not until you have a clan.\n\r", ch);
      return;
    }

  if (ch->vampgen == 7)
    {
      sprintf (buf2, "Seventh");
      sprintf (buf3, "Fledgling");
    }
  else if (ch->vampgen == 6)
    {
      sprintf (buf2, "Sixth");
      sprintf (buf3, "Neonate");
    }
  else if (ch->vampgen == 5)
    {
      sprintf (buf2, "Fifth");
      sprintf (buf3, "Ancilla");
    }
  else if (ch->vampgen == 4)
    {
      sprintf (buf2, "Fourth");
      sprintf (buf3, "Elder");
    }
  else if (ch->vampgen == 3)
    {
      sprintf (buf2, "Third");
      sprintf (buf3, "Methuselah");
    }
  else if (ch->vampgen == 2)
    {
      sprintf (buf2, "Second");
      sprintf (buf3, "Antediluvian");
    }
  if (ch->vampgen == 1)
    sprintf (buf,
	     "As is the tradition, I recite the lineage of %s, Sire of all Kindred.",
	     ch->name);
  else
    sprintf (buf,
	     "As is the tradition, I recite the lineage of %s, %s of the %s Generation.",
	     ch->name, buf3, buf2);
  do_say (ch, buf);
  if (ch->vampgen != 1)
    {
      if (ch->vampgen == 7)
	sprintf (buf2, "%s", arg6);
      else if (ch->vampgen == 6)
	sprintf (buf2, "%s", arg5);
      else if (ch->vampgen == 5)
	sprintf (buf2, "%s", arg4);
      else if (ch->vampgen == 4)
	sprintf (buf2, "%s", arg3);
      else if (ch->vampgen == 3)
	sprintf (buf2, "%s", arg2);
      else if (ch->vampgen == 2)
	sprintf (buf2, "%s", arg1);

      if (ch->vampgen == 2)
	sprintf (buf, "I am %s, founder of clan %s#R.  My sire is %s.",
		 ch->name, ch->clan, buf2);
      else
	sprintf (buf, "I am %s of clan %s#R.  My sire is %s.", ch->name,
		 ch->clan, buf2);
      do_say (ch, buf);
    }
  if (arg6[0] != '\0')
    {
      sprintf (buf, "I am %s of clan %s#R.  My sire is %s.",
	       arg6, ch->clan, arg5);
      do_say (ch, buf);
    }
  if (arg5[0] != '\0')
    {
      sprintf (buf, "I am %s of clan %s#R.  My sire is %s.",
	       arg5, ch->clan, arg4);
      do_say (ch, buf);
    }
  if (arg4[0] != '\0')
    {
      sprintf (buf, "I am %s of clan %s#R.  My sire is %s.",
	       arg4, ch->clan, arg3);
      do_say (ch, buf);
    }
  if (arg3[0] != '\0')
    {
      sprintf (buf, "I am %s of clan %s#R.  My sire is %s.",
	       arg3, ch->clan, arg2);
      do_say (ch, buf);
    }
  if (arg2[0] != '\0')
    {
      if (arg1[0] != '\0')
	sprintf (buf, "I am %s, founder of %s#R.  My sire is %s.", arg2,
		 ch->clan, arg1);
      else
	sprintf (buf, "I am %s of clan %s#R.  My sire is %s.", arg2, ch->clan,
		 arg1);
      do_say (ch, buf);
    }
  if (ch->vampgen == 1)
    sprintf (buf,
	     "I am %s, cursed by God to drink only blood and eat only ashes.",
	     ch->name);
  else
    sprintf (buf, "I am %s.  All Kindred are my childer.", arg1);
  do_say (ch, buf);
  if (ch->vampgen == 7)
    sprintf (buf,
	     "My name is %s, childe of %s, childe of %s, childe of %s, childe of %s, childe of %s, childe of %s.  Recognize my lineage.",
	     ch->name, arg6, arg5, arg4, arg3, arg2, arg1);
  if (ch->vampgen == 6)
    sprintf (buf,
	     "My name is %s, childe of %s, childe of %s, childe of %s, childe of %s, childe of %s.  Recognize my lineage.",
	     ch->name, arg5, arg4, arg3, arg2, arg1);
  if (ch->vampgen == 5)
    sprintf (buf,
	     "My name is %s, childe of %s, childe of %s, childe of %s, childe of %s.  Recognize my lineage.",
	     ch->name, arg4, arg3, arg2, arg1);
  if (ch->vampgen == 4)
    sprintf (buf,
	     "My name is %s, childe of %s, childe of %s, childe of %s.  Recognize my lineage.",
	     ch->name, arg3, arg2, arg1);
  if (ch->vampgen == 3)
    sprintf (buf,
	     "My name is %s, childe of %s, childe of %s.  Recognize my lineage.",
	     ch->name, arg2, arg1);
  if (ch->vampgen == 2)
    sprintf (buf, "My name is %s, childe of %s.  Recognize my lineage.",
	     ch->name, arg1);
  if (ch->vampgen == 1)
    sprintf (buf, "My name is %s.  Recognize my lineage.", ch->name);
  do_say (ch, buf);
  return;
}

void
do_darkheart (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (get_disc (ch, DISC_SERPENTIS) < 4)
    {
      send_to_char ("You require level 4 Serpentis to use Dark Heart.\n\r",
		    ch);
      return;
    }
  if (IS_IMMUNE (ch, IMM_STAKE))
    {
      send_to_char ("But you've already torn your heart out!\n\r", ch);
      return;
    }
  send_to_char
    ("You rip your heart from your body and toss it to the ground.\n\r", ch);
  act ("$n rips $s heart out and tosses it to the ground.", ch, NULL, NULL,
       TO_ROOM);
  make_part (ch, "heart");
  if (!IS_VAMPIRE (ch))
    ch->hit = -10;
  else
    ch->hit = ch->hit - number_range (10, 20);
  update_pos (ch);
  if (!IS_VAMPIRE (ch) || (ch->position == POS_DEAD && !IS_HERO (ch)))
    {
      ch->form = 2;
      killperson (ch, ch);
      return;
    }
  SET_BIT (ch->immune, IMM_STAKE);
  return;
}

void
do_truesight (CHAR_DATA * ch, char *argument)
{
  if (IS_NPC (ch))
    return;

  if (!IS_WEREWOLF (ch)
      || (get_breed (ch, BREED_LUPUS) < 1 && get_disc (ch, DISC_AUSPEX) < 1))
    {
      if (IS_WEREWOLF (ch))
	{
	  send_to_char
	    ("You require the level 1 Lupus power to use Heightened Senses.\n\r",
	     ch);
	  return;
	}
      if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch) && !IS_DEMON (ch)
	  && !IS_DJINN (ch) && !IS_MONK (ch) && !IS_ANGELW (ch))
	{
	  send_to_char ("Huh?\n\r", ch);
	  return;
	}
      if (ch->monkab[AWARE] < 3 && !IS_SET (ch->apowers, APOWER_VISION)
	  && !IS_SET (ch->pcdata->powers[DJINNPOWERS], DJINN_SIGHT)
	  && get_disc (ch, DISC_AUSPEX) < 1)
	{
	  do_huh (ch, "");
	  return;
	}
    }

  if (IS_SET (ch->act, PLR_HOLYLIGHT))
    {
      REMOVE_BIT (ch->act, PLR_HOLYLIGHT);
      send_to_char ("Your senses return to normal.\n\r", ch);
    }
  else
    {
      SET_BIT (ch->act, PLR_HOLYLIGHT);
      send_to_char ("Your senses increase to incredible proportions.\n\r",
		    ch);
    }
  return;
}

void
do_soulmask (CHAR_DATA * ch, char *argument)
{
  char arg1[MIL];
  char arg2[MIL];
  char buf[MSL];
  int value, max_stat;

  smash_tilde (argument);
  argument = one_argument (argument, arg1);
  strcpy (arg2, argument);

  if (IS_NPC (ch))
    return;

  if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (get_disc (ch, DISC_OBFUSCATE) < 5)
    {
      send_to_char ("You require level 5 Obfuscate to use Soul Mask.\n\r",
		    ch);
      return;
    }

  if (arg1[0] != '\0' && !str_cmp (arg1, "on"))
    {
      if (IS_EXTRA (ch, EXTRA_FAKE_CON))
	{
	  send_to_char ("You already have Soul Mask on.\n\r", ch);
	  return;
	}
      SET_BIT (ch->extra, EXTRA_FAKE_CON);
      send_to_char ("Your Soul Mask is now ON.\n\r", ch);
      return;
    }
  if (arg1[0] != '\0' && !str_cmp (arg1, "off"))
    {
      if (!IS_EXTRA (ch, EXTRA_FAKE_CON))
	{
	  send_to_char ("You already have Soul Mask off.\n\r", ch);
	  return;
	}
      REMOVE_BIT (ch->extra, EXTRA_FAKE_CON);
      send_to_char ("Your Soul Mask is now OFF.\n\r", ch);
      return;
    }
  if (arg1[0] == '\0' || arg2[0] == '\0')
    {
      send_to_char
	("--------------------------------------------------------------------------------\n\r",
	 ch);
      send_to_char ("                                -= Soul Mask =-\n\r",
		    ch);
      send_to_char
	("--------------------------------------------------------------------------------\n\r",
	 ch);
      send_to_char ("You have the following stats:\n\r", ch);
      sprintf (buf, "Weapon skill: %d, Stance: %d.\n\r",
	       ch->pcdata->fake_skill, ch->pcdata->fake_stance);
      send_to_char (buf, ch);
      sprintf (buf, "Hitroll: %d, Actual: %d.\n\r",
	       ch->pcdata->fake_hit, char_hitroll (ch));
      send_to_char (buf, ch);
      sprintf (buf, "Damroll: %d, Actual: %d.\n\r",
	       ch->pcdata->fake_dam, char_damroll (ch));
      send_to_char (buf, ch);
      sprintf (buf, "Armour: %d, Actual: %d.\n\r",
	       ch->pcdata->fake_ac, char_ac (ch));
      send_to_char (buf, ch);
      sprintf (buf, "Hp: %d/%d, Actual: %d/%d.\n\r",
	       ch->pcdata->fake_hp, ch->pcdata->fake_max_hp,
	       ch->hit, ch->max_hit);
      send_to_char (buf, ch);
      sprintf (buf, "Vitality: %d/%d, Actual: %d/%d.\n\r",
	       ch->pcdata->fake_move, ch->pcdata->fake_max_move,
	       ch->move, ch->max_move);
      send_to_char (buf, ch);
      sprintf (buf,
	       "Str: %d/%d, Int: %d/%d, Wis: %d/%d, Dex: %d/%d, Con: %d/%d.\n\r",
	       ch->pcdata->fake_stats[STAT_STR], get_curr_str (ch),
	       ch->pcdata->fake_stats[STAT_INT], get_curr_int (ch),
	       ch->pcdata->fake_stats[STAT_WIS], get_curr_wis (ch),
	       ch->pcdata->fake_stats[STAT_DEX], get_curr_dex (ch),
	       ch->pcdata->fake_stats[STAT_CON], get_curr_con (ch));
      send_to_char (buf, ch);
      send_to_char
	("--------------------------------------------------------------------------------\n\r",
	 ch);
      send_to_char
	("You can set: Skill, Stance, Str, Int, Wis, Dex, Con, Hit, Dam, Ac,\n\r",
	 ch);
      send_to_char ("Hp, Max_Hp, Vitality, Max_Vitality.\n\r", ch);
      send_to_char
	("--------------------------------------------------------------------------------\n\r",
	 ch);
      return;
    }
  value = is_number (arg2) ? atoi (arg2) : -10000;

  switch (ch->vampgen)
    {
    default:
      max_stat = 5;
      break;
    case 1:
      max_stat = 10;
      break;
    case 2:
    case 3:
    case 4:
      max_stat = 9;
      break;
    case 5:
      max_stat = 8;
      break;
    case 6:
      max_stat = 7;
      break;
    case 7:
      max_stat = 6;
      break;
    }

  if (!str_cmp (arg1, "skill"))
    {
      if (value < 0 || value > 200)
	{
	  send_to_char ("Please enter a value between 0 and 200.\n\r", ch);
	  return;
	}
      ch->pcdata->fake_skill = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "stance"))
    {
      if (value < 0 || value > 200)
	{
	  send_to_char ("Please enter a value between 0 and 200.\n\r", ch);
	  return;
	}
      ch->pcdata->fake_stance = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "hit") || !str_cmp (arg1, "hitroll"))
    {
      if (value < 0 || value > 1000)
	{
	  send_to_char ("Please enter a value between 0 and 1000.\n\r", ch);
	  return;
	}
      ch->pcdata->fake_hit = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "dam") || !str_cmp (arg1, "damroll"))
    {
      if (value < 0 || value > 1000)
	{
	  send_to_char ("Please enter a value between 0 and 1000.\n\r", ch);
	  return;
	}
      ch->pcdata->fake_dam = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "ac") || !str_cmp (arg1, "armour")
      || !str_cmp (arg1, "armor"))
    {
      send_to_char
	("Please use ac+ or ac- to choose a positive or negative value.\n\r",
	 ch);
      return;
    }
  if (!str_cmp (arg1, "ac+") || !str_cmp (arg1, "armour+")
      || !str_cmp (arg1, "armor+"))
    {
      if (value < 0 || value > 100)
	{
	  send_to_char ("Please enter a value between 0 and 100.\n\r", ch);
	  return;
	}
      ch->pcdata->fake_ac = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "ac-") || !str_cmp (arg1, "armour-")
      || !str_cmp (arg1, "armor-"))
    {
      if (value < 1 || value > 2000)
	{
	  send_to_char ("Please enter a value between 1 and 2000.\n\r", ch);
	  return;
	}
      ch->pcdata->fake_ac = 0 - value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "hp") || !str_cmp (arg1, "hits"))
    {
      if (value < 1 || value > 30000)
	{
	  send_to_char ("Please enter a value between 1 and 30000.\n\r", ch);
	  return;
	}
      if (value > ch->pcdata->fake_max_hp)
	{
	  send_to_char ("You cannot have more hp than your max_hp.\n\r", ch);
	  return;
	}
      ch->pcdata->fake_hp = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "max_hp") || !str_cmp (arg1, "max_hits"))
    {
      if (value < 1 || value > 30000)
	{
	  send_to_char ("Please enter a value between 1 and 30000.\n\r", ch);
	  return;
	}
      if (value < ch->pcdata->fake_hp)
	{
	  send_to_char ("You cannot have less max_hp than your hp.\n\r", ch);
	  return;
	}
      ch->pcdata->fake_max_hp = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "vitality"))
    {
      if (value < 1 || value > 30000)
	{
	  send_to_char ("Please enter a value between 1 and 30000.\n\r", ch);
	  return;
	}
      if (value > ch->pcdata->fake_max_move)
	{
	  send_to_char
	    ("You cannot have more vitality than your max_vatality.\n\r", ch);
	  return;
	}
      ch->pcdata->fake_move = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "max_vitality"))
    {
      if (value < 1 || value > 30000)
	{
	  send_to_char ("Please enter a value between 1 and 30000.\n\r", ch);
	  return;
	}
      if (value < ch->pcdata->fake_max_move)
	{
	  send_to_char
	    ("You cannot have less max_vitality than your vatality.\n\r", ch);
	  return;
	}
      ch->pcdata->fake_max_move = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "str") || !str_cmp (arg1, "strength"))
    {
      if (value < 3 || value > max_stat)
	{
	  sprintf (buf, "Please enter a value between 3 and %d.\n\r",
		   max_stat);
	  send_to_char (buf, ch);
	  return;
	}
      ch->pcdata->fake_stats[STAT_STR] = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "int") || !str_cmp (arg1, "intelligence"))
    {
      if (value < 3 || value > max_stat)
	{
	  sprintf (buf, "Please enter a value between 3 and %d.\n\r",
		   max_stat);
	  send_to_char (buf, ch);
	  return;
	}
      ch->pcdata->fake_stats[STAT_INT] = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "wis") || !str_cmp (arg1, "wisdom"))
    {
      if (value < 3 || value > max_stat)
	{
	  sprintf (buf, "Please enter a value between 3 and %d.\n\r",
		   max_stat);
	  send_to_char (buf, ch);
	  return;
	}
      ch->pcdata->fake_stats[STAT_WIS] = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "dex") || !str_cmp (arg1, "dexterity"))
    {
      if (value < 3 || value > max_stat)
	{
	  sprintf (buf, "Please enter a value between 3 and %d.\n\r",
		   max_stat);
	  send_to_char (buf, ch);
	  return;
	}
      ch->pcdata->fake_stats[STAT_DEX] = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  if (!str_cmp (arg1, "con") || !str_cmp (arg1, "constitution"))
    {
      if (value < 3 || value > max_stat)
	{
	  sprintf (buf, "Please enter a value between 3 and %d.\n\r",
		   max_stat);
	  send_to_char (buf, ch);
	  return;
	}
      ch->pcdata->fake_stats[STAT_CON] = value;
      send_to_char ("Ok.\n\r", ch);
      return;
    }
  send_to_char
    ("You can set: Skill, Stance, Str, Int, Wis, Dex, Con, Hit, Dam, Ac,\n\r",
     ch);
  send_to_char ("Hp, Max_Hp, Vitality, Max_Vitality.\n\r", ch);
  return;
}

void
do_scry (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  ROOM_INDEX_DATA *chroom;
  ROOM_INDEX_DATA *victimroom;
  DESCRIPTOR_DATA *d;
  char arg[MIL];
  char buf[MSL];
  bool found = FALSE;

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (IS_DEMON (ch))
    {
      if (!IS_SET (ch->pcdata->disc[C_POWERS], DEM_SCRY))
	{
	  send_to_char ("You haven't been granted the gift of scry.\n\r", ch);
	  return;
	}
    }
  else if (IS_ANGELW (ch))
    {
      if (!IS_SET (ch->apowers, APOWER_VISION))
	{
	  send_to_char ("You have not enwarped this gift!\n\r", ch);
	  return;
	}
    }
  else if (IS_MONK (ch) && ch->monkab[AWARE] < 4)
    {
      stc ("You must obtain level 4 Awareness to use scry.\n\r", ch);
      return;
    }
  else if (IS_DJINN (ch))
    {
      if (!IS_SET (ch->pcdata->powers[DJINNPOWERS], DJINN_SIGHT))
	{
	  send_to_char ("You haven't been granted the gift of sight.\n\r",
			ch);
	  return;
	}
    }
  else if (!IS_HIGHLANDER (ch) && !IS_KAHN (ch)
	   && !IS_VAMPIRE (ch) && !IS_GHOUL (ch)
	   && !IS_ITEMAFF (ch, ITEMA_VISION) && !IS_WEREWOLF (ch)
	   && !IS_DEMON (ch) && !IS_MAGE (ch) && !IS_MONK (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  else if (IS_MAGE (ch) && !IS_LICH (ch) && !IS_NEPHANDI (ch)
	   && !IS_SKINDANCER (ch) && ch->spheres[MCOR] < 2)
    {
      send_to_char
	("You must obtain level two Correspondence to use Scry.\n\r", ch);
      return;
    }
  else if (IS_HIGHLANDER (ch) && !IS_QUICK (ch, QUICKENING_SENSE))
    {
      send_to_char ("You have yet to gain that power.\n\r", ch);
      return;
    }
  else if (!IS_DEMON (ch) && !IS_HIGHLANDER (ch) && !IS_DRAGON (ch)
	   && get_auspice (ch, AUSPICE_PHILODOX) < 3 && !IS_MAGE (ch)
	   && !IS_MONK (ch) && get_disc (ch, DISC_AUSPEX) < 5
	   && (ch->pcdata->powers[KAHN_RANKS] < 3)
	   && !IS_ITEMAFF (ch, ITEMA_VISION))
    {
      if (IS_ABOMINATION (ch))
	send_to_char
	  ("You require level 3 Philodox or level 5 Auspex to Scry.\n\r", ch);
      else if (IS_WEREWOLF (ch))
	send_to_char
	  ("You require the level 3 Philodox power to use Scent of Beyond.\n\r",
	   ch);
      else if (IS_DEMON (ch))
	send_to_char ("You require Supreme Vision to use Scry.\n\r", ch);
      else if (IS_KAHN (ch))
	send_to_char
	  ("You must have Kahn Ranks to level 3 to use this power!\n\r", ch);
      else
	send_to_char ("You require level 5 Auspex to use Scry.\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    {
      send_to_char
	("You close your eyes and mentally survey the surrounding area.\n\r",
	 ch);
      act ("$n closes $s eyes and a look of concentration crosses $s face.",
	   ch, NULL, NULL, TO_ROOM);
      for (d = descriptor_list; d != NULL; d = d->next)
	{
	  if (d->connected != CON_PLAYING)
	    continue;
	  if ((victim = d->character) == NULL)
	    continue;
	  if (IS_NPC (victim) || victim->in_room == NULL)
	    continue;
	  if (victim == ch)
	    continue;
	  if (!can_see (ch, victim))
	    continue;
	  if (IS_IMMORTAL (victim))
	    continue;
	  if (!plane_see (ch, victim) && !IS_IMMORTAL (ch) && !IS_LICH (ch))
	    continue;
	  if (IS_AFFECTED (victim, AFF_POLYMORPH))
	    sprintf (buf, "(%s) %s: ", victim->name, victim->morph);
	  else
	    sprintf (buf, "%s: ", victim->name);
	  send_to_char (buf, ch);
	  if (IS_SAINT (victim) && victim->monkab[HOLY] > 1
	      && !IS_IMMORTAL (ch) && get_disc (ch, DISC_AUSPEX) < 10)
	    sprintf (buf, "(guarded by angel).");
/*	  else if (victim->in_room->area->plane == PLANE_PAND)
	    sprintf (buf,
		     "Unable to establish a lock on the victim\'s location.");*/
	  else if (!IS_IMMUNE (victim, IMM_SHIELDED))
	    sprintf (buf, "%s.", victim->in_room->name);
	  else if (IS_IMMORTAL (ch))
	    sprintf (buf, "%s.", victim->in_room->name);
	  else if (IS_XXX (victim, XXX_TIMESHIELD))
	    sprintf (buf, "(Undetectable)");
	  else if (ch->lstatus >= 9)
	    sprintf (buf, "%s.", victim->in_room->name);
	  else
	    sprintf (buf, "(shielded).");
	  send_to_char (buf, ch);
	  if (IS_KAHN (ch) && ch->pcdata->powers[KAHN_COMBAT] > 5
	      && IS_AFFECTED (victim, AFF_TRACER))
	    stc ("(#PTracer#n)", ch);
	  stc ("\n\r", ch);
	  found = TRUE;
	}
      if (!found)
	send_to_char ("You cannot seem to locate anyone.\n\r", ch);
      return;
    }

  if ((victim = get_pc_world (ch, arg)) == NULL)
    {
      if ((victim = get_npc_world (ch, arg)) == NULL)
	{
	  send_to_char ("You are unable to locate them.\n\r", ch);
	  return;
	}
    }
/*  if (victim->in_room->area->plane == PLANE_PAND)
    {
      stc ("Unable to establish a lock on the victim\'s location.", ch);
      return;
    } */
  if (!IS_NPC (victim) && IS_IMMUNE (victim, IMM_SHIELDED)
      && !IS_ITEMAFF (ch, ITEMA_VISION) && !IS_IMMORTAL (ch))
    {
      if (ch->lstatus < 9)
	{
	  send_to_char ("You are unable to locate them.\n\r", ch);
	  if (!IS_NPC (victim) && ch != victim
	      && IS_MORE (victim, MORE_GUARDIAN))
	    {
	      guardian_message (victim);
	      act ("$n just failed to use Scry on you.", ch, NULL, victim,
		   TO_VICT);
	      if (IS_SAINT (victim) && victim->monkab[HOLY] > 1
		  && !IS_IMMORTAL (ch))
		{
		  free_string (victim->scryperp);
		  victim->scryperp = str_dup (ch->name);
		  victim->gangtime = number_range (5, 7);
		  guardian_message (victim);
		  act ("Do you want me to BRING $m to you master.", ch, NULL,
		       victim, TO_VICT);
		}
	    }
	  return;
	}
    }

  if (IS_IMMORTAL (victim) && !IS_NPC (victim))
    {
      send_to_char ("You are unable to locate them.\n\r", ch);
      act ("$n just tried to use Scry on you.", ch, NULL, victim, TO_VICT);
      return;
    }


  chroom = ch->in_room;
  victimroom = victim->in_room;

  char_from_room (ch);
  char_to_room (ch, victimroom);
  if (IS_AFFECTED (ch, AFF_SHADOWPLANE)
      && (!IS_AFFECTED (victim, AFF_SHADOWPLANE)))
    {
      REMOVE_BIT (ch->affected_by, AFF_SHADOWPLANE);
      do_look (ch, "auto");
      SET_BIT (ch->affected_by, AFF_SHADOWPLANE);
    }
  else if (!IS_AFFECTED (ch, AFF_SHADOWPLANE)
	   && (IS_AFFECTED (victim, AFF_SHADOWPLANE)))
    {
      SET_BIT (ch->affected_by, AFF_SHADOWPLANE);
      do_look (ch, "auto");
      REMOVE_BIT (ch->affected_by, AFF_SHADOWPLANE);
    }
  else
    do_look (ch, "auto");
  char_from_room (ch);
  char_to_room (ch, chroom);
  if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
    {
      guardian_message (victim);
      act ("$n just used Scry on you.", ch, NULL, victim, TO_VICT);
      if (IS_SAINT (victim) && victim->monkab[HOLY] > 1 && !IS_IMMORTAL (ch))
	{
	  free_string (victim->scryperp);
	  victim->scryperp = str_dup (ch->name);
	  victim->gangtime = number_range (5, 7);
	  guardian_message (victim);
	  act ("Do you want me to BRING $m to you master.", ch, NULL, victim,
	       TO_VICT);
	}
      if (IS_DRACONIAN (victim))
	{
	  int dam = number_range (1000, 3000);

	  sprintf (buf,
		   "An Ancient Spirit Dragon breathes a blast of ghostly fire at you #7[#R%d#]#n.\n\r",
		   dam);
	  stc (buf, ch);
	  sprintf (buf,
		   "Your Ancient Dragon Spirit breathes a blast of ghostly fire at $n #7[#R%d#7]#n.",
		   dam);
	  act (buf, ch, NULL, victim, TO_VICT);
	  act
	    ("An Ancient Dragon Spirit breathes a blast of ghostly fire at $n.",
	     ch, NULL, NULL, TO_ROOM);
	  hurt_person (ch, ch, dam, 0);
	}
    }

  return;
}

void
do_planescry (CHAR_DATA * ch, OBJ_DATA * obj, char *argument)
{
  CHAR_DATA *victim;
  ROOM_INDEX_DATA *chroom;
  ROOM_INDEX_DATA *victimroom;
  DESCRIPTOR_DATA *d;
  char arg[MIL];
  char buf[MSL];
  bool found = FALSE;

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (ch->pcdata->power[POWER_CURRENT] < 10000)
    {
      sprintf (buf, "You dont have enough %s Power Points to use $p.",
	       get_class (ch));
      act (buf, ch, obj, NULL, TO_CHAR);
      return;
    }

  ch->pcdata->power[POWER_CURRENT] -= 10000;
  act ("$n closes $s eyes and a look of concentration crosses $s face.", ch,
       NULL, NULL, TO_ROOM);
  act ("$p glows faintly with power for a few seconds.", ch, obj, NULL,
       TO_ROOM);
  act
    ("$p glows faintly with power for a few seconds as you focus your will on it.",
     ch, obj, NULL, TO_CHAR);

  if (arg[0] == '\0')
    {
      for (d = descriptor_list; d != NULL; d = d->next)
	{
	  if (d->connected != CON_PLAYING)
	    continue;
	  if ((victim = d->character) == NULL)
	    continue;
	  if (IS_NPC (victim) || victim->in_room == NULL)
	    continue;
	  if (victim == ch)
	    continue;
	  if (!can_see (ch, victim))
	    continue;
	  if (IS_IMMORTAL (victim))
	    continue;
	  if (IS_XXX (victim, XXX_TIMESHIELD)
	      && IS_AFFECTED (victim, AFF_POLYMORPH))
	    sprintf (buf, "#c[#n%s#n#c]#n (%s) %s: (Undetectable).",
		     plane_name (victim), victim->name, victim->morph);
	  else if (IS_XXX (victim, XXX_TIMESHIELD)
		   && !IS_AFFECTED (victim, AFF_POLYMORPH))
	    sprintf (buf, "#c[#n%s#n#c]#n %s: (Undetectable).",
		     plane_name (victim), victim->name);
	  else if (IS_XXX (victim, XXX_SE))
	    sprintf (buf,
		     "#c[#n%s#n#c]#n %s: Unable to establish a lock on the victim\'s location.",
		     plane_name2 (PLANE_PAND), victim->name);
/*	  else if (victim->in_room->area->plane == PLANE_PAND
		   && IS_AFFECTED (victim, AFF_POLYMORPH))
	    sprintf (buf,
		     "#c[#n%s#n#c]#n (%s) %s: Unable to establish a lock on the victim\'s location.",
		     plane_name (victim), victim->name, victim->morph);
	  else if (victim->in_room->area->plane == PLANE_PAND
		   && !IS_AFFECTED (victim, AFF_POLYMORPH))
	    sprintf (buf,
		     "#c[#n%s#n#c]#n %s: Unable to establish a lock on the victim\'s location.",
		     plane_name (victim), victim->name); */
	  else if (IS_AFFECTED (victim, AFF_POLYMORPH))
	    sprintf (buf, "#c[#n%s#n#c]#n (%s) %s: %s.", plane_name (victim),
		     victim->name, victim->morph, victim->in_room->name);
	  else
	    sprintf (buf, "#c[#n%s#n#c]#n %s: %s.", plane_name (victim),
		     victim->name, victim->in_room->name);
	  send_to_char (buf, ch);
	  stc ("\n\r", ch);
	  found = TRUE;
	}
      if (!found)
	send_to_char ("You cannot seem to locate anyone.\n\r", ch);
      return;
    }

  if ((victim = find_pc_mud (ch, arg)) == NULL)
    {
      if ((victim = find_npc_mud (ch, arg)) == NULL)
	{
	  send_to_char ("You are unable to locate them.\n\r", ch);
	  return;
	}
    }/*
  if (victim->in_room->area->plane == PLANE_PAND)
    {
      stc ("Unable to establish a lock on the victim\'s location.", ch);
      return;
    }*/
  if (IS_IMMORTAL (victim) && !IS_NPC (victim))
    {
      send_to_char ("You are unable to locate them.\n\r", ch);
      act ("$n just tried to use Scry on you.", ch, NULL, victim, TO_VICT);
      return;
    }


  chroom = ch->in_room;
  victimroom = victim->in_room;


  char_from_room (ch);
  char_to_room (ch, victimroom);

  if (IS_AFFECTED (ch, AFF_SHADOWPLANE)
      && (!IS_AFFECTED (victim, AFF_SHADOWPLANE)))
    {
      REMOVE_BIT (ch->affected_by, AFF_SHADOWPLANE);
      do_look (ch, "auto");
      SET_BIT (ch->affected_by, AFF_SHADOWPLANE);
    }
  else if (!IS_AFFECTED (ch, AFF_SHADOWPLANE)
	   && (IS_AFFECTED (victim, AFF_SHADOWPLANE)))
    {
      SET_BIT (ch->affected_by, AFF_SHADOWPLANE);
      do_look (ch, "auto");
      REMOVE_BIT (ch->affected_by, AFF_SHADOWPLANE);
    }
  else
    do_look (ch, "auto");
  char_from_room (ch);
  char_to_room (ch, chroom);
  return;
}

void
do_readaura (CHAR_DATA * ch, char *argument)
{
  OBJ_DATA *obj;
  char arg[MIL];
  char buf[MIL];
  CHAR_DATA *victim;
  int con_hit, con_dam, con_ac, con_hp, con_mana, con_move;
  int con_str, con_int, con_dex, con_wis, con_con;
  int con_max_hp, con_max_mana, con_max_move;

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_WRAITH (ch) && !IS_DRAGON (ch) && !IS_VAMPIRE (ch) && !IS_GHOUL (ch)
      && !IS_DEMON (ch) && !IS_KAHN (ch) && !IS_WEREWOLF (ch) && !IS_MONK (ch)
      && !IS_ANGELW (ch) && !IS_ITEMAFF (ch, ITEMA_VISION))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (IS_WRAITH (ch) && ch->pcdata->powers[WRA_CAST] < 1)
    {
      send_to_char ("You need level 1 in Castigate to use Soulsight.\n\r",
		    ch);
      return;
    }
  if (IS_ANGELW (ch) && !IS_SET (ch->apowers, APOWER_VISION))
    {
      stc ("You have not enwarped this gift!\n\r", ch);
      return;
    }

  if (IS_DRAGON (ch) && !IS_SET (ch->dpwrs, DRA_PEER))
    {
      send_to_char ("You have not yet gained the peer ability.\n\r", ch);
      return;
    }
  if (IS_KAHN (ch) && ch->pcdata->powers[KAHN_RANKS] < 3)
    {
      do_huh (ch, "");
      return;
    }
  if (IS_HL (ch) && !IS_QUICK (ch, QUICKENING_SENSE))
    {
      stc ("You have yet to gain that power.\n\r", ch);
      return;
    }
  if (IS_MONK (ch) && !IS_ANGEL (ch))
    {
      if (ch->monkab[AWARE] < 3)
	{
	  stc ("You need level 3 in awareness first.\n\r", ch);
	  return;
	}
    }
  if (IS_WEREWOLF (ch) && !IS_ABOMINATION (ch))
    {
      if (get_auspice (ch, AUSPICE_THEURGE) < 5
	  && get_tribe (ch, TRIBE_UKTENA) < 3)
	{
	  stc
	    ("You need Theurge to level 5 or Uktena to level 3 to use readaura.\n\r",
	     ch);
	  return;
	}
    }

  if (!IS_ANGELW (ch) && !IS_KAHN (ch) && !IS_DRAGON (ch) && !IS_WRAITH (ch)
      && !IS_WEREWOLF (ch) && !IS_MONK (ch) || IS_ABOMINATION (ch))
    {
      if (get_disc (ch, DISC_AUSPEX) < 2 && !IS_ITEMAFF (ch, ITEMA_VISION))
	{
	  if (IS_DEMON (ch))
	    send_to_char
	      ("You require Intermediate Vision to Read somethings Aura.\n\r",
	       ch);
	  else
	    send_to_char
	      ("You require level 2 Auspex to Read somethings Aura.\n\r", ch);
	  return;
	}
    }
  if (arg[0] == '\0')
    {
      send_to_char ("Read the aura on what?\n\r", ch);
      return;
    }

  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      if ((obj = get_obj_carry (ch, arg)) == NULL)
	{
	  send_to_char ("Read the aura on what?\n\r", ch);
	  return;
	}
      if (IS_WEREWOLF (ch))
	{
	  if (get_tribe (ch, TRIBE_UKTENA) < 3)
	    {
	      stc
		("You need Uktena to level 3 before you can read the aura of items.\n\r",
		 ch);
	      return;
	    }
	}

      spell_identify (skill_lookup ("identify"), ch->level, ch, obj);
      return;
    }

  if (ch->class == CLASS_WEREWOLF)
    {
      if (get_auspice (ch, AUSPICE_THEURGE) < 5)
	{
	  stc
	    ("You need Theurge to 5 before you can read the aura of players.\n\r",
	     ch);
	  return;
	}
    }


  if (!IS_NPC (victim) && IS_IMMUNE (victim, IMM_SHIELDED)
      && !IS_ITEMAFF (ch, ITEMA_VISION) && !IS_LICH (ch))
    {
      send_to_char ("You are unable to read their aura.\n\r", ch);
      if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
	{
	  guardian_message (victim);
	  act ("$n just failed to use Read Aura on you.", ch, NULL, victim,
	       TO_VICT);
	}
      return;
    }

  act ("$n examines $N intently.", ch, NULL, victim, TO_NOTVICT);
  act ("$n examines you intently.", ch, NULL, victim, TO_VICT);

  if (!IS_NPC (victim) && IS_EXTRA (victim, EXTRA_FAKE_CON))
    {
      con_hit = victim->pcdata->fake_hit;
      con_dam = victim->pcdata->fake_dam;
      con_ac = victim->pcdata->fake_ac;
      con_str = victim->pcdata->fake_stats[STAT_STR];
      con_int = victim->pcdata->fake_stats[STAT_INT];
      con_wis = victim->pcdata->fake_stats[STAT_WIS];
      con_dex = victim->pcdata->fake_stats[STAT_DEX];
      con_con = victim->pcdata->fake_stats[STAT_CON];
      con_hp = victim->pcdata->fake_hp;
      con_mana = victim->pcdata->fake_mana;
      con_move = victim->pcdata->fake_move;
      con_max_hp = victim->pcdata->fake_max_hp;
      con_max_mana = victim->pcdata->fake_max_mana;
      con_max_move = victim->pcdata->fake_max_move;
    }
  else
    {
      con_hit = char_hitroll (victim);
      con_dam = char_damroll (victim);
      con_ac = char_ac (victim);
      con_str = get_curr_str (victim);
      con_int = get_curr_int (victim);
      con_wis = get_curr_wis (victim);
      con_dex = get_curr_dex (victim);
      con_con = get_curr_con (victim);
      con_hp = victim->hit;
      con_mana = victim->mana;
      con_move = victim->move;
      con_max_hp = victim->max_hit;
      con_max_mana = victim->max_mana;
      con_max_move = victim->max_move;
    }

  if (IS_NPC (victim))
    sprintf (buf, "%s is an NPC.\n\r", victim->short_descr);
  else
    {
      if (victim->level == 13)
	sprintf (buf, "%s is an Owner.\n\r", victim->name);
      else if (victim->level == 12)
	sprintf (buf, "%s is an Implementor.\n\r", victim->name);
      else if (victim->level == 11)
	sprintf (buf, "%s is a High Judge.\n\r", victim->name);
      else if (victim->level == 10)
	sprintf (buf, "%s is a Judge.\n\r", victim->name);
      else if (victim->level == 9)
	sprintf (buf, "%s is an Enforcer.\n\r", victim->name);
      else if (victim->level == 8)
	sprintf (buf, "%s is a Quest Maker.\n\r", victim->name);
      else if (victim->level == 7)
	sprintf (buf, "%s is a Builder.\n\r", victim->name);
      else if (victim->level >= 3)
	sprintf (buf, "%s is an Avatar.\n\r", victim->name);
      else
	sprintf (buf, "%s is a Mortal.\n\r", victim->name);
    }
  send_to_char (buf, ch);
  sprintf (buf, "Str: %d.  Int: %d.  Wis: %d.  Dex: %d.  Con: %d.\n\r",
	   con_str, con_int, con_wis, con_dex, con_con);
  send_to_char (buf, ch);
  sprintf (buf,
	   "Life Essence: %d/%d, Mystical Power: %d/%d, Vitality: %d/%d.\n\r",
	   con_hp, con_max_hp, con_mana, con_max_mana, con_move,
	   con_max_move);
  send_to_char (buf, ch);
  sprintf (buf, "Hitroll: %d, Damroll: %d, AC: %d.\n\r",
	   con_hit, con_dam, con_ac);
  send_to_char (buf, ch);
  if (!IS_NPC (victim))
    {
      sprintf (buf, "Status: %d, ", victim->race);
      send_to_char (buf, ch);
    }
  sprintf (buf, "Alignment: %d.\n\r", victim->alignment);
  send_to_char (buf, ch);
  if (!IS_NPC (victim) && IS_EXTRA (victim, EXTRA_PREGNANT))
    act ("$N is pregnant.", ch, NULL, victim, TO_CHAR);
  if (!IS_NPC (victim) && IS_VAMPIRE (victim)
      && victim->pcdata->diableries[DIAB_EVER] >= 5)
    act ("$N's soul is permanently stained with multiple diablerie.", ch,
	 NULL, victim, TO_CHAR);
  if (!IS_NPC (victim) && IS_VAMPIRE (victim)
      && victim->pcdata->diableries[DIAB_TIME] > 0)
    act ("$N has recently committed diablerie.", ch, NULL, victim, TO_CHAR);
  if (!IS_NPC (victim) && IS_MORE (victim, MORE_INFORM))
    {
      if (ch->pcdata->lie == LIE_TRUE)
	act ("$N has recently lied.", ch, NULL, victim, TO_CHAR);
      else
	act ("$N has recently spoken truthfully.", ch, NULL, victim, TO_CHAR);
    }
  if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
    {
      guardian_message (victim);
      act ("$n just used Read Aura on you.", ch, NULL, victim, TO_VICT);
    }
  return;
}

void
do_mortalvamp (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];
  int disc;
  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;
  if (IS_VAMPIRE (ch) || IS_GHOUL (ch))
    {
      for (disc = DISC_ANIMALISM; disc <= DISC_VICISSITUDE; disc++)
	ch->pcdata->powers_mod[disc] += 10;
      if (IS_EXTRA (ch, EXTRA_NO_ACTION))
	{
	  if (IS_MORE (ch, MORE_PROJECTION))
	    do_projection (ch, "");
	}
      if (IS_VAMPAFF (ch, VAM_EARTHMELDED))
	do_earthmeld (ch, "");
      if (IS_MORE (ch, MORE_MUMMIFIED))
	do_mummify (ch, "");
      if (IS_MORE (ch, MORE_PLASMA))
	do_plasmaform (ch, "");
      if (IS_MORE (ch, MORE_ASHES))
	do_ashes (ch, "");
      if (IS_EXTRA (ch, EXTRA_AWE))
	do_awe (ch, "");
      if (IS_MORE (ch, MORE_GUARDIAN))
	do_spiritguardian (ch, "");
      if (IS_ITEMAFF (ch, ITEMA_PEACE))
	do_majesty (ch, "");
      if (get_disc (ch, DISC_AUSPEX) >= 3)
	do_unveil (ch, "self");
      if (IS_POLYAFF (ch, POLY_ZULO))
	do_zuloform (ch, "");
      if (IS_POLYAFF (ch, POLY_MASK))
	do_mask (ch, "self");
      if (IS_POLYAFF (ch, POLY_TRUE))
	do_truedisguise (ch, "self");
      if (IS_POLYAFF (ch, POLY_HAGS))
	do_mask (ch, "self");
      if (IS_POLYAFF (ch, POLY_CHANGELING))
	do_mask (ch, "self");
      if (IS_POLYAFF (ch, POLY_FLESHCRAFT))
	do_mask (ch, "self");
      if (IS_POLYAFF (ch, POLY_BONECRAFT))
	do_mask (ch, "self");
      if (IS_VAMPAFF (ch, VAM_CHANGED))
	do_change (ch, "human");
      if (IS_POLYAFF (ch, POLY_SERPENT))
	do_serpent (ch, "");
      if (IS_POLYAFF (ch, POLY_SHADOW))
	do_shadowbody (ch, "");
      if (IS_VAMPAFF (ch, VAM_DISGUISED))
	{
	  REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
	  REMOVE_BIT (ch->vampaff, VAM_DISGUISED);
	  REMOVE_BIT (ch->extra, EXTRA_VICISSITUDE);
	  REMOVE_BIT (ch->polyaff, POLY_SPIRIT);
	  free_string (ch->morph);
	  ch->morph = str_dup ("");
	  free_string (ch->long_descr);
	  ch->morph = str_dup ("");
	}
      if (IS_IMMUNE (ch, IMM_SHIELDED))
	do_shield (ch, "");
      if (IS_AFFECTED (ch, AFF_SHADOWPLANE))
	do_shadowplane (ch, "");
      if (IS_VAMPAFF (ch, VAM_FANGS))
	do_fangs (ch, "");
      if (IS_VAMPAFF (ch, VAM_CLAWS))
	do_claws (ch, "");
      if (IS_MORE (ch, MORE_HAND_FLAME))
	do_hand (ch, "");
      if (IS_VAMPAFF (ch, VAM_SPIRITEYES))
	do_spiriteyes (ch, "");
      if (IS_VAMPAFF (ch, VAM_NIGHTSIGHT))
	do_nightsight (ch, "");
      if (IS_AFFECTED (ch, AFF_SHADOWSIGHT))
	do_shadowsight (ch, "");
      if (IS_SET (ch->act, PLR_HOLYLIGHT))
	do_truesight (ch, "");
      if (IS_VAMPAFF (ch, VAM_OBFUSCATE))
	do_vanish (ch, "");
      if (IS_MORE (ch, MORE_SILENCE))
	do_silencedeath (ch, "");
      if (IS_MORE (ch, MORE_DARKNESS))
	do_shroudnight (ch, "");
      if (IS_MORE (ch, MORE_REINA))
	do_reina (ch, "");
      if (IS_MORE (ch, MORE_OBEAH))
	{
	  ch->pcdata->obeah = 0;
	  do_obeah (ch, "");
	}
      if (IS_MORE (ch, MORE_NEUTRAL))
	do_neutral (ch, "");
      ch->pcdata->wolf = 0;
      ch->pcdata->vamprage = 0;
      for (disc = DISC_ANIMALISM; disc <= DISC_VICISSITUDE; disc++)
	ch->pcdata->powers_mod[disc] -= 10;
    }
  return;
}

void
do_shield (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;
  if (!IS_KAHN (ch) && !IS_DJINN (ch) && !IS_DRAGON (ch) && !IS_MAGE (ch)
      && !IS_HL (ch) && get_disc (ch, DISC_OBFUSCATE) < 4
      && get_tribe (ch, TRIBE_SILVER_FANGS) < 4)
    {
      if (IS_ABOMINATION (ch))
	send_to_char
	  ("You require level 4 Obfuscate or Silver Fangs to Shield your aura.\n\r",
	   ch);
      else if (IS_WEREWOLF (ch))
	send_to_char
	  ("You require level 4 Silver Fangs to Shield your aura.\n\r", ch);
      else
	send_to_char
	  ("You require level 4 Obfuscate to Shield your aura.\n\r", ch);
      return;
    }
  if (IS_MAGE (ch) && !IS_LICH (ch)
      && (ch->spheres[MCOR] < 2 && ch->spheres[MMIN] < 1))
    {
      send_to_char
	("You must obtain level two correspondence to shield your being.\n\r",
	 ch);
      return;
    }
  if (IS_HL (ch) && !IS_QUICK (ch, QUICKENING_SENSE))
    {
      send_to_char ("You have yet to gain that power.\n\r", ch);
      return;
    }
  if (IS_KAHN (ch))
    {
      if (ch->pcdata->powers[KAHN_RANKS] < 3)
	{
	  send_to_char
	    ("You require level 3 Ranks mastery to use the shield.\n\r", ch);
	  return;
	}
    }

  if (!IS_IMMUNE (ch, IMM_SHIELDED))
    {
      send_to_char ("You shield your aura from those around you.\n\r", ch);
      SET_BIT (ch->immune, IMM_SHIELDED);
      return;
    }
  send_to_char ("You stop shielding your aura.\n\r", ch);
  REMOVE_BIT (ch->immune, IMM_SHIELDED);
  return;
}

void
do_serpent (CHAR_DATA * ch, char *argument)
{
  char buf[MSL];

  if (IS_NPC (ch))
    return;

  if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (get_disc (ch, DISC_SERPENTIS) < 3)
    {
      send_to_char
	("You require level 3 Serpentis to transform into Serpent Form.\n\r",
	 ch);
      return;
    }

  if (IS_AFFECTED (ch, AFF_POLYMORPH))
    {
      if (!IS_POLYAFF (ch, POLY_SERPENT))
	{
	  send_to_char ("You cannot polymorph from this form.\n\r", ch);
	  return;
	}
      act ("You transform back into human.", ch, NULL, NULL, TO_CHAR);
      act ("$n transforms into human form.", ch, NULL, NULL, TO_ROOM);
      REMOVE_BIT (ch->polyaff, POLY_SERPENT);
      REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
      clear_stats (ch);
      free_string (ch->morph);
      ch->morph = str_dup ("");
      return;
    }
  SET_BIT (ch->polyaff, POLY_SERPENT);
  clear_stats (ch);
  if (ch->stance[0] != -1)
    do_stance (ch, "");
  if (ch->mounted == IS_RIDING)
    do_dismount (ch, "");
  act ("You transform into a huge serpent.", ch, NULL, NULL, TO_CHAR);
  act ("$n transforms into a huge serpent.", ch, NULL, NULL, TO_ROOM);
  SET_BIT (ch->affected_by, AFF_POLYMORPH);
  sprintf (buf, "%s the huge serpent", ch->name);
  free_string (ch->morph);
  ch->morph = str_dup (buf);
  return;
}

void
poison_weapon (CHAR_DATA * ch, OBJ_DATA * obj)
{
  if (obj->item_type != ITEM_WEAPON)
    {
      send_to_char ("You can only poison weapons.\n\r", ch);
      return;
    }
  if (obj->value[0] != 0)
    {
      send_to_char ("This weapon cannot be poisoned.\n\r", ch);
      return;
    }
  act ("You run your long serpentine tongue along $p, poisoning it.", ch, obj,
       NULL, TO_CHAR);
  act ("$n runs $s long serpentine tongue along $p, poisoning it.", ch, obj,
       NULL, TO_ROOM);
  obj->value[0] = 53;
  return;
}

void
do_regenerate (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];
  int regen;

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_VAMPIRE (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (ch->pcdata->vamprage > 0 && !IS_ABOMINATION (ch))
    {
      send_to_char
	("You cannot control your regenerative powers while the beast is so strong.\n\r",
	 ch);
      return;
    }

  if (arg[0] == '\0')
    {
      if (ch->pcdata->regenerate > 0)
	{
	  send_to_char ("You stop your body regenerating.\n\r", ch);
	  ch->pcdata->regenerate = 0;
	  return;
	}
      else
	regen = 1;
    }
  else if ((regen = is_number (arg) ? atoi (arg) : 1) < 1 || regen > 10)
    {
      send_to_char ("Please enter a number between 1 and 10.\n\r", ch);
      return;
    }


  if (ch->blood[BLOOD_CURRENT] < 5)
    {
      send_to_char ("You have insufficient blood to regenerate.\n\r", ch);
      return;
    }

  if (ch->hit >= ch->max_hit && ch->mana >= ch->max_mana
      && ch->move >= ch->max_move)
    {
      send_to_char ("Your body doesn't require regeneration.\n\r", ch);
      return;
    }

  ch->pcdata->regenerate = regen;
  send_to_char ("You begin regenerating yourself.\n\r", ch);
  return;
}


void
reg_mend (CHAR_DATA * ch)
{
  int ribs = 0;
  int teeth = 0;

  if (IS_BODY (ch, BROKEN_RIBS_1))
    ribs += 1;
  if (IS_BODY (ch, BROKEN_RIBS_2))
    ribs += 2;
  if (IS_BODY (ch, BROKEN_RIBS_4))
    ribs += 4;
  if (IS_BODY (ch, BROKEN_RIBS_8))
    ribs += 8;
  if (IS_BODY (ch, BROKEN_RIBS_16))
    ribs += 16;
  if (IS_HEAD (ch, LOST_TOOTH_1))
    teeth += 1;
  if (IS_HEAD (ch, LOST_TOOTH_2))
    teeth += 2;
  if (IS_HEAD (ch, LOST_TOOTH_4))
    teeth += 4;
  if (IS_HEAD (ch, LOST_TOOTH_8))
    teeth += 8;
  if (IS_HEAD (ch, LOST_TOOTH_16))
    teeth += 16;

  if (ribs > 0)
    {
      if (IS_BODY (ch, BROKEN_RIBS_1))
	REMOVE_BIT (ch->loc_hp[1], BROKEN_RIBS_1);
      if (IS_BODY (ch, BROKEN_RIBS_2))
	REMOVE_BIT (ch->loc_hp[1], BROKEN_RIBS_2);
      if (IS_BODY (ch, BROKEN_RIBS_4))
	REMOVE_BIT (ch->loc_hp[1], BROKEN_RIBS_4);
      if (IS_BODY (ch, BROKEN_RIBS_8))
	REMOVE_BIT (ch->loc_hp[1], BROKEN_RIBS_8);
      if (IS_BODY (ch, BROKEN_RIBS_16))
	REMOVE_BIT (ch->loc_hp[1], BROKEN_RIBS_16);
      ribs -= 1;
      if (ribs >= 16)
	{
	  ribs -= 16;
	  SET_BIT (ch->loc_hp[1], BROKEN_RIBS_16);
	}
      if (ribs >= 8)
	{
	  ribs -= 8;
	  SET_BIT (ch->loc_hp[1], BROKEN_RIBS_8);
	}
      if (ribs >= 4)
	{
	  ribs -= 4;
	  SET_BIT (ch->loc_hp[1], BROKEN_RIBS_4);
	}
      if (ribs >= 2)
	{
	  ribs -= 2;
	  SET_BIT (ch->loc_hp[1], BROKEN_RIBS_2);
	}
      if (ribs >= 1)
	{
	  ribs -= 1;
	  SET_BIT (ch->loc_hp[1], BROKEN_RIBS_1);
	}
      act ("One of $n's ribs snap back into place.", ch, NULL, NULL, TO_ROOM);
      act ("One of your ribs snap back into place.", ch, NULL, NULL, TO_CHAR);
    }
  else if (IS_HEAD (ch, LOST_EYE_L))
    {
      act ("An eyeball appears in $n's left eye socket.", ch, NULL, NULL,
	   TO_ROOM);
      act ("An eyeball appears in your left eye socket.", ch, NULL, NULL,
	   TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_HEAD], LOST_EYE_L);
    }
  else if (IS_HEAD (ch, LOST_EYE_R))
    {
      act ("An eyeball appears in $n's right eye socket.", ch, NULL, NULL,
	   TO_ROOM);
      act ("An eyeball appears in your right eye socket.", ch, NULL, NULL,
	   TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_HEAD], LOST_EYE_R);
    }
  else if (IS_HEAD (ch, LOST_EAR_L))
    {
      act ("An ear grows on the left side of $n's head.", ch, NULL, NULL,
	   TO_ROOM);
      act ("An ear grows on the left side of your head.", ch, NULL, NULL,
	   TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_HEAD], LOST_EAR_L);
    }
  else if (IS_HEAD (ch, LOST_EAR_R))
    {
      act ("An ear grows on the right side of $n's head.", ch, NULL, NULL,
	   TO_ROOM);
      act ("An ear grows on the right side of your head.", ch, NULL, NULL,
	   TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_HEAD], LOST_EAR_R);
    }
  else if (IS_HEAD (ch, LOST_NOSE))
    {
      act ("A nose grows on the front of $n's face.", ch, NULL, NULL,
	   TO_ROOM);
      act ("A nose grows on the front of your face.", ch, NULL, NULL,
	   TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_HEAD], LOST_NOSE);
      REMOVE_BIT (ch->loc_hp[LOC_HEAD], BROKEN_NOSE);
    }
  else if (teeth > 0)
    {
      if (IS_HEAD (ch, LOST_TOOTH_1))
	REMOVE_BIT (ch->loc_hp[LOC_HEAD], LOST_TOOTH_1);
      if (IS_HEAD (ch, LOST_TOOTH_2))
	REMOVE_BIT (ch->loc_hp[LOC_HEAD], LOST_TOOTH_2);
      if (IS_HEAD (ch, LOST_TOOTH_4))
	REMOVE_BIT (ch->loc_hp[LOC_HEAD], LOST_TOOTH_4);
      if (IS_HEAD (ch, LOST_TOOTH_8))
	REMOVE_BIT (ch->loc_hp[LOC_HEAD], LOST_TOOTH_8);
      if (IS_HEAD (ch, LOST_TOOTH_16))
	REMOVE_BIT (ch->loc_hp[LOC_HEAD], LOST_TOOTH_16);
      teeth -= 1;
      if (teeth >= 16)
	{
	  teeth -= 16;
	  SET_BIT (ch->loc_hp[LOC_HEAD], LOST_TOOTH_16);
	}
      if (teeth >= 8)
	{
	  teeth -= 8;
	  SET_BIT (ch->loc_hp[LOC_HEAD], LOST_TOOTH_8);
	}
      if (teeth >= 4)
	{
	  teeth -= 4;
	  SET_BIT (ch->loc_hp[LOC_HEAD], LOST_TOOTH_4);
	}
      if (teeth >= 2)
	{
	  teeth -= 2;
	  SET_BIT (ch->loc_hp[LOC_HEAD], LOST_TOOTH_2);
	}
      if (teeth >= 1)
	{
	  teeth -= 1;
	  SET_BIT (ch->loc_hp[LOC_HEAD], LOST_TOOTH_1);
	}
      act ("A missing tooth grows in your mouth.", ch, NULL, NULL, TO_CHAR);
      act ("A missing tooth grows in $n's mouth.", ch, NULL, NULL, TO_ROOM);
    }
  else if (IS_HEAD (ch, BROKEN_NOSE))
    {
      act ("$n's nose snaps back into place.", ch, NULL, NULL, TO_ROOM);
      act ("Your nose snaps back into place.", ch, NULL, NULL, TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_HEAD], BROKEN_NOSE);
    }
  else if (IS_HEAD (ch, BROKEN_JAW))
    {
      act ("$n's jaw snaps back into place.", ch, NULL, NULL, TO_ROOM);
      act ("Your jaw snaps back into place.", ch, NULL, NULL, TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_HEAD], BROKEN_JAW);
    }
  else if (IS_HEAD (ch, BROKEN_SKULL))
    {
      act ("$n's skull knits itself back together.", ch, NULL, NULL, TO_ROOM);
      act ("Your skull knits itself back together.", ch, NULL, NULL, TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_HEAD], BROKEN_SKULL);
    }
  else if (IS_BODY (ch, BROKEN_SPINE))
    {
      act ("$n's spine knits itself back together.", ch, NULL, NULL, TO_ROOM);
      act ("Your spine knits itself back together.", ch, NULL, NULL, TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_BODY], BROKEN_SPINE);
    }
  else if (IS_BODY (ch, BROKEN_NECK))
    {
      act ("$n's neck snaps back into place.", ch, NULL, NULL, TO_ROOM);
      act ("Your neck snaps back into place.", ch, NULL, NULL, TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_BODY], BROKEN_NECK);
    }
  else if (IS_ARM_L (ch, LOST_ARM))
    {
      act ("An arm grows from the stump of $n's left shoulder.", ch, NULL,
	   NULL, TO_ROOM);
      act ("An arm grows from the stump of your left shoulder.", ch, NULL,
	   NULL, TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_ARM_L], LOST_ARM);
      REMOVE_BIT (ch->loc_hp[LOC_ARM_L], BROKEN_ARM);
      SET_BIT (ch->loc_hp[LOC_ARM_L], LOST_HAND);
    }
  else if (IS_ARM_R (ch, LOST_ARM))
    {
      act ("An arm grows from the stump of $n's right shoulder.", ch, NULL,
	   NULL, TO_ROOM);
      act ("An arm grows from the stump of your right shoulder.", ch, NULL,
	   NULL, TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_ARM_R], LOST_ARM);
      REMOVE_BIT (ch->loc_hp[LOC_ARM_R], BROKEN_ARM);
      SET_BIT (ch->loc_hp[LOC_ARM_R], LOST_HAND);
    }
  else if (IS_LEG_L (ch, LOST_LEG))
    {
      act ("A leg grows from the stump of $n's left hip.", ch, NULL, NULL,
	   TO_ROOM);
      act ("A leg grows from the stump of your left hip.", ch, NULL, NULL,
	   TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_LEG_L], LOST_LEG);
      REMOVE_BIT (ch->loc_hp[LOC_LEG_L], BROKEN_LEG);
      SET_BIT (ch->loc_hp[LOC_LEG_L], LOST_FOOT);
    }
  else if (IS_LEG_R (ch, LOST_LEG))
    {
      act ("A leg grows from the stump of $n's right hip.", ch, NULL, NULL,
	   TO_ROOM);
      act ("A leg grows from the stump of your right hip.", ch, NULL, NULL,
	   TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_LEG_R], LOST_LEG);
      REMOVE_BIT (ch->loc_hp[LOC_LEG_R], BROKEN_LEG);
      SET_BIT (ch->loc_hp[LOC_LEG_R], LOST_FOOT);
    }
  else if (IS_ARM_L (ch, BROKEN_ARM))
    {
      act ("$n's left arm snaps back into place.", ch, NULL, NULL, TO_ROOM);
      act ("Your left arm snaps back into place.", ch, NULL, NULL, TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_ARM_L], BROKEN_ARM);
    }
  else if (IS_ARM_R (ch, BROKEN_ARM))
    {
      act ("$n's right arm snaps back into place.", ch, NULL, NULL, TO_ROOM);
      act ("Your right arm snaps back into place.", ch, NULL, NULL, TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_ARM_R], BROKEN_ARM);
    }
  else if (IS_LEG_L (ch, BROKEN_LEG))
    {
      act ("$n's left leg snaps back into place.", ch, NULL, NULL, TO_ROOM);
      act ("Your left leg snaps back into place.", ch, NULL, NULL, TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_LEG_L], BROKEN_LEG);
    }
  else if (IS_LEG_R (ch, BROKEN_LEG))
    {
      act ("$n's right leg snaps back into place.", ch, NULL, NULL, TO_ROOM);
      act ("Your right leg snaps back into place.", ch, NULL, NULL, TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_LEG_R], BROKEN_LEG);
    }
  else if (IS_ARM_L (ch, LOST_HAND))
    {
      act ("A hand grows from the stump of $n's left wrist.", ch, NULL, NULL,
	   TO_ROOM);
      act ("A hand grows from the stump of your left wrist.", ch, NULL, NULL,
	   TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_ARM_L], LOST_HAND);
      SET_BIT (ch->loc_hp[LOC_ARM_L], LOST_THUMB);
      SET_BIT (ch->loc_hp[LOC_ARM_L], LOST_FINGER_I);
      SET_BIT (ch->loc_hp[LOC_ARM_L], LOST_FINGER_M);
      SET_BIT (ch->loc_hp[LOC_ARM_L], LOST_FINGER_R);
      SET_BIT (ch->loc_hp[LOC_ARM_L], LOST_FINGER_L);
    }
  else if (IS_ARM_R (ch, LOST_HAND))
    {
      act ("A hand grows from the stump of $n's right wrist.", ch, NULL, NULL,
	   TO_ROOM);
      act ("A hand grows from the stump of your right wrist.", ch, NULL, NULL,
	   TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_ARM_R], LOST_HAND);
      SET_BIT (ch->loc_hp[LOC_ARM_R], LOST_THUMB);
      SET_BIT (ch->loc_hp[LOC_ARM_R], LOST_FINGER_I);
      SET_BIT (ch->loc_hp[LOC_ARM_R], LOST_FINGER_M);
      SET_BIT (ch->loc_hp[LOC_ARM_R], LOST_FINGER_R);
      SET_BIT (ch->loc_hp[LOC_ARM_R], LOST_FINGER_L);
    }
  else if (IS_LEG_L (ch, LOST_FOOT))
    {
      act ("A foot grows from the stump of $n's left ankle.", ch, NULL, NULL,
	   TO_ROOM);
      act ("A foot grows from the stump of your left ankle.", ch, NULL, NULL,
	   TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_LEG_L], LOST_FOOT);
    }
  else if (IS_LEG_R (ch, LOST_FOOT))
    {
      act ("A foot grows from the stump of $n's right ankle.", ch, NULL, NULL,
	   TO_ROOM);
      act ("A foot grows from the stump of your right ankle.", ch, NULL, NULL,
	   TO_CHAR);
      REMOVE_BIT (ch->loc_hp[LOC_LEG_R], LOST_FOOT);
    }
  else if (IS_ARM_L (ch, LOST_THUMB))
    {
      act ("A thumb slides out of $n's left hand.", ch, NULL, NULL, TO_ROOM);
      act ("A thumb slides out of your left hand.", ch, NULL, NULL, TO_CHAR);

Showing the first 100 KB of 390.8 KB. Download the archive for the full file.

Site Stats

Snippets: 1791
Codebases: 571