wraith.c

demise/src/wraith.c · 111.4 KB

From the archive dodbackup-final.tar.gz

Download the archive   « Back to the archive contents

/****************************************************
 * All contents in this file created by Nephesch.   *
 * Except Skinride,Oubliette, courtesy of Paithan   *
 * However, all material is free for use as long as *
 * you give me some credit. As far as I know this   *
 * is the most accurate coding of the White Wolf    *
 * Wraith class. Have fun everyone.     ~           *
 ****************************************************/

#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"
#include "dragon.h"

char *
write_arcanoi (CHAR_DATA * ch, int sel, int lvl)
{
  static char buf[400];
  switch (sel)
    {
    default:
      sprintf (buf, "                      ");
      break;
    case WRA_ARGO:
      sprintf (buf, "Argos       : #7%d#n     ", lvl);
      break;
    case WRA_PAND:
      sprintf (buf, "Pandemonium : #7%d#n   ", lvl);
      break;
    case WRA_EMBO:
      sprintf (buf, "Embody      : #7%d#n     ", lvl);
      break;
    case WRA_INHA:
      sprintf (buf, "Inhabit     : #7%d#n     ", lvl);
      break;
    case WRA_KEEN:
      sprintf (buf, "Keening     : #7%d#n   ", lvl);
      break;
    case WRA_MOLI:
      sprintf (buf, "Moliate     : #7%d#n     ", lvl);
      break;
    case WRA_CAST:
      sprintf (buf, "Castigate   : #7%d#n   ", lvl);
      break;
    case WRA_PUPP:
      sprintf (buf, "Puppetry    : #7%d#n     ", lvl);
      break;
    case WRA_USUR:
      sprintf (buf, "Usury       : #7%d#n     ", lvl);
      break;
    case WRA_OUTR:
      sprintf (buf, "Outrage     : #7%d#n   ", lvl);
      break;
    case WRA_PHAN:
      sprintf (buf, "Phantasm    : #7%d#n   ", lvl);
      break;
    }
  return buf;
}

void
argos_arcanoi (CHAR_DATA * ch)
{
  if (IS_NPC (ch))
    return;

  if (ch->pcdata->powers[WRA_ARGO] == 0)
    {
      send_to_char ("#G None#n\n\r", ch);
      return;
    }

  if (ch->pcdata->powers[WRA_ARGO] >= 1)
    send_to_char ("#G jump", ch);
  if (ch->pcdata->powers[WRA_ARGO] >= 2)
    send_to_char (" #GPhantomwings", ch);
  if (ch->pcdata->powers[WRA_ARGO] >= 3)
    send_to_char (" #GFlickering", ch);
  if (ch->pcdata->powers[WRA_ARGO] >= 4)
    send_to_char (" #GEnshroud", ch);
  if (ch->pcdata->powers[WRA_ARGO] >= 5)
    send_to_char (" #GOubliette", ch);
  send_to_char ("\n\r", ch);
  return;
}

void
castigate_arcanoi (CHAR_DATA * ch)
{
  if (IS_NPC (ch))
    return;

  if (ch->pcdata->powers[WRA_CAST] == 0)
    {
      send_to_char ("#G None\n\r", ch);
      return;
    }

  if (ch->pcdata->powers[WRA_CAST] >= 1)
    send_to_char (" #GSoulsight", ch);
  if (ch->pcdata->powers[WRA_CAST] >= 2)
    send_to_char (" #GCoax", ch);
  if (ch->pcdata->powers[WRA_CAST] >= 3)
    send_to_char (" #GSecrets", ch);
  if (ch->pcdata->powers[WRA_CAST] >= 4)
    send_to_char (" #GPurify", ch);
  if (ch->pcdata->powers[WRA_CAST] = 5)
    send_to_char (" #GCasting out", ch);
  send_to_char ("\n\r", ch);
  return;
}

void
embody_arcanoi (CHAR_DATA * ch)
{
  if (IS_NPC (ch))
    return;

  if (ch->pcdata->powers[WRA_EMBO] == 0)
    {
      send_to_char ("#G None.\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_EMBO] >= 1)
    send_to_char (" #GPhantommask", ch);
  if (ch->pcdata->powers[WRA_EMBO] >= 2)
    send_to_char (" #GGhostly touch", ch);
  if (ch->pcdata->powers[WRA_EMBO] >= 3)
    send_to_char (" #GLife-in-death", ch);
  if (ch->pcdata->powers[WRA_EMBO] >= 4)
    send_to_char (" #GAttunement", ch);
  if (ch->pcdata->powers[WRA_EMBO] >= 5)
    send_to_char (" #GShroud", ch);
  send_to_char ("\n\r", ch);
  return;
}

void
inhabit_arcanoi (CHAR_DATA * ch)
{
  if (IS_NPC (ch))
    return;

  if (ch->pcdata->powers[WRA_INHA] == 0)
    {
      send_to_char ("#G None.\n\r", ch);
      return;
    }

  if (ch->pcdata->powers[WRA_INHA] >= 1)
    send_to_char (" #GEmpower", ch);
  if (ch->pcdata->powers[WRA_INHA] >= 2)
    send_to_char (" #GSurge", ch);
  if (ch->pcdata->powers[WRA_INHA] >= 3)
    send_to_char (" #GObjectride", ch);
  if (ch->pcdata->powers[WRA_INHA] >= 4)
    send_to_char (" #GGremlinize", ch);
  if (ch->pcdata->powers[WRA_INHA] >= 5)
    send_to_char (" #GItemjump", ch);
  send_to_char ("\n\r", ch);
  return;
}

void
keening_arcanoi (CHAR_DATA * ch)
{
  if (IS_NPC (ch))
    return;

  if (ch->pcdata->powers[WRA_KEEN] == 0)
    {
      send_to_char (" #GNone.\n\r", ch);
      return;
    }

  if (ch->pcdata->powers[WRA_KEEN] >= 1)
    send_to_char (" #GDirge", ch);
  if (ch->pcdata->powers[WRA_KEEN] >= 2)
    send_to_char (" #GBallad", ch);
  if (ch->pcdata->powers[WRA_KEEN] >= 3)
    send_to_char (" #GMuse", ch);
  if (ch->pcdata->powers[WRA_KEEN] >= 4)
    send_to_char (" #GCrescendo", ch);
  if (ch->pcdata->powers[WRA_KEEN] >= 5)
    send_to_char (" #GRequiem", ch);
  send_to_char ("\n\r", ch);
  return;
}

void
moliate_arcanoi (CHAR_DATA * ch)
{
  if (IS_NPC (ch))
    return;

  if (ch->pcdata->powers[WRA_MOLI] == 0)
    {
      send_to_char (" #GNone.\n\r", ch);
      return;
    }

  if (ch->pcdata->powers[WRA_MOLI] >= 1)
    send_to_char (" #GBodyshape", ch);
  if (ch->pcdata->powers[WRA_MOLI] >= 2)
    send_to_char (" #GSculpt", ch);
  if (ch->pcdata->powers[WRA_MOLI] >= 3)
    send_to_char (" #GMartialry", ch);
  if (ch->pcdata->powers[WRA_MOLI] >= 4)
    send_to_char (" #GRend", ch);
  if (ch->pcdata->powers[WRA_MOLI] >= 5)
    send_to_char (" #GImitate", ch);
  send_to_char ("\n\r", ch);
  return;
}

void
outrage_arcanoi (CHAR_DATA * ch)
{
  if (IS_NPC (ch))
    return;

  if (ch->pcdata->powers[WRA_OUTR] == 0)
    {
      send_to_char (" #GNone.\n\r", ch);
      return;
    }

  if (ch->pcdata->powers[WRA_OUTR] >= 1)
    send_to_char (" #GPinging", ch);
  if (ch->pcdata->powers[WRA_OUTR] >= 2)
    send_to_char (" #GWraithgrasp", ch);
  if (ch->pcdata->powers[WRA_OUTR] >= 3)
    send_to_char (" #GStonehand", ch);
  if (ch->pcdata->powers[WRA_OUTR] >= 4)
    send_to_char (" #GPyro", ch);
  if (ch->pcdata->powers[WRA_OUTR] >= 5)
    send_to_char (" #GObliviate", ch);
  if (ch->pcdata->powers[WRA_OUTR] >= 6)
    send_to_char (" #GDeathshield", ch);

  if (ch->pcdata->powers[WRA_OUTR] >= 10)
    send_to_char (" #GDeathbeast", ch);

  send_to_char ("\n\r", ch);
  return;
}

void
pandemonium_arcanoi (CHAR_DATA * ch)
{
  if (IS_NPC (ch))
    return;

  if (ch->pcdata->powers[WRA_PAND] == 0)
    {
      send_to_char (" #GNone.\n\r", ch);
      return;
    }

  if (ch->pcdata->powers[WRA_PAND] >= 1)
    send_to_char (" #GWeirdness", ch);
  if (ch->pcdata->powers[WRA_PAND] >= 2)
    send_to_char (" #GBefuddlement", ch);
  if (ch->pcdata->powers[WRA_PAND] >= 3)
    send_to_char (" #GEther", ch);
  if (ch->pcdata->powers[WRA_PAND] >= 4)
    send_to_char (" #GFoulhumor", ch);
  if (ch->pcdata->powers[WRA_PAND] >= 5)
    send_to_char (" #GTempus", ch);
  send_to_char ("\n\r", ch);
  return;
}

void
phantasm_arcanoi (CHAR_DATA * ch)
{
  if (IS_NPC (ch))
    return;

  if (ch->pcdata->powers[WRA_PHAN] == 0)
    {
      send_to_char (" #GNone.\n\r", ch);
      return;
    }

  if (ch->pcdata->powers[WRA_PHAN] >= 1)
    send_to_char (" #GAgon", ch);
  if (ch->pcdata->powers[WRA_PHAN] >= 2)
    send_to_char (" #GLucidity", ch);
  if (ch->pcdata->powers[WRA_PHAN] >= 3)
    send_to_char (" #GDreams", ch);
  if (ch->pcdata->powers[WRA_PHAN] >= 4)
    send_to_char (" #GPhantasmagoria", ch);
  if (ch->pcdata->powers[WRA_PHAN] >= 5)
    send_to_char (" #GElysia", ch);
  send_to_char ("\n\r", ch);
  return;
}

void
puppetry_arcanoi (CHAR_DATA * ch)
{
  if (IS_NPC (ch))
    return;

  if (ch->pcdata->powers[WRA_PUPP] == 0)
    {
      send_to_char (" #GNone.\n\r", ch);
      return;
    }

  if (ch->pcdata->powers[WRA_PUPP] >= 1)
    send_to_char (" #GSkinride", ch);
  if (ch->pcdata->powers[WRA_PUPP] >= 2)
    send_to_char (" #GSudden", ch);
  if (ch->pcdata->powers[WRA_PUPP] >= 3)
    send_to_char (" #GMastervoice", ch);
  if (ch->pcdata->powers[WRA_PUPP] >= 4)
    send_to_char (" #GRein", ch);
  if (ch->pcdata->powers[WRA_PUPP] >= 5)
    send_to_char (" #GObliterate", ch);
  send_to_char ("\n\r", ch);
  return;
}

void
usury_arcanoi (CHAR_DATA * ch)
{
  if (IS_NPC (ch))
    return;

  if (ch->pcdata->powers[WRA_USUR] == 0)
    {
      send_to_char (" #GNone.\n\r", ch);
      return;
    }

  if (ch->pcdata->powers[WRA_USUR] >= 1)
    send_to_char (" #GTransfering", ch);
  if (ch->pcdata->powers[WRA_USUR] >= 2)
    send_to_char (" #GCharitable", ch);
  if (ch->pcdata->powers[WRA_USUR] >= 3)
    send_to_char (" #GInvestment", ch);
  if (ch->pcdata->powers[WRA_USUR] >= 4)
    send_to_char (" #GExchange", ch);
  if (ch->pcdata->powers[WRA_USUR] >= 5)
    send_to_char (" #GWithdrawl", ch);
  send_to_char ("\n\r", ch);
  return;
}

void
do_wraithpowers (CHAR_DATA * ch, char *argument)
{


  if (IS_NPC (ch))
    return;

  if (IS_WRAITH (ch))
    {
      if (!IS_REVENANT (ch))
	{
	  send_to_char
	    ("#o--------------------------------------------------------------------\n\r",
	     ch);
	  send_to_char
	    ("#R                       >#y|#R<#7 Wraith Powers #R>#y|#R<#n                        \n\r",
	     ch);
	  send_to_char
	    ("#o--------------------------------------------------------------------\n\r",
	     ch);
	}
      send_to_char ("#7Argos:      ", ch);
      argos_arcanoi (ch);
      send_to_char ("#7Castigate:  ", ch);
      castigate_arcanoi (ch);
      send_to_char ("#7Embody:     ", ch);
      embody_arcanoi (ch);
      send_to_char ("#7Inhabit:    ", ch);
      inhabit_arcanoi (ch);
      send_to_char ("#7Keening:    ", ch);
      keening_arcanoi (ch);
      send_to_char ("#7Moliate:    ", ch);
      moliate_arcanoi (ch);
      send_to_char ("#7Outrage:    ", ch);
      outrage_arcanoi (ch);
      send_to_char ("#7Pandemonium:", ch);
      pandemonium_arcanoi (ch);
      send_to_char ("#7Puppetry:   ", ch);
      puppetry_arcanoi (ch);
      send_to_char ("#7Phantasm:   ", ch);
      phantasm_arcanoi (ch);
      send_to_char ("#7Usury:      ", ch);
      usury_arcanoi (ch);
      if (!IS_REVENANT (ch))
	{
	  send_to_char
	    ("#o--------------------------------------------------------------------\n\r",
	     ch);
	}
      return;
    }
  send_to_char ("Huh?\n\r", ch);
  return;
}

/* To increase powers */
void do_fixwraith (CHAR_DATA *ch, char *argument) {
int i;
for (i = 1; i < 12; i++)
ch->pcdata->powers[i] = 3;
return;
}
void
do_arcanoi (CHAR_DATA * ch, char *argument)
{
  char arg1[MIL];
  char arg2[MIL];
  char buf[MSL];
  int i = 0;
  int x = 0;
  argument = one_argument (argument, arg1);
  argument = one_argument (argument, arg2);

  if (IS_NPC (ch))
    return;

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

  if (arg1[0] == '\0' && arg2[0] == '\0')
    {
      send_to_char
	("#o---------------------------------------------------------\n\r",
	 ch);
      send_to_char
	("#R                     >#y|#R< #7Arcanoi #R>#y|#R<#n                \n\r",
	 ch);
      send_to_char
	("#o---------------------------------------------------------\n\r",
	 ch);
      while (i < 12)
	{
	  if (i != WRA_CAST)
	    sprintf (buf, "#G%s ",
		     write_arcanoi (ch, i, ch->pcdata->powers[i]));
	  else
	    {
	      int c;
	      c = ch->pcdata->powers[i];
	      if (c > 5)
		c = 5;
	      sprintf (buf, "#G%s ", write_arcanoi (ch, i, c));
	    }
	  x++;
	  if (x == 3)
	    {
	      strcat (buf, "\n\r");
	      x = 0;
	    }
	  send_to_char (buf, ch);
	  i++;
	}
      send_to_char
	("#o---------------------------------------------------------\n\r",
	 ch);
      send_to_char ("#7To gain powers: 'arcanoi <power> improve'.\n\r", ch);
      send_to_char
	("#o---------------------------------------------------------\n\r",
	 ch);
      return;
    }
  if (arg2[0] == '\0')
    {
      if (!str_cmp (arg1, "argos"))
	{
	  send_to_char ("Argos: The arcanoi of movement.\n\r", ch);
	  if (ch->pcdata->powers[WRA_ARGO] < 1)
	    send_to_char ("You have none of the Argos arcanoi.\n\r", ch);
	  if (ch->pcdata->powers[WRA_ARGO] > 0)
	    send_to_char ("Enshroud: have the ability to disappear.\n\r", ch);
	  return;
	}
      else if (!str_cmp (arg1, "castigate"))
	{
	  send_to_char ("Castigate: The arcanoi of control.\n\r", ch);
	  return;
	}
      else if (!str_cmp (arg1, "embody"))
	{
	  send_to_char ("Embody: The arcanoi of entering material plane.\n\r",
			ch);
	  return;
	}
      else if (!str_cmp (arg1, "inhabit"))
	{
	  send_to_char
	    ("Inhabit: The arcanoi of relations with non-living objects.\n\r",
	     ch);
	  return;
	}
      else if (!str_cmp (arg1, "keening"))
	{
	  send_to_char ("Keening: The arcanoi of sight beyond sight.\n\r",
			ch);
	  return;
	}

      else if (!str_cmp (arg1, "moliate"))
	{
	  send_to_char ("Moliate: The arcanoi of flesh-shaping.\n\r", ch);
	  return;
	}
      else if (!str_cmp (arg1, "outrage"))
	{
	  send_to_char
	    ("Outrage: The arcanoi of destruction and material plane interaction.\n\r",
	     ch);
	  return;
	}
      else if (!str_cmp (arg1, "pandemonium"))
	{
	  send_to_char
	    ("Pandemonium: The arcanoi of haunting and weather control.\n\r",
	     ch);
	  return;
	}
      else if (!str_cmp (arg1, "phantasm"))
	{
	  send_to_char ("Phantasm: The arcanoi of dreams.\n\r", ch);
	  return;
	}
      else if (!str_cmp (arg1, "puppetry"))
	{
	  send_to_char ("Puppetry: The arcanoi of possesion.\n\r", ch);
	  return;
	}
      else if (!str_cmp (arg1, "usury"))
	{
	  send_to_char ("Usury: The arcanoi of healing and exchange.\n\r",
			ch);
	  return;
	}
      do_arcanoi (ch, "");
      return;

    }
  if (!str_cmp (arg2, "improve"))
    {
      int improve;
      int cost;
      int max;
      int maxlevel = 5;
     if (ch->class != CLASS_WRAITH)
        maxlevel = 3;
      if (!str_cmp (arg1, "argos"))
	{
	  improve = WRA_ARGO;
	  max = maxlevel;
	}
      else if (!str_cmp (arg1, "castigate"))
	{
	  improve = WRA_CAST;
	  max = maxlevel;
	}
      else if (!str_cmp (arg1, "embody"))
	{
	  improve = WRA_EMBO;
	  max = maxlevel;
	}
      else if (!str_cmp (arg1, "inhabit"))
	{
	  improve = WRA_INHA;
	  max = maxlevel;
	}
      else if (!str_cmp (arg1, "keening"))
	{
	  improve = WRA_KEEN;
	  max = maxlevel;
	}
      else if (!str_cmp (arg1, "moliate"))
	{
	  improve = WRA_MOLI;
	  max = maxlevel;
	}
      else if (!str_cmp (arg1, "outrage"))
	{
	  improve = WRA_OUTR;
	  max = maxlevel;
	  if (IS_BALEHOUND (ch))
	    max = 10;
	}
      else if (!str_cmp (arg1, "pandemonium"))
	{
	  improve = WRA_PAND;
	  max = maxlevel;
	}
      else if (!str_cmp (arg1, "phantasm"))
	{
	  improve = WRA_PHAN;
	  max = maxlevel;
	}
      else if (!str_cmp (arg1, "puppetry"))
	{
	  improve = WRA_PUPP;
	  max = maxlevel;
	}
      else if (!str_cmp (arg1, "usury"))
	{
	  improve = WRA_USUR;
	  max = maxlevel;
	}
      else
	{
	  send_to_char
	    ("You can improve: Argos, Castigate, Embody, Inhabit, Keening, Moliate,\n\r Outrage, Pandemonium, Phantasm, Puppetry, Usury.\n\r",
	     ch);
	  return;
	}
      cost = (ch->pcdata->powers[improve] + 1) * 5000;
      arg1[0] = UPPER (arg1[0]);
      if (ch->pcdata->powers[improve] >= max)
	{
	  sprintf (buf,
		   "You have already gained all the powers of the %s arcanoi.\n\r",
		   arg1);
	  send_to_char (buf, ch);
	  return;
	}
      if (cost > ch->pcdata->power[POWER_CURRENT])
	{
	  sprintf (buf,
		   "It will cost you %d more %s power points to improve your %s arcanoi.\n\r",
		   (cost - ch->pcdata->power[POWER_CURRENT]), get_class (ch),
		   arg1);
	  send_to_char (buf, ch);
	  return;
	}
      ch->pcdata->powers[improve] += 1;
      ch->pcdata->power[POWER_CURRENT] -= cost;
      sprintf (buf, "You improve your ability in the %s arcanoi.\n\r", arg1);
      send_to_char (buf, ch);
    }
  else
    send_to_char
      ("To improve a art, type: arcanoi <arcanoi name> improve.\n\r", ch);
  return;
}

/*
 *Argos arcanoi
 *1. Enshroud
 *2. Phantomwings
 *3. Flickering
 *4. Jump
 *5. Oubliette
 */
void
do_enshroud (CHAR_DATA * ch, char *argument)
{
  if (IS_NPC (ch))
    return;

  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_ARGO] < 4)
    {
      send_to_char ("you need level 1 in Argos to use Enshroud.\n\r", ch);
      return;
    }

  if (!IS_SET (ch->act, PLR_WIZINVIS))
    {
      send_to_char ("You enshroud your corpus with shadows.\n\r", ch);
      act ("$n jumps into the shadows and they seem to swallow $m  whole.",
	   ch, NULL, NULL, TO_ROOM);
      SET_BIT (ch->act, PLR_WIZINVIS);
    }
  else
    {
      REMOVE_BIT (ch->act, PLR_WIZINVIS);

      send_to_char ("You burst from the shadows.\n\r", ch);
      act ("The shadows bulge as $n rips through.", ch, NULL, NULL, TO_ROOM);
    }
  return;
}

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

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_ARGO] < 2)
    {
      send_to_char
	("You must obtain at least level 2 in Argos to use Phantom Wings.\n\r",
	 ch);
      return;
    }


  if (arg[0] != '\0')
    {
      if (!IS_MOD (ch, DEM_WINGS))
	{
	  send_to_char ("First you better get your wings out!\n\r", ch);
	  return;
	}
      if (!str_cmp (arg, "unfold") || !str_cmp (arg, "u"))
	{
	  if (IS_MOD (ch, DEM_UNFOLDED))
	    {
	      send_to_char ("But your wings are already unfolded!\n\r", ch);
	      return;
	    }
	  send_to_char ("Your wings unfold from behind your back.\n\r", ch);
	  act ("$n's wings unfold from behind $s back.", ch, NULL, NULL,
	       TO_ROOM);
	  SET_BIT (ch->pcdata->bodymods, DEM_UNFOLDED);
	  return;
	}
      else if (!str_cmp (arg, "fold") || !str_cmp (arg, "f"))
	{
	  if (!IS_MOD (ch, DEM_UNFOLDED))
	    {
	      send_to_char ("But your wings are already folded!\n\r", ch);
	      return;
	    }
	  send_to_char ("Your wings fold up behind your back.\n\r", ch);
	  act ("$n's wings fold up behind $s back.", ch, NULL, NULL, TO_ROOM);
	  REMOVE_BIT (ch->pcdata->bodymods, DEM_UNFOLDED);
	  return;
	}
      else
	{
	  send_to_char ("Do you want to FOLD or UNFOLD your wings?\n\r", ch);
	  return;
	}
    }

  if (IS_MOD (ch, DEM_WINGS))
    {
      if (IS_MOD (ch, DEM_UNFOLDED))
	{
	  send_to_char ("Your wings fold up behind your back.\n\r", ch);
	  act ("$n's wings fold up behind $s back.", ch, NULL, NULL, TO_ROOM);
	  REMOVE_BIT (ch->pcdata->bodymods, DEM_UNFOLDED);
	}
      send_to_char ("Your wings slide into your back.\n\r", ch);
      act ("$n's wings slide into $s back.", ch, NULL, NULL, TO_ROOM);
      REMOVE_BIT (ch->pcdata->bodymods, DEM_WINGS);
      return;
    }
  send_to_char ("Your wings extend from your back.\n\r", ch);
  act ("A pair of wings extend from $n's back.", ch, NULL, NULL, TO_ROOM);
  SET_BIT (ch->pcdata->bodymods, DEM_WINGS);
  return;
}

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

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (IS_WRAITH (ch))
    {
      if (ch->pcdata->powers[WRA_ARGO] < 3)
	{
	  send_to_char
	    ("You must obtain at least level 3 in Argos to use Flickering.\n\r",
	     ch);
	  return;
	}

    }
  else
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (IS_WRAITH (ch) && !str_cmp (arg, "tempest"))
    {
      send_to_char ("You jump into a hole in the nether.\n\r", ch);
      act ("$n jumps into a sinkhole.", ch, NULL, NULL, TO_ROOM);
      char_from_room (ch);
      char_to_room (ch, get_room_index (45901));
      do_look (ch, "");
      send_to_char ("You fall through the Tempest!\n\r", ch);
      act ("$n falls in from nowhere.", ch, NULL, NULL, TO_ROOM);
      return;
    }

  if ((victim = get_char_world (ch, arg)) == NULL)
    {
      send_to_char ("Nobody by that name.\n\r", ch);
      return;
    }
  if (is_inarena (victim))
    return;
  if (is_inarena (ch))
    return;

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

  if (!IS_WRAITH (victim))
    {
      send_to_char ("They are not a Wraith.\n\r", ch);
      return;
    }

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

  if (victim->level != LEVEL_AVATAR)
    {
      send_to_char ("Nothing happens.\n\r", ch);
      return;
    }
  if (victim->in_room == NULL)
    {
      send_to_char ("Nothing happens.\n\r", ch);
      return;
    }

  send_to_char ("You jump through a hole in the nether.\n\r", ch);
  act ("$n leaps through a hole in the nether.", ch, NULL, NULL, TO_ROOM);
  char_from_room (ch);
  char_to_room (ch, victim->in_room);
  do_look (ch, "");
  send_to_char ("You exit the neter.\n\r", ch);
  act ("$n appears through a rip in the nether.", ch, NULL, NULL, TO_ROOM);
  return;
}

void
do_jump (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  OBJ_DATA *obj;
  char arg[MIL];

  one_argument (argument, arg);

  if (IS_NPC (ch))
    return;
  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_ARGO] < 1)
    {
      send_to_char ("You require level 4 in Argos to use Portal Jump.\n\r",
		    ch);
      return;
    }
  if (arg[0] == '\0')
    {
      send_to_char ("Who do you wish to create a portal to?\n\r", ch);
      return;
    }

  if ((victim = get_char_world (ch, arg)) == NULL)
    {
      send_to_char ("They arent here.\n\r", ch);
      return;
    }

  if (is_inarena (victim))
    return;
  if (is_inarena (ch))
    return;
  if (travelsafe (ch, victim))
    return;

  if ((victim == ch)
      || victim->in_room == NULL
      || (!IS_NPC (victim) && !IS_IMMUNE (victim, IMM_SUMMON))
      || IS_SET (ch->in_room->room_flags, ROOM_PRIVATE)
      || IS_SET (ch->in_room->room_flags, ROOM_SOLITARY)
      || IS_SET (ch->in_room->room_flags, ROOM_NO_RECALL)
      || IS_SET (victim->in_room->room_flags, ROOM_PRIVATE)
      || IS_SET (victim->in_room->room_flags, ROOM_SOLITARY)
      || IS_SET (victim->in_room->room_flags, ROOM_NO_RECALL)
      || victim->in_room->vnum == ch->in_room->vnum)
    {
      send_to_char ("You failed.\n\r", ch);
      return;
    }


  obj = create_object (get_obj_index (OBJ_VNUM_PORTAL), 0);
  obj->value[0] = victim->in_room->vnum;
  obj->value[3] = ch->in_room->vnum;
  obj->timer = 10;
  if (IS_AFFECTED (ch, AFF_SHADOWPLANE))
    obj->extra_flags = ITEM_SHADOWPLANE;
  if (IS_NYM (ch, NYM_DEATHPLANE))
    obj->extra_flags = ITEM_DEATHPLANE;
  obj_to_room (obj, ch->in_room);

  obj = create_object (get_obj_index (OBJ_VNUM_PORTAL), 0);
  obj->value[0] = ch->in_room->vnum;
  obj->value[3] = victim->in_room->vnum;
  obj->timer = 5;
  if (IS_AFFECTED (victim, AFF_SHADOWPLANE))
    obj->extra_flags = ITEM_SHADOWPLANE;
  if (IS_NYM (victim, NYM_DEATHPLANE))
    obj->extra_flags = ITEM_DEATHPLANE;
  obj_to_room (obj, victim->in_room);
  act ("A look of concentration passes over $n's face.", ch, NULL, NULL,
       TO_ROOM);
  send_to_char ("A look of concentration passes over your face.\n\r", ch);
  act ("$p appears in front of $n in a blast of putrid smoke.", ch, obj, NULL,
       TO_ROOM);
  act ("$p appears in front of you in a blast of putrid smoke.", ch, obj,
       NULL, TO_CHAR);
  act ("$p appears in front of $n in a blast of putrid smoke.", victim, obj,
       NULL, TO_ROOM);
  if (!IS_NPC (victim))
    act ("$p appears in front of you in a blast of putrid smoke.", ch, obj,
	 victim, TO_VICT);
  return;
}

/* Oubliette isn't coded yet */
/* It is now! */
void
do_oubliette (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];

  argument = one_argument (argument, arg);

  if (!IS_WRAITH (ch))
    {
      do_huh (ch, "");
      return;
    }
  if (ch->pcdata->powers[WRA_ARGO] < 5)
    {
      send_to_char ("You need level 5 in Argos to use Oubliette!\n\r", ch);
      return;
    }
/*
  if (ch->in_room->area->plane != PLANE_LIMBO)
    {
      send_to_char ("You must be in the Limbo!\n\r", ch);
      return;
    }
*/
  if (has_fighttimer (ch))
    return;
  if ((victim = get_char_world (ch, arg)) == NULL)
    {
      send_to_char ("They are not here.\n\r", ch);
      return;
    }

  if (!IS_NPC (victim))
    {
      send_to_char ("Not on players!\n\r", ch);
      return;
    }

  if (travelsafe (ch, victim))
   return;
  char_from_room (ch);
  char_to_room (ch, victim->in_room);
  send_to_char ("You step out of the shadow in front of your victim.\n\r",
		ch);
  do_look (ch, "");
  act ("$n steps out of a shadow.", ch, NULL, NULL, TO_ROOM);
  return;
}

/*
 *Castigate arcanoi
 *1. Soulsight
 *2. Coax
 *3. Secrets
 *4. Purify
 *5. Defiance
 */
void
do_coax (CHAR_DATA * ch, char *argument)
{
  char arg1[MIL];
  char arg2[MIL];
  char buf[MSL];
  char buffy[MSL];
  CHAR_DATA *victim;
  int awe;


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

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

  if (ch->pcdata->powers[WRA_CAST] < 2)
    {
      send_to_char
	("You must obtain at least level 2 in Castigate to use Coax.\n\r",
	 ch);
      return;
    }

  if (arg1[0] == '\0' || arg2[0] == '\0')
    {
      send_to_char ("Coax whom to do what?\n\r", ch);
      return;
    }

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

  if (victim == ch)
    {
      send_to_char ("How can you coax yourself??\n\r", ch);
      return;
    }

  if (IS_WRAITH (ch))
    {
      if (ch->pcdata->powers[WRA_CAST] > 3)
	awe = 75;
      else if (ch->pcdata->powers[WRA_CAST] > 4)
	awe = 100;
      else
	awe = 25;
    }

  if (IS_EXTRA (ch, EXTRA_AWE))
    {
      awe += 75;
    }

  if (!IS_NPC (victim) && victim->level > 6)
    {
      send_to_char ("You can only command other avatars.\n\r", ch);
      return;
    }

  if (ch->pcdata->powers[WRA_CAST] > 2)
    {
      sprintf (buffy, "%s %s", arg2, argument);
      if (IS_NPC (victim))
	sprintf (buf, "I just know %s wants to %s", victim->short_descr,
		 buffy);
      else if (!IS_NPC (victim) && IS_AFFECTED (victim, AFF_POLYMORPH))
	sprintf (buf, "I just know %s wants to %s", victim->morph, buffy);
      else
	sprintf (buf, "I just know %s wants to %s", victim->name, buffy);
      do_say (ch, buf);
    }
  else
    {
      if (IS_NPC (victim))
	sprintf (buf, "I just know %s wants to %s", victim->short_descr,
		 arg2);
      else if (!IS_NPC (victim) && IS_AFFECTED (victim, AFF_POLYMORPH))
	sprintf (buf, "I just know %s wants to %s", victim->morph, arg2);
      else
	sprintf (buf, "I just know %s wants to %s", victim->name, arg2);
      do_say (ch, buf);
    }

  if (IS_NPC (victim) && victim->level >= awe)
    {
      act ("You shake off $N's suggestion.", victim, NULL, ch, TO_CHAR);
      act ("$n shakes off $N's suggestion.", victim, NULL, ch, TO_NOTVICT);
      act ("$n shakes off your suggestion.", victim, NULL, ch, TO_VICT);
      act ("$s mind is too strong to overcome.", victim, NULL, ch, TO_VICT);
      return;
    }

  else if (victim->spl[BLUE_MAGIC] >= (ch->spl[RED_MAGIC]))
    {
      act ("You shake off $N's suggestion.", victim, NULL, ch, TO_CHAR);
      act ("$n shakes off $N's suggestion.", victim, NULL, ch, TO_NOTVICT);
      act ("$n shakes off your suggestion.", victim, NULL, ch, TO_VICT);
      act ("$s mind is too strong to overcome.", victim, NULL, ch, TO_VICT);
      return;
    }
  if (!str_cmp ("give", arg2))
    {
      send_to_char (" You Failed.\n\r", ch);
      return;
    }
  if (!str_cmp ("dro", arg2))
    {
      send_to_char (" You Failed.\n\r", ch);
      return;
    }
  if (!str_cmp ("drop", arg2))
    {
      send_to_char (" You Failed.\n\r", ch);
      return;
    }
  if (!str_cmp ("gif", arg2))
    {
      send_to_char (" You Failed.\n\r", ch);
      return;
    }
  if (!str_cmp ("giv", arg2))
    {
      send_to_char (" You Failed.\n\r", ch);
      return;
    }
  if (!str_cmp ("gi", arg2))
    {
      send_to_char (" You Failed.\n\r", ch);
      return;
    }
  if (!str_cmp ("gift", arg2))
    {
      send_to_char (" You Failed.\n\r", ch);
      return;
    }
  if (!str_cmp ("k", arg2))
    {
      send_to_char (" You Failed.\n\r", ch);
      return;
    }
  if (!str_cmp ("ki", arg2))
    {
      send_to_char (" You Failed.\n\r", ch);
      return;
    }
  if (!str_cmp ("kil", arg2))
    {
      send_to_char (" You Failed.\n\r", ch);
      return;
    }
  if (!str_cmp ("kill", arg2))
    {
      send_to_char (" You Failed.\n\r", ch);
      return;
    }
  if (!str_cmp ("sac", arg2))
    {
      send_to_char (" You Failed.\n\r", ch);
      return;
    }
  if (is_in
      (buffy,
       "|quit*rem*drop*gift*claim*selfclass*autoclass*consent*propose*vampi*ma *maj*sid *side *reca*/*ha *hav*"))
    {
      send_to_char ("I think not.\n\r", ch);
      return;
    }

  act ("You blink in confusion.", victim, NULL, NULL, TO_CHAR);
  act ("$n blinks in confusion.", victim, NULL, NULL, TO_ROOM);
  strcpy (buf, "Your wish is my command.");
  do_say (victim, buf);
  if (ch->pcdata->powers[WRA_CAST] > 2)
    interpret (victim, buffy);
  else
    interpret (victim, arg2);
  waiting (ch, 20);
  return;
}

/* Secrets not in */
/* It is now! */
void
do_secrets (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char buf[MSL];
  char arg[MSL];

  argument = one_argument (argument, arg);

  if (!IS_WRAITH (ch))
    {
      do_huh (ch, "");
      return;
    }

  if (ch->pcdata->powers[WRA_CAST] < 3)
    {
      send_to_char ("You must have level 3 Castigate to use Secrets.\n\r",
		    ch);
      return;
    }

  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      send_to_char ("They are not here.\n\r", ch);
      return;
    }
  sprintf (buf, "You concentrate on %s.\n\r", victim->name);
  send_to_char (buf, ch);
  sprintf (buf, "%s concentrates on you.\n\r", ch->name);
  send_to_char (buf, victim);

  if (is_safe (ch, victim))
    return;
  waiting (ch, 12);
  do_berserk (victim, "");
  return;
}

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

  argument = one_argument (argument, arg);

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

  if (ch->pcdata->powers[WRA_CAST] < 4)
    {
      send_to_char
	("You must obtain at least level 4 in Castigate to use Dark Secrets.\n\r",
	 ch);
      return;
    }

  if (arg[0] == '\0')
    {
      send_to_char ("Whom do you wish to calm?\n\r", ch);
      return;
    }

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

  if (number_range (1, 4) != 3)
    {
      send_to_char ("You sing a blissful and soothing song.\n\r", ch);
      act ("$n starts singing a blissful and soothing song.", ch, NULL,
	   victim, TO_VICT);
      send_to_char ("Nothing seems to happen..\n\r", ch);
      waiting (ch, 12);
      return;
    }


  if (IS_VAMPIRE (victim))
    {
      if (victim->pcdata->vamprage < 1 && victim->pcdata->wolf < 1)
	{
	  send_to_char ("They aren't even raged!\n\r", ch);
	  return;
	}
      else
	{
	  send_to_char ("You sing a blissful and soothing song.\n\r", ch);
	  act ("$n starts singing a blissful and soothing song.", ch, NULL,
	       victim, TO_VICT);
	  do_calm (victim, "");
	  return;
	}
      waiting (ch, 9);
      return;
    }
  else if (IS_WEREWOLF (victim))
    {
      if (victim->pcdata->wolf < 100)
	{
	  send_to_char ("They aren't even raged!\n\r", ch);
	  return;
	}
      else
	{
	  send_to_char ("You sing a blissful and soothing song.\n\r", ch);
	  act ("$n starts singing a blissful and soothing song.", ch, NULL,
	       victim, TO_VICT);
	  do_unwerewolf (victim, "");
	  return;
	}
      waiting (ch, 9);
    }
  else
    return;
  return;
}

/* Defiance not in... gonna take a while to code */

/* Embody arcanoi
 *1. Whisper
 *2. Phantommask
 *3. Nothing yet
 *4. Statue
 *5. Materialize
 */
/* whispers not in, like Ventrilloquate so it'll be easy */
void
do_phantommask (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  char buf[MIL];

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_EMBO] < 2)
    {
      send_to_char ("You need level 2 in Embody to use Phantom Mask.\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 ((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;
	}
      sprintf (buf, "Your form shimmers and transforms into %s.", ch->name);
      act (buf, ch, NULL, victim, TO_CHAR);
      sprintf (buf, "%s's form shimmers and transforms into %s.", ch->morph,
	       ch->name);
      act (buf, ch, NULL, victim, TO_ROOM);
      REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
      REMOVE_BIT (ch->vampaff, VAM_DISGUISED);
      free_string (ch->morph);
      ch->morph = str_dup ("");
      return;
    }
  if (IS_VAMPAFF (ch, VAM_DISGUISED))
    {
      sprintf (buf, "Your form shimmers and transforms into a clone of %s.",
	       victim->name);
      act (buf, ch, NULL, victim, TO_CHAR);
      sprintf (buf, "%s's form shimmers and transforms into a clone of %s.",
	       ch->morph, victim->name);
      act (buf, ch, NULL, victim, TO_NOTVICT);
      sprintf (buf, "%s's form shimmers and transforms into a clone of you!",
	       ch->morph);
      act (buf, ch, NULL, victim, TO_VICT);
      free_string (ch->morph);
      ch->morph = str_dup (victim->name);
      return;
    }
  sprintf (buf, "Your form shimmers and transforms into a clone of %s.",
	   victim->name);
  act (buf, ch, NULL, victim, TO_CHAR);
  sprintf (buf, "%s's form shimmers and transforms into a clone of %s.",
	   ch->name, victim->name);
  act (buf, ch, NULL, victim, TO_NOTVICT);
  sprintf (buf, "%s's form shimmers and transforms into a clone of you!",
	   ch->name);
  act (buf, ch, NULL, victim, TO_VICT);
  SET_BIT (ch->affected_by, AFF_POLYMORPH);
  SET_BIT (ch->vampaff, VAM_DISGUISED);
  free_string (ch->morph);
  ch->morph = str_dup (victim->name);
  return;
}

void
do_materialize (CHAR_DATA * ch, char *argument)
{

  if (IS_NPC (ch))
    return;

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

  if (has_fighttimer (ch))
    return;

  if (ch->pcdata->deathticker > 0)
    {
      stc ("your body hasnt completly reformed yet!\n\r", ch);
      return;
    }
  if (!IS_NYM (ch, NYM_DEATHPLANE))
    {
      send_to_char ("You fade into the plane of death.\n\r", ch);
      act ("$n fades into the plane of death.", ch, NULL, NULL, TO_ROOM);
      SET_BIT (ch->nymbits, NYM_DEATHPLANE);
      do_look (ch, "auto");
      return;
    }
  REMOVE_BIT (ch->nymbits, NYM_DEATHPLANE);
  send_to_char ("You force yourself to appear in the skinlands.\n\r", ch);
  act ("$n fades into existance.", ch, NULL, NULL, TO_ROOM);
  do_look (ch, "auto");
  return;
}


/*
 *Inhabit arcanoi
 *1. Empower - need to figure it out before coding
 *2. Surge - need an idea for it
 *3. Objectride
 *4. Gremlinize
 *5. Itemjump
 */

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

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->powers[WRA_INHA] < 3)
    {
      send_to_char
	("You must obtain level 3 in Inhabit to use itemjump.\n\r", ch);
      return;
    }

  if ((obj = get_obj_world (ch, arg)) == NULL)
    {
      send_to_char ("You cannot find that object.\n\r", ch);
      return;
    }
  if (!IS_NYM (ch, NYM_DEATHPLANE))
    {
      send_to_char ("You must do this from the death plane.\n\r", ch);
      return;
    }

  if (obj->in_room == NULL)
    {
      send_to_char ("You cannot locate that object.\n\r", ch);
      return;
    }

  if (obj->carried_by != NULL)
    {
      send_to_char ("That item is being carried by someone!\n\r", ch);
      return;
    }

  if (obj->in_room->vnum == ch->in_room->vnum)
    {
      send_to_char ("You're already there!\n\r", ch);
      return;
    }
  if (obj->item_type == ITEM_PIECE || IS_SET (obj->quest, QUEST_ARTIFACT))
    {
      stc ("You are unable to find it!\n\r", ch);
      return;
    }
  act ("$n steps into a nihil and vanishes.", ch, NULL, NULL, TO_ROOM);
  char_from_room (ch);
  char_to_room (ch, get_room_index (obj->in_room->vnum));
  act ("You step through a nihil and appear before $p.", ch, obj, NULL,
       TO_CHAR);
  act ("$n steps out of a nihil in front of $p.", ch, obj, NULL, TO_ROOM);
  return;
}

void
do_objectride (CHAR_DATA * ch, char *argument)
{
  char buf[MSL];
  char arg1[MIL];
  OBJ_DATA *obj;

  argument = one_argument (argument, arg1);

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->powers[WRA_INHA] < 3)
    {
      send_to_char
	("You must obtain level 3 in Inhabit to use object ride.\n\r", ch);
      return;
    }
  if (has_artifact (ch))
    {
      stc ("Not with an Artifact.\n\r", ch);
      return;
    }

  if (arg1[0] == '\0')
    {
      send_to_char ("Syntax: itemjump <object>\n\r", ch);
      return;
    }

  if (!str_cmp (arg1, "return") && IS_SET (ch->extra, EXTRA_OSWITCH))
    {
      do_oreturn (ch, "");
      return;
    }
/*    else if (IS_SET(ch->extra, EXTRA_OSWITCH) && !str_cmp(arg1,"return"))
    {
    ch->pcdata->obj_vnum = 0;
    obj->chobj = NULL;
    ch->pcdata->chobj = NULL;
    REMOVE_BIT(ch->affected_by, AFF_POLYMORPH);
    REMOVE_BIT(ch->extra, EXTRA_OSWITCH);
    free_string(ch->morph);
    ch->morph = str_dup("");
    act("A cloud of putrid smoke pours out of $p and forms into $n.",ch,obj,NULL,TO_ROOM);
    act("Your spirit floats out of $p and reforms its corpus.",ch,obj,NULL,TO_CHAR);
    do_release(ch,"self);
  return;
    }*/
  else if (IS_AFFECTED (ch, AFF_POLYMORPH))
    {
      send_to_char ("You cannot do this while polymorphed.\n\r", ch);
      return;
    }
  if ((obj = get_obj_carry (ch, arg1)) == NULL)
    {
      send_to_char ("You are not carrying that item.\n\r", ch);
      return;
    }
  if (obj->chobj != NULL)
    {
      send_to_char ("That item already has someone in it.\n\r", ch);
      return;
    }
  if (!IS_SET (ch->extra, EXTRA_OSWITCH))
    {
//      do_oclone (ch, obj->name);
      send_to_char ("Ok.\n\r", ch);
/*    act("$n transforms into a cloud of putrid smoke and pours into $p.",ch,obj,NULL,TO_ROOM);
    act("You transform into a cloud of putrid smoke into $p.",ch,obj,NULL,TO_CHAR);
    ch->pcdata->obj_vnum = obj->pIndexData->vnum;
    obj->chobj = ch;
    ch->pcdata->chobj = obj;
    SET_BIT(ch->affected_by, AFF_POLYMORPH);
    SET_BIT(ch->extra, EXTRA_OSWITCH);
    free_string(ch->morph);
    ch->morph = str_dup(obj->short_descr);*/

//      sprintf (buf, "self %s", obj->name);
      obj_from_char (obj);
      obj_to_room (obj, ch->in_room);
      do_oswitch (ch, obj->name);

      return;
    }
  else if (IS_SET (ch->extra, EXTRA_OSWITCH) && !str_cmp (arg1, "return"))
    {
      send_to_char ("Syntax: itemjump return    to return to your body.\n\r",
		    ch);
      return;
    }
}

/*
 *Keening arcanoi
 *1. Dirge
 *2. Ballad
 *3. Muse
 *4. Crescendo
 *5. Requiem
 */
void
do_dirge (CHAR_DATA * ch, char *argument)
{
  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->powers[WRA_KEEN] < 1)
    {
      send_to_char
	("You must obtain at least level 1 in Keening to use Dirge.\n\r", 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_ballad (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];
  CHAR_DATA *victim;

  one_argument (argument, arg);

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

  if (ch->pcdata->powers[WRA_KEEN] < 2)
    {
      send_to_char ("You must obtain level 2 in Keening to use Ballad.\n\r",
		    ch);
      return;
    }

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

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

  if (victim == ch)
    {
      send_to_char ("Why would you want to read your own mind?\n\r", ch);
      return;
    }

  if (victim->level > ch->level)
    {
      send_to_char ("Their mind is far too powerful for you to read.\n\r",
		    ch);
      return;
    }


  //victim->unveil = ch;
  act ("You concentrate deeply upon $N.\n\rYou have invaded $S's mind.\n\r",
       ch, NULL, victim, TO_CHAR);
  return;
}

void
do_crescendo (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  ROOM_INDEX_DATA *chroom;
  ROOM_INDEX_DATA *victimroom;
  char arg[MIL];

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_KEEN] < 4)
    {
      send_to_char ("you need level 4 in Keening to use Crescendo.\n\r", ch);
      return;
    }

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

  if ((victim = get_char_world (ch, arg)) == NULL)
    {
      send_to_char ("They aren't here.\n\r", ch);
      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_requiem (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];
  CHAR_DATA *victim;
  int dam;

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;
  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_KEEN] < 5)
    {
      send_to_char ("You require level 5 in Keening to use Requiem.\n\r", ch);
      return;
    }

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

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

  if (ch == victim)
    {
      send_to_char ("You cannot do this to yourself!\n\r", ch);
      return;
    }
  if (is_safe (ch, victim))
    return;
  if (victim->hit < victim->max_hit)
    {
      send_to_char ("They are hurt and alert.\n\r", ch);
      return;
    }


  act ("You let loose a scream that rattles the fabric of reality at $N.", ch,
       NULL, victim, TO_CHAR);
  act
    ("$n lets loose a scream that rattles the fabric of reality in your face.",
     ch, NULL, victim, TO_VICT);
  act ("$n lets loose a scream that rattles the fabric of reality at $N.", ch,
       NULL, victim, TO_NOTVICT);
  waiting (ch, 12);
  if (number_percent () < 50)
    dam = number_range (1, 4);
  else
    {
      dam = 0;
      send_to_char ("You failed.\n\r", ch);
      return;
    }

  dam += char_damroll (ch);
  if (dam == 0)
    dam = 1;
  if (!IS_AWAKE (victim))
    dam *= 5;

  if (dam <= 0)
    dam = 1;
  victim->hit -= dam;

  act ("You clutch your head in agony!", victim, NULL, NULL, TO_CHAR);
  act ("$n clutches his head in agony!", victim, NULL, NULL, TO_ROOM);
  victim->position = POS_STUNNED;
  if (IS_NPC (victim) && victim->hit < 0)
    {
      raw_kill (victim, ch);
      return;
    }
  if (!IS_NPC (victim) && victim->hit < -2)
    update_pos (ch);
  return;
}

/*
 *Moliate arcanoi
 *1. Imitate
 *2. Sculpt
 *3. Martialry
 *4. Rend
 *5. Bodyshape
 */
/*
void do_imitate( CHAR_DATA *ch, char *argument )
{
    CHAR_DATA *victim;
    char      arg [MIL];
    char      buf [MIL];

    argument = one_argument( argument, arg );

    if (IS_NPC(ch)) return;

    if (!IS_WRAITH(ch))
    {
	send_to_char( "Huh?\n\r", ch );
	return;
    }
    if (ch->pcdata->powers[WRA_MOLI] < 1  )
    {
      send_to_char("You must obtain at least level 1 in Moliate to use Imitate.\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 ( ( 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 use Imitate on Avatars orlower.\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;
	}
	sprintf(buf,"Your corpus twists and reshapes as %s.",ch->name);
	act(buf,ch,NULL,victim,TO_CHAR);
	sprintf(buf,"%s's corpus twists and reshapes as %s.",ch->morph,ch->name);
	act(buf,ch,NULL,victim,TO_ROOM);
	REMOVE_BIT(ch->affected_by, AFF_POLYMORPH);
	REMOVE_BIT(ch->vampaff, VAM_DISGUISED);
    	free_string( ch->morph );
    	ch->morph = str_dup( "" );
	return;
    }
    if (IS_VAMPAFF(ch,VAM_DISGUISED))
    {
    	sprintf(buf,"Your corpus twists and reshapes as %s.",victim->name);
    	act(buf,ch,NULL,victim,TO_CHAR);
    	sprintf(buf,"%s's corpus twists and reshapes as %s.",ch->morph,victim->name);
    	act(buf,ch,NULL,victim,TO_NOTVICT);
    	sprintf(buf,"%s's corpus twists and reshapes as you!",ch->morph);
    	act(buf,ch,NULL,victim,TO_VICT);
    	free_string( ch->morph );
    	ch->morph = str_dup( victim->name );
	return;
    }
    sprintf(buf,"Your corpus twists and reshapes as %s.",victim->name);
    act(buf,ch,NULL,victim,TO_CHAR);
    sprintf(buf,"%s's corpus twists and reforms as %s.",ch->name,victim->name);
    act(buf,ch,NULL,victim,TO_NOTVICT);
    sprintf(buf,"%s's corpus twists and reforms as you!",ch->name);
    act(buf,ch,NULL,victim,TO_VICT);
    SET_BIT(ch->affected_by, AFF_POLYMORPH);
    SET_BIT(ch->vampaff, VAM_DISGUISED);
    free_string( ch->morph );
    ch->morph = str_dup( victim->name );
    return;
}
*/
/* seems to have a prev declare send_to_char and do_bonemod
void do_sculpt( CHAR_DATA *ch, char *argument )
{
    CHAR_DATA *victim;
    char      arg [MIL];
    char      buf [MIL];
 
    argument = one_argument( argument, arg );
 
    if (IS_NPC(ch)) return;
 
    if (!IS_WRAITH(ch))
    {
	send_to_char( "Huh?\n\r", ch );
	return;
    }
 
    if (ch->pcdata->powers[WRA_MOLI] < 2)
    {
	send_to_char("You need level 2 in Moliate to sculpt.\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 ( ( victim = get_char_room( ch, arg ) ) == NULL )
    {
	send_to_char( "They aren't here.\n\r", ch );
	return;
    }
 
    if ( !IS_NPC(victim) && ch != victim)
    {
	send_to_char( "Not on Players.\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;
	}
        sprintf(buf,"Your corpus molds and transforms into %s.",ch->name);
	act(buf,ch,NULL,victim,TO_CHAR);
        sprintf(buf,"%s's corpus molds and transforms into %s.",ch->morph,ch->name);
	act(buf,ch,NULL,victim,TO_ROOM);
	REMOVE_BIT(ch->affected_by, AFF_POLYMORPH);
	REMOVE_BIT(ch->vampaff, VAM_DISGUISED);
    	free_string( ch->morph );
    	ch->morph = str_dup( "" );
	return;
    }
    if (IS_VAMPAFF(ch,VAM_DISGUISED))
    {
        sprintf(buf,"Your corpus molds and transforms into a clone of %s.",victim->short_descr);
    	act(buf,ch,NULL,victim,TO_CHAR);
        sprintf(buf,"%s's corpus molds and transforms into a clone of %s.",ch->morph,victim->short_descr);
    	act(buf,ch,NULL,victim,TO_NOTVICT);
        sprintf(buf,"%s's corpus mols and transforms into a clone of you!",ch->morph);
    	act(buf,ch,NULL,victim,TO_VICT);
    	free_string( ch->morph );
        ch->morph = str_dup( victim->short_descr );
	return;
    }
    sprintf(buf,"Your corpus molds and transforms into a clone of %s.",victim->short_descr);
    act(buf,ch,NULL,victim,TO_CHAR);
    sprintf(buf,"%s's corpus molds and transforms into a clone of %s.",ch->name,victim->short_descr);
    act(buf,ch,NULL,victim,TO_NOTVICT);
    sprintf(buf,"%s's corpus molds and transforms into a clone of you!",ch->name);
    act(buf,ch,NULL,victim,TO_VICT);
    SET_BIT(ch->affected_by, AFF_POLYMORPH);
    SET_BIT(ch->vampaff, VAM_DISGUISED);
    free_string( ch->morph );
    ch->morph = str_dup( victim->short_descr );
    return;
}
*/

void
do_martialry (CHAR_DATA * ch, char *argument)
{
  char arg1[MIL];
  CHAR_DATA *victim;

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


  if (IS_NPC (ch))
    return;

  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_MOLI] < 3)
    {
      send_to_char ("You need level 3 in Moliate to use Martialry.\n\r", ch);
      return;
    }

  if (arg1[0] == '\0')
    {
      send_to_char ("Syntax: martialry <modification>\n\r", ch);
      send_to_char
	("Horns, Tusks, Exoskeleton, Tail, Thirdarm, Fourtharm\n\r", ch);
      return;
    }
  if (!IS_WRAITH (ch))
    {
      send_to_char ("They are not a changeling.\n\r", ch);
      return;
    }

  /*
   * Set something.
   */

  if (!str_cmp (arg1, "horns"))
    {

      if (!IS_MOD (ch, MOD_HORNS))
	{
	  SET_BIT (ch->pcdata->bodymods, MOD_HORNS);
	  send_to_char ("You pull a set of horns out of your head.\n\r", ch);
	  act ("$n pulls a set of horns from his head!\n\r", ch, NULL, NULL,
	       TO_ROOM);
	  return;
	}

      if (IS_MOD (ch, MOD_HORNS))
	{
	  REMOVE_BIT (ch->pcdata->bodymods, MOD_HORNS);
	  send_to_char ("You push your horns back into your head.\n\r", ch);
	  act ("$n pushes $n's horns back into $n head.\n\r", ch, NULL, NULL,
	       TO_ROOM);
	  return;

	}
    }

  if (!str_cmp (arg1, "thirdarm"))
    {

      if (!IS_MOD (ch, MOD_THIRD_ARM))
	{
	  SET_BIT (ch->pcdata->bodymods, MOD_THIRD_ARM);
	  send_to_char ("You pull an extra arm out of your side.\n\r", ch);
	  act ("$n pulls a third arm from $s side!\n\r", ch, NULL, NULL,
	       TO_ROOM);
	  return;
	}

      if (IS_MOD (ch, MOD_THIRD_ARM))
	{
	  REMOVE_BIT (ch->pcdata->bodymods, MOD_THIRD_ARM);
	  send_to_char ("You push your extra arm back into your side.\n\r",
			ch);
	  act ("$n pushes $s extra arm into $s side.\n\r", ch, NULL, NULL,
	       TO_ROOM);
	  return;

	}
    }
  if (!str_cmp (arg1, "fourtharm"))
    {

      if (!IS_MOD (ch, MOD_FOURTH_ARM))
	{
	  SET_BIT (ch->pcdata->bodymods, MOD_FOURTH_ARM);
	  send_to_char ("You pull an extra arm out of your side.\n\r", ch);
	  act ("$n pulls a third arm from $s side!\n\r", ch, NULL, NULL,
	       TO_ROOM);
	  return;
	}

      if (IS_MOD (ch, MOD_FOURTH_ARM))
	{
	  REMOVE_BIT (ch->pcdata->bodymods, MOD_FOURTH_ARM);
	  send_to_char ("You push your extra arm back into your side.\n\r",
			ch);
	  act ("$n pushes $s extra arm into $s side.\n\r", ch, NULL, NULL,
	       TO_ROOM);
	  return;

	}
    }
  if (!str_cmp (arg1, "exoskeleton"))
    {

      if (!IS_MOD (ch, MOD_EXOSKELETON))
	{
	  SET_BIT (ch->pcdata->bodymods, MOD_EXOSKELETON);
	  send_to_char ("Your skin is covered by a hard exoskeleton.\n\r",
			ch);
	  act ("$n's skin is covered by a hard exoskeleton!\n\r", ch, NULL,
	       NULL, TO_ROOM);
	  return;
	}

      if (IS_MOD (ch, MOD_EXOSKELETON))
	{
	  REMOVE_BIT (ch->pcdata->bodymods, MOD_EXOSKELETON);
	  send_to_char
	    ("Your exoskeleton slowly disappears under your skin.\n\r", ch);
	  act ("$n's hard exoskeleton disappears under $s skin.\n\r", ch,
	       NULL, NULL, TO_ROOM);
	  return;

	}
    }

  if (!str_cmp (arg1, "tail"))
    {

      if (!IS_MOD (ch, MOD_TAIL))
	{
	  SET_BIT (ch->pcdata->bodymods, MOD_TAIL);
	  send_to_char
	    ("Your spine extends out into a long, pointed tail.\n\r", ch);
	  act ("$n's spine extends to form a long pointed tail!\n\r", ch,
	       NULL, NULL, TO_ROOM);
	  return;
	}

      if (IS_MOD (ch, MOD_TAIL))
	{
	  REMOVE_BIT (ch->pcdata->bodymods, MOD_TAIL);
	  send_to_char ("Your tail slowly retracts into your spine.\n\r", ch);
	  act ("$n's tail shrinks and vanishes into $s spine.\n\r", ch, NULL,
	       NULL, TO_ROOM);
	  return;

	}
    }

  if (!str_cmp (arg1, "tusks"))
    {

      if (!IS_MOD (ch, MOD_TUSKS))
	{
	  SET_BIT (ch->pcdata->bodymods, MOD_TUSKS);
	  send_to_char ("You pull some mighty tusks out of your chin.\n\r",
			ch);
	  act ("$n's pulls some mighty tusks out of $s chin.!\n\r", ch, NULL,
	       NULL, TO_ROOM);
	  return;
	}

      if (IS_MOD (ch, MOD_TUSKS))
	{
	  REMOVE_BIT (ch->pcdata->bodymods, MOD_TUSKS);
	  send_to_char ("You push your tusks back into your chin.\n\r", ch);
	  act ("$n's pushes $s tusks back into $s chin.\n\r", ch, NULL, NULL,
	       TO_ROOM);
	  return;

	}
    }




  /*
   * Generate usage message.
   */

  do_martialry (ch, "");
  return;
}

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

  argument = one_argument (argument, arg);


  if (IS_NPC (ch))
    return;
  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_MOLI] < 4)
    {
      send_to_char ("You need level 4 in Moliate to use Rend.\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    {
      send_to_char ("Who do you wish to rend?\n\r", ch);
      return;
    }
  victim = get_char_room (ch, arg);
  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      send_to_char ("They arent here.\n\r", ch);
      return;
    }


  if (is_safe (ch, victim))
    return;

  waiting (ch, 12);

  if (limbsafe (ch, victim))
    return;

  sprintf (buf, "%s grabs ahold and", ch->name);
  act (buf, ch, NULL, NULL, TO_ROOM);
  send_to_char ("You grab ahold and\n\r", ch);
  if (IS_ARM_R (victim, LOST_ARM) && IS_ARM_L (victim, LOST_ARM) &&
      IS_LEG_R (victim, LOST_LEG) && IS_LEG_L (victim, LOST_LEG))
    {
      send_to_char ("All of their limbs are severed already!\n\r", ch);
      return;
    }
  if (number_percent () < 45)
    {
      if (!IS_ARM_R (victim, LOST_ARM))
	{
	  SET_BIT (victim->loc_hp[3], LOST_ARM);
	  if ((obj = get_eq_char (victim, WEAR_HOLD)) != NULL)
	    take_item (victim, obj);
	  if ((obj = get_eq_char (victim, WEAR_HANDS)) != NULL)
	    take_item (victim, obj);
	  if ((obj = get_eq_char (victim, WEAR_WRIST_R)) != NULL)
	    take_item (victim, obj);
	  if ((obj = get_eq_char (victim, WEAR_FINGER_R)) != NULL)
	    take_item (victim, obj);
	  make_part (victim, "arm");
	  sprintf (buf, "rips %s's arm off!", victim->name);
	  act (buf, ch, NULL, NULL, TO_ROOM);
	  send_to_char (buf, ch);
	  return;
	}
      if (!IS_ARM_L (victim, LOST_ARM))
	{
	  SET_BIT (victim->loc_hp[2], LOST_ARM);
	  if ((obj = get_eq_char (victim, WEAR_HOLD)) != NULL)
	    take_item (victim, obj);
	  if ((obj = get_eq_char (victim, WEAR_HANDS)) != NULL)
	    take_item (victim, obj);
	  if ((obj = get_eq_char (victim, WEAR_WRIST_L)) != NULL)
	    take_item (victim, obj);
	  if ((obj = get_eq_char (victim, WEAR_FINGER_L)) != NULL)
	    take_item (victim, obj);
	  make_part (victim, "arm");
	  sprintf (buf, "rips %s's arm off!", victim->name);
	  act (buf, ch, NULL, NULL, TO_ROOM);
	  send_to_char (buf, ch);
	  return;
	}
      if (!IS_LEG_R (victim, LOST_LEG))
	{
	  SET_BIT (victim->loc_hp[5], LOST_LEG);
	  if ((obj = get_eq_char (victim, WEAR_FEET)) != NULL)
	    take_item (victim, obj);
	  if ((obj = get_eq_char (victim, WEAR_LEGS)) != NULL)
	    take_item (victim, obj);
	  make_part (victim, "leg");
	  sprintf (buf, "rips %s's leg off!", victim->name);
	  act (buf, ch, NULL, NULL, TO_ROOM);
	  send_to_char (buf, ch);
	  return;
	}
      if (!IS_LEG_L (victim, LOST_LEG))
	{
	  SET_BIT (victim->loc_hp[4], LOST_LEG);
	  if ((obj = get_eq_char (victim, WEAR_FEET)) != NULL)
	    take_item (victim, obj);
	  if ((obj = get_eq_char (victim, WEAR_LEGS)) != NULL)
	    take_item (victim, obj);
	  make_part (victim, "leg");
	  sprintf (buf, "rips %s's leg off!", victim->name);
	  act (buf, ch, NULL, NULL, TO_ROOM);
	  send_to_char (buf, ch);
	  return;
	}
    }
  send_to_char ("You fail.\n\r", ch);

  return;
}

/* wraith zulo */
void
do_bodyshape (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];
  char buf[MSL];
  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_MOLI] < 1)
    {
      send_to_char ("You need level 1 in Moliate to use Bodyshape.\n\r", ch);
      return;
    }


  if (IS_POLYAFF (ch, POLY_WRAITHFORM))
    {
      REMOVE_BIT (ch->polyaff, POLY_WRAITHFORM);
      free_string (ch->morph);
      ch->morph = str_dup (get_form (ch));
      if (strlen (ch->morph) < 2)
	{
	  REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
	  REMOVE_BIT (ch->vampaff, VAM_DISGUISED);
	}
      act ("You transform into your corpus.", ch, NULL, NULL, TO_CHAR);
      act ("$n's shrinks back into their corpus.", ch, NULL, NULL, TO_ROOM);
      return;
    }
  if (IS_SET (ch->affected_by, AFF_POLYMORPH)
      && !IS_SET (ch->vampaff, VAM_DISGUISED))
    {
      send_to_char ("You can't bodyshape when changed.\n\r", ch);
      return;
    }


  if (ch->stance[0] != -1)
    do_stance (ch, "");
  if (ch->mounted == IS_RIDING)
    do_dismount (ch, "");
  act ("You transform your corpus into a half-corporeal state.", ch, NULL,
       NULL, TO_CHAR);
  act ("$n's stretches and twists into a massive shimmering form.", ch, NULL,
       NULL, TO_ROOM);

  ch->pcdata->mod_str = 15;
  ch->pcdata->mod_dex = 15;
  SET_BIT (ch->polyaff, POLY_WRAITHFORM);
  SET_BIT (ch->affected_by, AFF_POLYMORPH);
  SET_BIT (ch->vampaff, VAM_DISGUISED);
  free_string (ch->morph);
  ch->morph = str_dup (get_form (ch));
  return;
}

/*
 *Outrage!!! arcanoi hee hee, the next best thing is Puppetry
 *1. Ping
 *2. Wraithgrasp
 *3. Stonehand
 *4. Pyro
 *5. Obliviate!!! muhahaha fuck I'm sick -Nephesch
 */
void
do_pinging (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  CHAR_DATA *mount;
  ROOM_INDEX_DATA *to_room;
  EXIT_DATA *pexit;
  EXIT_DATA *pexit_rev;
  char buf[MIL];
  char direction[MIL];
  char arg1[MIL];
  char arg2[MIL];
  int door;
  int rev_dir;
  int dam;

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

  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_OUTR] < 1)
    {
      send_to_char ("You need level 1 in Outrage to use Ping!\n\r", ch);
      return;
    }

  if (arg1[0] == '\0')
    {
      send_to_char ("Who do you wish to ping?\n\r", ch);
      return;
    }

  if ((victim = get_char_room (ch, arg1)) == NULL)
    {
      send_to_char ("They are not here.\n\r", ch);
      return;
    }

  if (victim == ch)
    {
      send_to_char ("How can you ping yourself?\n\r", ch);
      return;
    }


  if ((mount = victim->mount) != NULL && victim->mounted == IS_MOUNT)
    {
      send_to_char ("But they have someone on their back!\n\r", ch);
      return;
    }
  else if ((mount = victim->mount) != NULL && victim->mounted == IS_RIDING)
    {
      send_to_char ("But they are riding!\n\r", ch);
      return;
    }

  if ((victim->hit < victim->max_hit)
      || (victim->position == POS_FIGHTING && victim->fighting != ch))
    {
      act ("$N is hurt and suspicious, and you are unable to affect $M.",
	   ch, NULL, victim, TO_CHAR);
      return;
    }


  rev_dir = 0;

  if (arg2[0] == '\0')
    door = number_range (0, 3);
  else
    {
      if (!str_cmp (arg2, "n") || !str_cmp (arg2, "north"))
	door = 0;
      else if (!str_cmp (arg2, "e") || !str_cmp (arg2, "east"))
	door = 1;
      else if (!str_cmp (arg2, "s") || !str_cmp (arg2, "south"))
	door = 2;
      else if (!str_cmp (arg2, "w") || !str_cmp (arg2, "west"))
	door = 3;
      else
	{
	  send_to_char
	    ("You can only ping people north, south, east or west.\n\r", ch);
	  return;
	}
    }

  if (door == 0)
    {
      sprintf (direction, "north");
      rev_dir = 2;
    }
  if (door == 1)
    {
      sprintf (direction, "east");
      rev_dir = 3;
    }
  if (door == 2)
    {
      sprintf (direction, "south");
      rev_dir = 0;
    }
  if (door == 3)
    {
      sprintf (direction, "west");
      rev_dir = 1;
    }

  if ((pexit = ch->in_room->exit[door]) == NULL
      || (to_room = pexit->to_room) == NULL)
    {
      if (IS_NYM (ch, NYM_DEATHPLANE) && !IS_NYM (victim, NYM_DEATHPLANE))
	{
	  if (is_safe (ch, victim))
	    return;
	  REMOVE_BIT (ch->nymbits, NYM_DEATHPLANE);
	  act ("$n jumps in from nowhere and pokes $N in the chest.", ch,
	       NULL, NULL, TO_ROOM);
	}

      if (is_safe (ch, victim))
	return;

      sprintf (buf, "$N goes flying and slams into the %s wall.", direction);
      act (buf, ch, NULL, victim, TO_NOTVICT);
      sprintf (buf, "You send $N crashing into the %s wall.", direction);
      act (buf, ch, NULL, victim, TO_CHAR);
      sprintf (buf, "$n sends you crashing into the %s wall.", direction);
      act (buf, ch, NULL, victim, TO_VICT);
      dam = number_range (ch->level, (ch->level * 4));
      victim->hit = victim->hit - dam;
      update_pos (victim);
      if (IS_NPC (victim) && !IS_NPC (ch))
	ch->mkill = ch->mkill + 1;
      if (!IS_NPC (victim) && IS_NPC (ch))
	victim->mdeath = victim->mdeath + 1;
      if (victim->position == POS_DEAD)
	{
	  raw_kill (victim, ch);
	  return;
	}
      return;
    }

  pexit = victim->in_room->exit[door];
  if (IS_SET (pexit->exit_info, EX_CLOSED) &&
      !IS_AFFECTED (victim, AFF_PASS_DOOR) &&
      !IS_AFFECTED (victim, AFF_ETHEREAL))
    {
      if (IS_SET (pexit->exit_info, EX_LOCKED))
	REMOVE_BIT (pexit->exit_info, EX_LOCKED);
      if (IS_SET (pexit->exit_info, EX_CLOSED))
	REMOVE_BIT (pexit->exit_info, EX_CLOSED);
      if (IS_NYM (ch, NYM_DEATHPLANE) && !IS_NYM (victim, NYM_DEATHPLANE))
	{
	  if (is_safe (ch, victim))
	    return;

	  REMOVE_BIT (ch->nymbits, NYM_DEATHPLANE);

	  act ("$n jumps in from nowhere and pokes $N in the chest.", ch,
	       NULL, NULL, TO_ROOM);
	}

      if (is_safe (ch, victim))
	return;

      sprintf (buf, "$n sends $N crashing through the %s.", direction);
      act (buf, ch, NULL, victim, TO_NOTVICT);
      sprintf (buf, "You send $N crashing through the %s.", direction);
      act (buf, ch, NULL, victim, TO_CHAR);
      sprintf (buf, "$n sends you %s, smashing you through the %s.",
	       direction, pexit->keyword);
      act (buf, ch, NULL, victim, TO_VICT);
      sprintf (buf, "There is a loud crash as $n smashes through the $d.");
      act (buf, victim, NULL, pexit->keyword, TO_ROOM);

      if ((to_room = pexit->to_room) != NULL
	  && (pexit_rev = to_room->exit[rev_dir]) != NULL
	  && pexit_rev->to_room == ch->in_room && pexit_rev->keyword != NULL)
	{
	  if (IS_SET (pexit_rev->exit_info, EX_LOCKED))
	    REMOVE_BIT (pexit_rev->exit_info, EX_LOCKED);
	  if (IS_SET (pexit_rev->exit_info, EX_CLOSED))
	    REMOVE_BIT (pexit_rev->exit_info, EX_CLOSED);
	  if (door == 0)
	    sprintf (direction, "south");
	  if (door == 1)
	    sprintf (direction, "west");
	  if (door == 2)
	    sprintf (direction, "north");
	  if (door == 3)
	    sprintf (direction, "east");
	  char_from_room (victim);
	  char_to_room (victim, to_room);
	  sprintf (buf, "$n comes smashing in through the %s $d.", direction);
	  act (buf, victim, NULL, pexit->keyword, TO_ROOM);
	  dam = number_range (ch->level, (ch->level * 6));
	  victim->hit = victim->hit - dam;
	  update_pos (victim);
	  if (IS_NPC (victim) && !IS_NPC (ch))
	    ch->mkill = ch->mkill + 1;
	  if (!IS_NPC (victim) && IS_NPC (ch))
	    victim->mdeath = victim->mdeath + 1;
	  if (victim->position == POS_DEAD)
	    {
	      raw_kill (victim, ch);
	      return;
	    }
	}
    }
  else
    {
      sprintf (buf, "$n sends $N flying %s.", direction);
      act (buf, ch, NULL, victim, TO_NOTVICT);
      sprintf (buf, "You send $N flying %s.", direction);
      act (buf, ch, NULL, victim, TO_CHAR);
      sprintf (buf, "$n sends you flying %s.", direction);
      act (buf, ch, NULL, victim, TO_VICT);
      if (door == 0)
	sprintf (direction, "south");
      if (door == 1)
	sprintf (direction, "west");
      if (door == 2)
	sprintf (direction, "north");
      if (door == 3)
	sprintf (direction, "east");
      char_from_room (victim);
      char_to_room (victim, to_room);
      sprintf (buf, "$n comes flying in from the %s.", direction);
      act (buf, victim, NULL, NULL, TO_ROOM);
      dam = number_range (ch->level, (ch->level * 2));
      victim->hit = victim->hit - dam;
      update_pos (victim);
      if (IS_NPC (victim) && !IS_NPC (ch))
	ch->mkill = ch->mkill + 1;
      if (!IS_NPC (victim) && IS_NPC (ch))
	victim->mdeath = victim->mdeath + 1;
      if (victim->position == POS_DEAD)
	{
	  raw_kill (victim, ch);
	  return;
	}
    }
  return;
}

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

  argument = one_argument (argument, arg);


  if (IS_NPC (ch))
    return;
  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_OUTR] < 2)
    {
      send_to_char ("You need level 2 in Outrage to use Wraithgrasp.\n\r",
		    ch);
      return;
    }

  if (arg[0] == '\0')
    {
      send_to_char ("Who do you wish to grasp?\n\r", ch);
      return;
    }
  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      send_to_char ("They arent here.\n\r", ch);
      return;
    }
  if (!IS_IMMUNE (victim, IMM_VAMPIRE) && !IS_NPC (victim))
    {
      send_to_char ("You cannot grasp an unwilling person.\n\r", ch);
      return;
    }
  if (IS_WRAITH (victim))
    {
      send_to_char ("You are unable to affect your brothers in death.\n\r",
		    ch);
      return;
    }
  if (!IS_NYM (victim, NYM_DEATHPLANE))
    {
      send_to_char
	("You reach into the material plane and pull $N through.\n\r", ch);
      act
	("$n reaches between the planes and pulls $N into the realm of death.",
	 ch, NULL, victim, TO_ROOM);
      act ("$n reaches through the planes and pulls you into the deathlands.",
	   ch, NULL, victim, TO_VICT);
      SET_BIT (victim->nymbits, NYM_DEATHPLANE);
      do_look (victim, "auto");
      return;
    }
  REMOVE_BIT (victim->nymbits, NYM_DEATHPLANE);
  send_to_char
    ("You push $N through the barrier into the material plane.\n\r", ch);
  act ("$n's hands appear shoving $N into the material world.", ch, NULL,
       victim, TO_ROOM);
  act ("$n shoves you incredibly hard forcing you into the material world.",
       ch, NULL, victim, TO_VICT);
  do_look (victim, "auto");
  return;
}

void
do_stonehand (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  int dam;

  argument = one_argument (argument, arg);

  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_OUTR] < 3)
    {
      send_to_char ("You need level 3 in Outrage to use Stonehand Punch.\n\r",
		    ch);
      return;
    }
  if (arg[0] == '\0')
    {
      send_to_char ("Whom do you wish to use this on?\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_safe (ch, victim))
    return;

  if (victim->hit < 1000)
    {
      send_to_char
	("They are almost dead already.  It wouldn't be any fun.\n\r", ch);
      return;
    }

  dam =
    number_range ((ch->pcdata->powers[WRA_OUTR] * 150),
		  (ch->pcdata->powers[WRA_OUTR] * 175));
  act ("You conjure a massive fist to strike $N.", ch, NULL, victim, TO_CHAR);
  act ("$n conjures a massive fist from the earth to strike you.", ch, NULL,
       victim, TO_VICT);
  mage_damage (ch, victim, dam, "stonehand punch", MAGEDAM_OTHER);
  waiting (ch, 16);
  return;
}

void
do_pyro (CHAR_DATA * ch, char *argument)
{
  OBJ_DATA *obj;


  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_OUTR] < 4)
    {
      send_to_char
	("You need level 4 in Outrage to use Pyrokinetic weapon.\n\r", ch);
      return;
    }

  if (argument[0] == '\0')
    {
      send_to_char ("Which item do you wish to enflame?\n\r", ch);
      return;
    }

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

  if (obj->item_type != ITEM_WEAPON)
    {
      send_to_char ("That is not a weapon!\n\r", ch);
      return;
    }


  if (IS_WEAP (obj, WEAPON_FLAMING))
    {
      act ("$p is already flaming.", ch, obj, NULL, TO_CHAR);
      return;
    }

  act ("$p bursts into flames.", ch, obj, NULL, TO_CHAR);
  act ("$p, carried by $n bursts into flames.", ch, obj, NULL, TO_ROOM);

  waiting (ch, 8);
  SET_BIT (obj->weapflags, WEAPON_FLAMING);
}

void
do_obliviate (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  int dam;
  char buf[MIL];

  argument = one_argument (argument, arg);

  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_OUTR] < 5)
    {
      send_to_char ("You need level 5 in Outrage to use Obliviate!.\n\r", ch);
      return;
    }
  if (arg[0] == '\0')
    {
      send_to_char ("Whom do you wish to use this on?\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_safe (ch, victim))
    return;
  dam =
    number_range ((ch->pcdata->powers[WRA_OUTR] * 1200),
		  (ch->pcdata->powers[WRA_OUTR] * 2000));
  if (ch->pcdata->powers[WRA_OUTR] > 5)
    dam /= 2;
  if (IS_NYM (ch, NYM_DEATHPLANE))
    dam *= 2;
/*  act ("You Obliviate $N with a glowing fist.", ch, NULL, victim, TO_CHAR);
  act ("$n punches you with a massive glowing fist.", ch, NULL, victim,
       TO_VICT); */
  sprintf (buf, "You Obliviate $N with a glowing fist.");
  act (buf, ch, NULL, victim, TO_CHAR);
  sprintf (buf, "Your Obliviate strikes $N hard #r[#R%d#r]#n.", dam);
  act (buf, ch, NULL, victim, TO_CHAR);
  if (!IS_NPC (victim) && victim != NULL)
    {
      sprintf (buf,
	       "$n punches you with a massive glowing fist #r[#R%d#r]#n.",
	       dam);
      act (buf, ch, NULL, victim, TO_VICT);
    }
// mage_damage (ch, victim, dam, "Obliviate", MAGEDAM_OTHER);
  hurt_person (ch, victim, dam, TRUE);
  waiting (ch, 8);
  return;
}

/*
 *Pandemonium arcanoi
 *1. Weirdness
 *2. Befuddlement
 *3. Ether
 *4. Foulhumor
 *5. Tempus
 */
void
do_weirdness (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char buf[MIL];

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->powers[WRA_PAND] < 1)
    {
      send_to_char
	("You must obtain level 1 Pandemonium to use Weirdness.\n\r", ch);
      return;
    }

  if (ch->pcdata->followers > 4)
    {
      send_to_char ("Nothing happens.\n\r", ch);
      return;
    }

  ch->pcdata->followers++;


  victim = create_mobile (get_mob_index (30000));
  victim->short_descr = str_dup (ch->name);
  sprintf (buf, "%s is hovering here.\n\r", ch->name);
  victim->long_descr = str_dup (buf);
  victim->name = str_dup (ch->name);
  victim->level = 200;
  victim->max_hit = ch->max_hit;
  victim->hit = victim->max_hit;
  victim->max_mana = ch->max_mana;
  victim->mana = victim->max_mana;
  victim->max_move = ch->max_move;
  victim->move = victim->max_move;
  victim->hitroll = ch->hitroll;
  victim->damroll = ch->damroll;
  //SET_BIT(victim->flag2, VAMP_CLONE);
  SET_BIT (victim->act, ACT_NOEXP);
  char_to_room (victim, ch->in_room);
  act
    ("You twist your corpus and in a flash of putrid smoke you split in two.",
     ch, NULL, victim, TO_CHAR);
  act ("$n twists $s corpus and in a flash of putrid smoke, splits in two.",
       ch, NULL, victim, TO_ROOM);
  return;

}

void
do_befuddlement (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  int sn;
  int level;
  int spelltype;
  char buf[MSL];
  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->powers[WRA_PAND] < 2)
    {
      send_to_char
	("You must obtain level 2 Pandemonium to use Befuddlement.\n\r", ch);
      return;
    }

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

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

  if (is_safe (ch, victim))
    return;

  sprintf (buf, "A look of concentration crosses your face.");
  act (buf, ch, NULL, NULL, TO_CHAR);
  sprintf (buf, "A look of concentration crosses over $n's face.\n\r");
  act (buf, ch, NULL, victim, TO_ROOM);

  if ((sn = skill_lookup ("charm")) < 0)
    return;
  spelltype = skill_table[sn].target;
  level = 240;
  (*skill_table[sn].spell_fun) (sn, level, ch, victim);
  waiting (ch, 12);
  return;
}

/*
void
do_tempus (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  int dam;

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->powers[WRA_PAND] < 5)
    {
      send_to_char
	("You must obtain level 5 Pandemonium to use Tempus Fugit.\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    {
      send_to_char ("Whom do you wish to Call Lightning upon?\n\r", ch);
      return;
    }

  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      send_to_char ("You were unable to locate your victim.\n\r", ch);
      return;
    }

  if (victim->level < 3)
    {
      send_to_char ("They must be an avatar!\n\r", ch);
      return;
    }

  if (weather_info.sky != SKY_LIGHTNING)
    {
      send_to_char ("There is no lightning in the sky to call!\n\r", ch);
      return;
    }

  waiting (ch, 16);
  dam =
    number_range ((ch->pcdata->powers[WRA_PAND] * 150),
		  (ch->pcdata->powers[WRA_PAND] * 200));
  if (!IS_NPC (ch))
    dam -= number_range (100, 150);

  mage_damage (ch, victim, dam, "lightning blast", MAGEDAM_ELECTRIC);
  return;
}
*/
/*
 *Phantasm arcanoi
 *1. Elysia *none yet*
 *2. Lucidity *none yet*
 *3. Dreams
 *4. Phantasmagoria
 *5. Agon -If I can do what I want with this ooooh, nasty
 */
/* Elysia nothing figured out yet */
/* Lucidity nothing figured out yet */
void
do_dreams (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg1[MIL];
  argument = one_argument (argument, arg1);

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->powers[WRA_PHAN] < 3)
    {
      send_to_char
	("You must obtain level 3 Phantasm to use Dream Eater.\n\r", ch);
      return;
    }

  if (arg1[0] == '\0')
    {
      send_to_char ("Put who to sleep?\n\r", ch);
      return;
    }

  if ((victim = get_char_room (ch, arg1)) == NULL)
    {
      send_to_char ("They aren't here.\n\r", ch);
      return;
    }
  if (is_safe (ch, victim))
    return;
  if (ch == victim)
    {
      send_to_char ("Not on yourself!\n\r", ch);
      return;
    }

  if (ch->position == POS_FIGHTING)
    {
      send_to_char ("Not while fighting!\n\r", ch);
      return;
    }

  if (victim->in_room == ch->in_room)
    {
      act ("You throw sand into $N's eyes, putting them to sleep.", ch, NULL,
	   victim, TO_CHAR);
      act ("$n throws sand in your eyes.  You feel sleepy.", ch, NULL, victim,
	   TO_VICT);
      victim->position = POS_SLEEPING;
      waiting (ch, 12);
      waiting (victim, 16);
      return;
    }

  return;
}

void
do_phantasmagoria (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  AFFECT_DATA af;

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->powers[WRA_PHAN] < 4)
    {
      send_to_char
	("You must obtain level 4 Phantasm to use Phantasmagoria.\n\r", ch);
      return;
    }

  if (ch->pcdata->followers > 5)
    {
      send_to_char ("Nothing seems to happen.\n\r", ch);
      return;
    }

  send_to_char
    ("You disappear and in a flash of putrid smoke you return cackling.\n\r",
     ch);
  act ("$n disappears and in a flash of putrid smoke they return cackling.",
       ch, NULL, NULL, TO_ROOM);

  ch->pcdata->followers++;
  victim = create_mobile (get_mob_index (MOB_VNUM_GUARDIAN));
  victim->name = str_dup ("monster");
  victim->short_descr = str_dup ("A hideous monster");
  free_string (victim->long_descr);
  victim->long_descr = str_dup ("A multi limbed monstrosity stands here.aa");
  victim->level = 200;
  victim->hit = 5000;
  victim->max_hit = 5000;
  victim->hitroll = 50;
  victim->damroll = 50;
  victim->armor = 300;
  SET_BIT (victim->act, ACT_NOEXP);
  char_to_room (victim, ch->in_room);
  add_follower (victim, ch);
  af.duration = -1;
  af.location = APPLY_NONE;
  af.modifier = 0;
  af.bitvector = AFF_CHARM;
  affect_to_char (victim, &af);
  act ("$N materializes next to $n.", ch, NULL, victim, TO_ROOM);
  return;
}

void
do_agon (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  int dam;

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->deathticker > 0)
    {
      stc ("your body hasnt fully recovered yet!\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_PHAN] < 1)
    {
      send_to_char ("You must obtain level 5 Phantasm to use Agon.\n\r", ch);
      return;
    }
  if (IS_AFFECTED (ch, AFF_CURSE))
    {
      send_to_char ("Not while cursed.\n\r", ch);
      return;
    }
  if (arg[0] == '\0')
    {
      send_to_char ("Whom do you wish to use this on?\n\r", ch);
      return;
    }
  if (ch->fighting == NULL)
    {
      stc ("You cant start a fight with agon!\n\r", ch);
      return;
    }
  if (ch == victim)
    {
      send_to_char ("You can't do this to yourself.\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_NYM (ch, NYM_DEATHPLANE) && !IS_NYM (victim, NYM_DEATHPLANE))
    {
      if (is_safe (ch, victim))
	return;
      REMOVE_BIT (ch->nymbits, NYM_DEATHPLANE);
      act ("$n comes flying out of a shadow.", ch, NULL, NULL, TO_ROOM);
    }
  else if (!IS_NYM (ch, NYM_DEATHPLANE) && IS_NYM (victim, NYM_DEATHPLANE))
    {
      if (is_safe (ch, victim))
	return;
      SET_BIT (ch->nymbits, NYM_DEATHPLANE);
      act ("$n comes flying out of a shadow.", ch, NULL, NULL, TO_ROOM);
    }

  if (is_safe (ch, victim))
    return;

  dam =
    number_range ((ch->pcdata->powers[WRA_PHAN] * 75),
		  (ch->pcdata->powers[WRA_PHAN] * 100));
  act ("You punch $N straight between planes.", ch, NULL, victim, TO_CHAR);
  act ("$n punches you so hard it sends you crashing into another plane.", ch,
       NULL, victim, TO_VICT);
  mage_damage (ch, victim, dam, "Agon", MAGEDAM_OTHER);
  if (!IS_NYM (victim, NYM_DEATHPLANE))
    {
      SET_BIT (victim->nymbits, NYM_DEATHPLANE);
      if (!IS_NYM (ch, NYM_DEATHPLANE))
	{
	  SET_BIT (ch->nymbits, NYM_DEATHPLANE);
	}
      return;
    }
  else if (IS_NYM (victim, NYM_DEATHPLANE))
    {
      REMOVE_BIT (victim->nymbits, NYM_DEATHPLANE);
      if (IS_NYM (ch, NYM_DEATHPLANE))
	{
	  REMOVE_BIT (ch->nymbits, NYM_DEATHPLANE);
	}
      return;
    }
  waiting (ch, 16);
  return;
}

/*
 *Puppetry arcanoi MUHAHAHAHA!!
 *1. Skinride
 *2. Sudden
 *3. Mastervoice
 *4. Rein
 *5. Obliterate    LXS can bite me - Nephesch
 */

void
do_skinride (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];
  char arg2[MIL];
  CHAR_DATA *victim;
  DESCRIPTOR_DATA *d;
  one_argument (argument, arg);
  one_argument (argument, arg2);

  if ((!IS_WRAITH (ch) || !IS_HERO (ch)) && !IS_NPC (ch))
    {
      do_huh (ch, "");
      return;
    }
  if (IS_NPC (ch))
    {
      do_return (ch, "");
      return;
    }
  if (ch->pcdata->powers[WRA_PUPP] < 1)
    {
      send_to_char ("You must obtain level 1 Puppetry to use Skinride.\n\r",
		    ch);
      return;
    }

  if (IS_SET (ch->evenmore, WRA_SKINRIDE))
    {
      if (!str_cmp (arg2, "stop"))
	{
	  do_follow (ch, "self");
	  REMOVE_BIT (ch->evenmore, WRA_SKINRIDE);
	  for (d = descriptor_list; d != NULL; d = d->next)
	    {
	      if (d->snoop_by == ch->desc)
		d->snoop_by = NULL;
	    }
	  send_to_char ("You leave the body of your host behind.\n\r", ch);
	  return;
	}
      else
	{
	  send_to_char ("You are already skinriding someone!", ch);
	}
    }


  if (arg[0] == '\0')
    {
      send_to_char ("Who do you wish to Skinride?\n\r", ch);
      return;
    }



  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      send_to_char ("They are not here.\n\r", ch);
      return;
    }
  if (IS_NPC (victim))
    {
      if (victim->pIndexData->vnum == 3011)
	return;
      do_switch (ch, argument);
      return;
    }

  if (IS_WRAITH (victim) || IS_IMMORTAL (victim) || IS_RNPC (victim))
    {
      send_to_char ("You cannot Skinride them!\n\r", ch);
      return;
    }

//    victim->unveil = ch;
  victim->desc->snoop_by = ch->desc;
  SET_BIT (ch->evenmore, WRA_SKINRIDE);
  send_to_char ("You enter their body.\n\r", ch);
  SET_BIT (victim->xxxbits, XXX_SKINRODE);
  do_follow (ch, victim->name);
  return;
//    add_follower (ch, victim);
}


/*void do_skinride( CHAR_DATA *ch, char *argument )
{
    char arg[MIL];
    char arg[MIL];
    CHAR_DATA *victim;
    DESCRIPTOR_DATA     *d;   
    one_argument( argument, arg );

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


    if ( ch->pcdata->powers[WRA_PUPP] < 1 )
    {
      send_to_char("You must obtain level 1 Puppetry to use Skinride.\n\r",ch);
      return;
    }

    if ( arg[0] == '\0' )
    {
	send_to_char( "Skinride 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(ch, AFF_CHARM) && ch->master != NULL )
    {
	act( "But you'd rather follow $N!", ch, NULL, ch->master, TO_CHAR );
	return;
    }

    if ( victim == ch )
    {
	if ( ch->master == NULL )
	{
	    send_to_char( "You already follow yourself.\n\r", ch );
	    return;
	}
	stop_skinride( ch,"" );
	REMOVE_BIT(ch->act, PLR_WIZINVIS);
	for ( d = descriptor_list; d != NULL; d = d->next )
	{
	    if ( d->snoop_by == ch->desc )
		d->snoop_by = NULL;
	}
	return;
    }
    
    if ( ch->master != NULL )
	stop_skinride( ch,"" );

    add_skinride( ch, victim );
    if ( ch->desc != NULL )
    {
	for ( d = ch->desc->snoop_by; d != NULL; d = d->snoop_by )
	{
	    if ( d->character == victim || d->original == victim )
	    {
		send_to_char( "No snoop loops.\n\r", ch );
		return;
	    }
	}
    }
    victim->desc->snoop_by = ch->desc;
    SET_BIT(ch->act, PLR_WIZINVIS);
    return;
}
void add_skinride( CHAR_DATA *ch, char *argument )
{
char arg[MSL];
argument = one_argument(argument,arg);

    if ( ch->master != NULL )
    {
	bug( "Add_follower: non-null master.", 0 );
	return;
    }

    ch->master        = arg;
    ch->leader        = NULL;

    if ( can_see( master, ch ) ){
    act( "You are now skinriding $N.",  ch, NULL, master, TO_CHAR );
    SET_BIT(ch->evenmore,WRA_SKINRIDE);}
    return;
}



void stop_skinride( CHAR_DATA *ch )
{
    if ( ch->master == NULL )
    {
	bug( "Stop_follower: null master.", 0 );
	return;
    }

    if ( IS_AFFECTED(ch, AFF_CHARM) )
    {
	REMOVE_BIT( ch->affected_by, AFF_CHARM );
	affect_strip( ch, gsn_charm_person );
    }

    if ( can_see( ch->master, ch ) )
    act( "You stop skinriding $N.", ch, NULL, ch->master, TO_CHAR    );

    ch->master = NULL;
    ch->leader = NULL;
    return;
}
*/
/* Sudden not in */
void
do_sudden (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  char arg2[MIL];
  argument = one_argument (argument, arg);
  argument = one_argument (argument, arg2);
  int door;
  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      stc ("They arent here.\n\r", ch);
      return;
    }

  if (!IS_XXX (victim, XXX_SKINRODE))
    {
      stc ("You are not skinriding them!\n\r", ch);
      return;
    }

  if (arg2 == "north")
    do_north (victim, "");
  if (arg2 == "south")
    do_south (victim, "");
  if (arg2 == "east")
    do_east (victim, "");
  if (arg2 == "west")
    do_west (victim, "");
  if (arg2 == "up")
    do_up (victim, "");
  if (arg2 == "down")
    do_down (victim, "");
//move_char (victim, door);
  return;
}

/* Obliterate not in, all 5 going to take a wh8ile but be well worth it */
/*
 *Usury arcanoi
 *1. Transfering
 *2. Charitable
 *3. Withdrawl
 *4. Exchange
 *5. Investment
 */
/* getting bored so Transfer isn't in */

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

  argument = one_argument (argument, arg);

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

  if (ch->pcdata->powers[WRA_USUR] < 2)
    {
      send_to_char
	("You must obtain level 2 Usury to use Charitable Trust.\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    {
      send_to_char ("Whom do you wish to heal?\n\r", ch);
      return;
    }

  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      send_to_char ("You cannot find them here.\n\r", ch);
      return;
    }

  if (victim == ch)
    {
      send_to_char ("You cannot use this power on yourself!\n\r", ch);
      return;
    }

  if (victim->hit >= victim->max_hit)
    {
      send_to_char ("They are already at full health!\n\r", ch);
      return;
    }
  ch->hit - (ch->pcdata->powers[WRA_USUR] * 1000);
  act ("You suck the injury out of $N and into yourself.", ch, NULL, victim,
       TO_CHAR);
  act ("$n lays $s hands on you, and the pain drains away and into $m.", ch,
       NULL, victim, TO_VICT);
  act
    ("$n lays $s hands on $N, and $N's wounds begin to close as $n begins developing them.",
     ch, NULL, victim, TO_NOTVICT);
  victim->hit += (ch->pcdata->powers[WRA_USUR] * 1000);
  waiting (ch, 12);
  return;
}

/* Withdrawl not in */
/* Exchange not in */
void
do_embracesoul (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
/*
    if (!IS_SET(ch->special, SPC_WRAITHPRINCE) && IS_WRAITH(ch))
    {
	send_to_char("You haven't been granted permission to embrace the souls of others.\n\r",ch);
	return;
    }

    if (!IS_SET(ch->special, SPC_WRAITHSOUL) && IS_WRAITH(ch))
    {
	send_to_char("You haven't been granted embrace the souls of others.\n\r",ch);
	return;
    }
*/
  if (arg[0] == '\0')
    {
      send_to_char ("Embrace 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 (IS_IMMORTAL (victim))
    {
      send_to_char ("Not on Immortals's.\n\r", ch);
      return;
    }

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

  if (IS_WRAITH (ch))
    {
      send_to_char ("They are already a restless dead.\n\r", ch);
      return;
    }

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

  if (IS_VAMPIRE (victim))
    {
      send_to_char ("They are already dead!\n\r", ch);
      return;
    }

  if (IS_MAGE (victim))
    {
      send_to_char ("Their avatars prevent them from leaving.\n\r", ch);
      return;
    }

  if (IS_NINJA (victim))
    {
      send_to_char ("They are too disciplined to leave their guild.\n\r", ch);
      return;
    }

  if (IS_WEREWOLF (victim))
    {
      send_to_char ("Their rage keeps them from joining you!\n\r", ch);
      return;
    }

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


  if (IS_HIGHLANDER (ch))
    {
      send_to_char ("But they are truly immortal.\n\r", ch);
      return;
    }

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

  if (victim->exp < 500000)
    {
      send_to_char
	("They cannot afford the 500000 exp required to leave their life.\n\r",
	 ch);
      return;
    }

  victim->exp -= 500000;

  act ("You embrace $N's soul and form them a corpus.", ch, NULL, victim,
       TO_CHAR);
  act ("$n embraces $N's soul and forms them a corpus.", ch, NULL, victim,
       TO_NOTVICT);
  act ("$n embraces your soul and forms you a corpus.", ch, NULL, victim,
       TO_VICT);
  send_to_char
    ("You are now a Wraith, welcome to the ranks of the restless dead!\n\r",
     victim);
  free_string (victim->lord);
  victim->lord = str_dup (ch->name);
  victim->class = CLASS_WRAITH;
  SET_BIT (victim->nymbits, NYM_DEATHPLANE);
  SET_BIT (victim->affected_by, NYM_DEATHSIGHT);
  save_char_obj (ch);
  save_char_obj (victim);
  return;
}

void
do_sculpt (CHAR_DATA * ch, char *argument)
{
  OBJ_INDEX_DATA *pObjIndex;
  OBJ_DATA *obj;
  char buf[MSL];
  int vnum = 0;

  if (IS_NPC (ch))
    return;

  if (!IS_WRAITH (ch))
    {
      do_huh (ch, "");
      return;
    }

  if (ch->pcdata->powers[WRA_MOLI] < 2)
    {
      send_to_char ("You need level 2 in Moliate to sculpt.\n\r", ch);
      return;
    }

  if (ch->level < 12 && ch->practice < 50)
    {
      stc ("You require 50 primal for this.\n\r", ch);
      return;
    }

  vnum = 29681;

  if (vnum == 0 || (pObjIndex = get_obj_index (vnum)) == NULL)
    {
      stc ("Missing object, please inform Linksys.\n\r", ch);
      return;
    }
  obj = create_object (pObjIndex, 50);
  obj_to_char (obj, ch);
  if (IS_NECROMANCER (ch) && !IS_XXX (ch, XXX_HASSTAFF))
    obj->value[0] = 15000;
  obj->value[1] = 305;
  obj->value[2] = 605;
  obj->condition = 100;
  obj->toughness = 100;
  obj->resistance = 1;
  if (IS_NECROMANCER (ch) && !IS_XXX (ch, XXX_HASSTAFF))
    {
      free_string (obj->short_descr);
      obj->short_descr = str_dup ("#nA #ostaff #nmade of #7b#0o#7n#0e#7s#n");
      free_string (obj->description);
      obj->description =
	str_dup ("#nA #ostaff #nmade of #7b#0o#7n#0e#7s#n is floating here.");
      free_string (obj->name);
      obj->name = str_dup ("staff bones wraith");
      add_affect (obj, APPLY_MANA, 2500);
      SET_BIT (ch->xxxbits, XXX_HASSTAFF);
    }
  SET_BIT (obj->quest, QUEST_RELIC);

  add_affect (obj, APPLY_DAMROLL, 250);
  add_affect (obj, APPLY_HITROLL, 250);
  add_affect (obj, APPLY_DAMCAP, 100);
  add_affect (obj, APPLY_HIT, 1250);

  if (ch->level < 12)
    ch->practice -= 50;

  free_string (obj->questmaker);
  obj->questmaker = str_dup (ch->name);
  free_string (obj->creator);
  sprintf (buf, "%s (Sculpt)", ch->name);
  obj->creator = str_dup (buf);
  free_string (obj->questowner);
  obj->questowner = str_dup (ch->name);

  act ("You create a $p with parts from your old body.\n\r", ch, obj,
       NULL, TO_CHAR);
  act ("$n cackles and creates $p with parts from $s old body.\n\r", ch,
       obj, NULL, TO_ROOM);
  return;
}

void
do_gremlinize (CHAR_DATA * ch, char *argument)
{
  OBJ_DATA *obj;
  CHAR_DATA *victim;
  char arg[MSL];

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;
  if (!IS_WRAITH (ch))
    {
      stc ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_INHA] < 3)
    {
      send_to_char
	("You must obtain level 3 in Inhabit to use Gremlinize.\n\r", ch);
      return;
    }
  if (arg[0] == '\0' && ch->fighting == NULL)
    {
      send_to_char ("Whom do you wish to use this on?\n\r", ch);
      return;
    }

  if (ch->fighting == NULL)
    {
      if ((victim = get_char_room (ch, arg)) == NULL)
	{
	  send_to_char ("You are unable to find them in this room.\n\r", ch);
	  return;
	}
    }
  else
    victim = ch->fighting;

  if (is_safe (ch, victim))
    return;
  if ((obj = get_eq_char (victim, WEAR_WIELD)) == NULL
      || obj->item_type != ITEM_WEAPON)
    {
      if ((obj = get_eq_char (victim, WEAR_HOLD)) == NULL
	  || obj->item_type != ITEM_WEAPON)
	{
	  if ((obj = get_eq_char (victim, WEAR_SPECIAL)) == NULL
	      || obj->item_type != ITEM_WEAPON)
	    {
	      if ((obj = get_eq_char (victim, WEAR_THIRD_HAND)) == NULL
		  || obj->item_type != ITEM_WEAPON)
		{
		  if ((obj = get_eq_char (victim, WEAR_FOURTH_HAND)) == NULL
		      || obj->item_type != ITEM_WEAPON)
		    {
		      send_to_char ("They are not holding any weapons!.\n\r",
				    ch);
		      return;
		    }
		}
	    }
	}
    }

  if (obj != NULL && IS_SET (obj->weapflags, WEAPON_BONDED))
    {
      if (number_range (1, 10) > 3)
	{
	  act ("$p refuses to let your energies affect it.", ch, obj, victim,
	       TO_CHAR);
	  return;
	}
    }


  obj_from_char (obj);
  obj_to_char (obj, victim);
  act ("You alter the state of $N's weapon, causing $M to drop it.", ch, NULL,
       victim, TO_CHAR);
  act ("$n's eyes fade to dark black.", ch, NULL, NULL, TO_ROOM);
  act ("$p shakes violently, causing you to drop it.", ch, obj, victim,
       TO_VICT);
  SET_BIT (obj->weapflags, WEAPON_GREMLIN);
  waiting (ch, 16);
  return;
}

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

  if (IS_NPC (ch))
    return;

  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (has_fighttimer (ch))
    return;
  if (ch->pcdata->powers[WRA_PAND] < 5)
    {
      stc ("You must have level 5 pandemonium to use this power!\n\r", ch);
      return;
    }
  if (ch->in_room == NULL)
    {
      send_to_char ("Nothing happens.\n\r", ch);
      return;
    }

  if (IS_SET (ch->in_room->added_flags, ROOM2_TEMPEST))
    {
      REMOVE_BIT (ch->in_room->added_flags, ROOM2_TEMPEST);
      send_to_char ("You banish the slow effect from the room!\n\r", ch);
      act ("A look of concentration crosses $n's face.", ch, NULL, NULL,
	   TO_ROOM);
      act ("The room is no longer so slow.", ch, NULL, NULL, TO_ROOM);
      return;
    }

  SET_BIT (ch->in_room->added_flags, ROOM2_TEMPEST);
  send_to_char ("You call forth the slowing effect of tempus!\n\r", ch);
  act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
  act ("The room suddenly suddenly gets real slow!", ch, NULL, NULL, TO_ROOM);
  waiting (ch, 12);
  return;
}

void
do_investment (CHAR_DATA * ch, char *argument)
{
  OBJ_INDEX_DATA *pObjIndex;
  OBJ_DATA *obj;
  char buf[MSL];
  char buf2[MSL];
  char arg1[MIL];
  int wear;
  argument = one_argument (argument, arg1);

  if (IS_NPC (ch))
    return;

  if (!IS_WRAITH (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->powers[WRA_USUR] < 3)
    {
      stc ("you need level three usury for this!\n\r", ch);
      return;
    }
  if (arg1[0] == '\0')
    {
      send_to_char ("Syntax: wraitharmor <armour>\n\r", ch);
      send_to_char
	("Armor can be one of: Ring Collar Plate Helmet Leggings Boots Gauntlets\n\r                      Sleeves Cape Belt Bracer Visor.\n\r",
	 ch);
      return;
    }
  if (ch->pcdata->power[0] < 20000)
    {
      send_to_char
	("It costs 20000 power to create a piece of wraith armor.\n\r", ch);
      return;
    }
  if ((pObjIndex = get_obj_index (OBJ_VNUM_PROTOPLASM)) == NULL)
    {
      send_to_char ("Error...missing object, please inform Corim.\n\r", ch);
      return;
    }

  obj = create_object (pObjIndex, 50);
  obj->weight = 1;
  obj->cost = 1000;
  obj->item_type = ITEM_ARMOR;
  obj->condition = 100;
  obj->toughness = 100;
  SET_BIT (obj->quest, QUEST_RELIC);
  obj->resistance = 1;
  obj->value[0] = 40;
  sprintf (buf, "%s wraith armor legend", arg1);
  free_string (obj->name);
  obj->name = str_dup (buf);
  if (!str_cmp (arg1, "ring"))
    {
      sprintf (buf, "#nA #0S#np#7e#nc#0t#nr#7a#nl #0R#ni#7n#ng#n");
      wear = ITEM_WEAR_FINGER;
    }
  else if (!str_cmp (arg1, "collar"))
    {
      sprintf (buf, "#nA #0S#np#7e#nc#0t#nr#7a#nl #0C#no#7l#nl#0a#nr#n");
      wear = ITEM_WEAR_NECK;
    }
  else if (!str_cmp (arg1, "plate"))
    {
      sprintf (buf,
	       "#nA #0S#np#7e#nc#0t#nr#7a#nl #0B#nr#7e#na#0s#nt#7p#nl#0a#nt#7e#n");
      wear = ITEM_WEAR_BODY;
    }
  else if (!str_cmp (arg1, "helmet"))
    {
      sprintf (buf, "#nA #0S#np#7e#nc#0t#nr#7a#nl #0H#ne#7l#nm#0e#nt#n");
      wear = ITEM_WEAR_HEAD;
    }
  else if (!str_cmp (arg1, "leggings"))
    {
      sprintf (buf,
	       "#nA #0P#na#7i#nr #0o#nf #0S#np#7e#nc#0t#nr#7a#nl #0L#ne#7g#ng#0i#nn#7g#ns#n");
      wear = ITEM_WEAR_LEGS;
    }
  else if (!str_cmp (arg1, "boots"))
    {
      sprintf (buf,
	       "#nA #0P#na#7i#nr #0O#nf #0S#np#7e#nc#0t#nr#7a#nl #0B#no#7o#nt#0s#n");
      wear = ITEM_WEAR_FEET;
    }
  else if (!str_cmp (arg1, "gauntlets"))
    {
      sprintf (buf,
	       "#nA #0P#na#7i#nr #0o#nf #0S#np#7e#nc#0t#nr#7a#nl #0G#nl#7o#nv#0e#ns#n");
      wear = ITEM_WEAR_HANDS;
    }
  else if (!str_cmp (arg1, "sleeves"))
    {
      sprintf (buf,
	       "#nA #0P#na#7i#nr #0o#nf #0S#np#7e#nc#0t#nr#7a#nl #0S#nl#7e#ne#0v#ne#7s#n");
      wear = ITEM_WEAR_ARMS;
    }
  else if (!str_cmp (arg1, "cape"))
    {
      sprintf (buf, "#nA #0S#np#7e#nc#0t#nr#7a#nl #0A#nu#7r#na#n");
      wear = ITEM_WEAR_ABOUT;
    }
  else if (!str_cmp (arg1, "belt"))
    {
      sprintf (buf, "#nA #0S#np#7e#nc#0t#nr#7a#nl #0G#ni#7r#nt#0h#n");
      wear = ITEM_WEAR_WAIST;
    }
  else if (!str_cmp (arg1, "bracer"))
    {
      sprintf (buf,
	       "#nA #0S#np#7e#nc#0t#nr#7a#nl #0W#nr#7i#ns#0t#ng#7u#na#0r#nd#n");
      wear = ITEM_WEAR_WRIST;
    }
  else if (!str_cmp (arg1, "visor"))
    {
      sprintf (buf, "#nA #0S#np#7e#nc#0t#nr#7a#nl #0M#na#7s#nk#n");
      wear = ITEM_WEAR_FACE;
    }

  else
    {
      do_investment (ch, "");
      return;
    }
  ch->pcdata->power[0] -= 20000;

  SET_BIT (obj->wear_flags, ITEM_TAKE);
  SET_BIT (obj->wear_flags, wear);
  free_string (obj->short_descr);
  obj->short_descr = str_dup (buf);

  sprintf (buf2, buf, "is floating here");
  free_string (obj->description);
  obj->description = str_dup (buf2);

  free_string (obj->questmaker);
  obj->questmaker = str_dup (ch->name);

  free_string (obj->questowner);
  obj->questowner = str_dup (ch->name);

  free_string (obj->creator);
  sprintf (buf, "%s (Wraith)", ch->name);
  obj->creator = str_dup (buf);

  SET_BIT (obj->spectype, SITEM_LEGEND);
  SET_BIT (obj->weapflags, WEAPON_WRAITH);
  obj_to_char (obj, ch);
  act ("$p appears in your hands in a blast of flames.", ch, obj, NULL,
       TO_CHAR);
  act ("$p appears in $n's hands in a blast of flames.", ch, obj, NULL,
       TO_ROOM);
  return;
}

void
do_castingout (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg1[MIL];
  argument = one_argument (argument, arg1);

  if (IS_NPC (ch))
    return;

  if ((victim = get_char_room (ch, arg1)) == NULL)
    {
      stc ("They arnt here.\n\r", ch);
      return;
    }
  if (IS_NPC (victim))
    {
      do_return (victim, "");
/*
   if (victim->desc->original == NULL)
     {
       send_to_char ("You aren't switched.\n\r", ch);
       return;
     }
   send_to_char ("You return to your original body.\n\r", victim);
   REMOVE_BIT (victim->desc->original->extra, EXTRA_SWITCH);
   victim->desc->character = victim->desc->original;
   victim->desc->original = NULL;
   victim->desc->character->desc = victim->desc;
   victim->desc = NULL; */
    }
  else
    {
      if (victim->desc->snoop_by == NULL)
	{
	  send_to_char ("They arnt infected!\n\r", ch);
	  return;
	}
      victim->desc->snoop_by = NULL;
    }
  act ("$n lays $s hands on $N, casting out the demons that haunt them.", ch,
       NULL, victim, TO_NOTVICT);
  act ("You lay your hands on $N, casting out the demons that haunt them.",
       ch, NULL, victim, TO_CHAR);
  act ("$n lays $s hands on you, casting out the demons that haunt them.", ch,
       NULL, victim, TO_VICT);

  return;
}


void
do_empower (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  AFFECT_DATA af;
  int mcost = 200, gen, sn;
  gen = c

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

Site Stats

Snippets: 1791
Codebases: 571