ninja.c

demise/src/ninja.c · 101.5 KB

From the archive dodbackup-final.tar.gz

Download the archive   « Back to the archive contents

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

 /**************************************************************************
 *  God Wars Mud originally written by KaVir aka Richard Woolcock.         *
 *  Changes done to the code done by Sage aka Walter Howard, this mud is   *
 *  for the public, however if you run this code it means you agree        *
 *  to the license.low, license.gw, and license.merc have fun. :)          *
 ***************************************************************************/

 /************************************
  * Yep, this is the Ninjas from LoW *
  * adapted to GW Deluxe/GW2k by me, *
  * Hagrid./ new additions by Corim  *
  ************************************/

#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"

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

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

  if (IS_NPC (ch))
    return;

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

//Path's by Corim aka Infinity

  if (ch->pcdata->npowers[NPATH_LIGHT] < 1
      && ch->pcdata->npowers[NPATH_DARK] < 1)
    {
      sprintf (buf2,
	       "#7    You have not chosen a path #o (#CYin#o/#cYang#o)#n   \n\r\n\r#C         Yin#o|          #p^          #o|#cYang#n        \n\r");
    }
  if (ch->pcdata->npowers[NPATH_LIGHT] > 0
      && ch->pcdata->npowers[NPATH_DARK] > 0)
    sprintf (buf2, "#7         You are bugged inform an Imm!      #n   \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] > 0
      && ch->pcdata->npowers[NPATH_DARK] < 1)
    sprintf (buf2,
	     "#C         Yin#o|        #R *#p^          #o|#cYang#n        \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] > 1
      && ch->pcdata->npowers[NPATH_DARK] < 1)
    sprintf (buf2,
	     "#C         Yin#o|       #R **#p^        #o  |#cYang  #n      \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] > 2
      && ch->pcdata->npowers[NPATH_DARK] < 1)
    sprintf (buf2,
	     "#C         Yin#o|       #R***#p^   #o       |#cYang    #n    \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] > 3
      && ch->pcdata->npowers[NPATH_DARK] < 1)
    sprintf (buf2,
	     "#C         Yin#o|      #R****#p^         #o |#cYang  #n      \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] > 4
      && ch->pcdata->npowers[NPATH_DARK] < 1)
    sprintf (buf2,
	     "#C         Yin#o|     #R*****#p^       #o   |#cYang    #n    \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] > 5
      && ch->pcdata->npowers[NPATH_DARK] < 1)
    sprintf (buf2,
	     "#C         Yin#o|   #R ******#p^     #o     |#cYang     #n   \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] > 6
      && ch->pcdata->npowers[NPATH_DARK] < 1)
    sprintf (buf2,
	     "#C         Yin#o|   #R*******#p^#o          |#cYang     #n   \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] > 7
      && ch->pcdata->npowers[NPATH_DARK] < 1)
    sprintf (buf2,
	     "#C         Yin#o|  #R********#p^#o          |#cYang     #n   \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] > 8
      && ch->pcdata->npowers[NPATH_DARK] < 1)
    sprintf (buf2,
	     "#C         Yin#o| #R*********#p^#o          |#cYang     #n   \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] > 9
      && ch->pcdata->npowers[NPATH_DARK] < 1)
    sprintf (buf2,
	     "#C         Yin#o|#R**********#p^   #o       |#cYang     #n   \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] < 1
      && ch->pcdata->npowers[NPATH_DARK] > 0)
    sprintf (buf2,
	     "#C         Yin#o|          #p^#R*      #o   |#cYang     #n   \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] < 1
      && ch->pcdata->npowers[NPATH_DARK] > 1)
    sprintf (buf2,
	     "#C         Yin#o|          #p^#R**    #o    |#cYang       #n \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] < 1
      && ch->pcdata->npowers[NPATH_DARK] > 2)
    sprintf (buf2,
	     "#C         Yin#o|         #p ^#R*** #o      |#cYang#n        \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] < 1
      && ch->pcdata->npowers[NPATH_DARK] > 3)
    sprintf (buf2,
	     "#C         Yin#o|          #p^#R****  #o    |#cYang#n        \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] < 1
      && ch->pcdata->npowers[NPATH_DARK] > 4)
    sprintf (buf2,
	     "#C         Yin#o|          #p^#R***** #o    |#cYang#n        \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] < 1
      && ch->pcdata->npowers[NPATH_DARK] > 5)
    sprintf (buf2,
	     "#C         Yin#o|         #p ^#R******#o    |#cYang  #n      \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] < 1
      && ch->pcdata->npowers[NPATH_DARK] > 6)
    sprintf (buf2,
	     "#C         Yin#o|       #p   ^#R*******#o   |#cYang#n        \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] < 1
      && ch->pcdata->npowers[NPATH_DARK] > 7)
    sprintf (buf2,
	     "#C         Yin#o|    #p      ^#R********#o  |#cYang#n        \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] < 1
      && ch->pcdata->npowers[NPATH_DARK] > 8)
    sprintf (buf2,
	     "#C         Yin#o|    #p      ^#R*********#o |#cYang#n        \n\r",
	     ch);
  if (ch->pcdata->npowers[NPATH_LIGHT] < 1
      && ch->pcdata->npowers[NPATH_DARK] > 9)
    sprintf (buf2,
	     "#C         Yin#o|    #p      ^#R**********#o|#cYang#n        \n\r",
	     ch);


  if (arg1[0] == '\0' && arg2[0] == '\0' || !IS_NINJA (ch))	//Dont ask, to lazy to reclass atm lets me see this sheet with out beeing a ninja, Corim
    {
      send_to_char ("#o----------------------------------------------#n\n\r",
		    ch);
      send_to_char ("              #o*#y*#o*#7 Principles #o*#y*#o*#n\n\r",
		    ch);
      send_to_char ("#o----------------------------------------------#n\n\r",
		    ch);
      sprintf (buf,
	       "\n\r#7     Sora     #o[#y%d#o]            #o[#y%d#o]   #7Chikyo#n\n\r\n\r",
	       ch->pcdata->npowers[NPOWER_SORA],
	       ch->pcdata->npowers[NPOWER_CHIKYU]);
      send_to_char (buf, ch);
      sprintf (buf,
	       "#7     Ningenno #o[#y%d#o]            #o[#y%d#o]  #7Bukikyo#n\n\r\n\r",
	       ch->pcdata->npowers[NPOWER_NINGENNO],
	       ch->pcdata->npowers[NPOWER_NINBUKI]);
      send_to_char (buf, ch);
      sprintf (buf,
	       "#7                 Bushido  #o[#y%d#o]\n\r\n\r",
	       ch->pcdata->npowers[NPOWER_BUSHIDO]);
      send_to_char (buf, ch);
      send_to_char (buf2, ch);
      send_to_char ("                                               \n\r",
		    ch);
      send_to_char ("#o----------------------------------------------#n\n\r",
		    ch);
      return;
    }
  if (arg2[0] == '\0')
    {
      if (!str_cmp (arg1, "sora"))
	{
	  send_to_char
	    ("#o----------------------------------------------------------------#n\n\r",
	     ch);
	  send_to_char
	    ("#y     Sora #o-#y The finding, observing, and locating principle.\n\r",
	     ch);
	  send_to_char
	    ("#o----------------------------------------------------------------#n\n\r",
	     ch);
	  if (ch->pcdata->npowers[NPOWER_SORA] < 1)
	    send_to_char ("#yYou have none of the Sora principles.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_SORA] > 0)
	    send_to_char
	      ("#yMitsukeru  #o-#y The scrying power to find enemies.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_SORA] > 1)
	    send_to_char
	      ("#yKoryou     #o-#y The read aura power, learn about your enemies.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_SORA] > 2)
	    send_to_char
	      ("#yKakusu     #o-#y Enhanced Hide. Only other ninjas can see you.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_SORA] > 3)
	    send_to_char
	      ("#yUro-Uro    #o-#y You leave no footprints behind.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_SORA] > 4)
	    send_to_char ("#yKanzuite   #o-#y The truesight power.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_SORA] > 5)
	    send_to_char
	      ("#yBomuzite   #o-#y By mixing a potion, you can put everyone in a room to sleep.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_SORA] > 6)
	    send_to_char
	      ("#yMizotamoyo #o-#y You can walk in darkness to reach others location.\r\n",
	       ch);
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  return;
	}
      else if (!str_cmp (arg1, "bushido"))
	{
	  send_to_char
	    ("#o----------------------------------------------------------------#n\n\r",
	     ch);
	  send_to_char
	    ("#y     Bushido #o-#y The Way of the Warrior.\n\r", ch);
	  send_to_char
	    ("#o----------------------------------------------------------------#n\n\r",
	     ch);
	  if (ch->pcdata->npowers[NPOWER_BUSHIDO] < 1)
	    send_to_char ("#yYou have none of the Bushido principles.\n\r",
			  ch);
	  if (ch->pcdata->npowers[NPOWER_BUSHIDO] > 0)
	    send_to_char
	      ("#yFudotai    #o-#y The immovable body, you can not be hurled.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_BUSHIDO] > 1)
	    send_to_char
	      ("#yGowaza     #o-#y Intercept and defeat punches thrown at you.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_BUSHIDO] > 2)
	    send_to_char
	      ("#yGisojutsu  #o-#y Disguise your self as your enemies.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_BUSHIDO] > 3)
	    send_to_char ("#yIttaken    #o-#y Flat throwing blade.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_BUSHIDO] > 4)
	    send_to_char
	      ("#yKenjutsu   #o-#y Increased parry from mastering the art of fencing.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_BUSHIDO] > 5)
	    send_to_char ("#yTetsubishi #o-#y Exploding caltrops.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_BUSHIDO] > 6)
	    send_to_char
	      ("#yKuki Tobi  #o-#y Leap over your enemy and stab them in the back.\n\r",
	       ch);
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  return;
	}
      else if (!str_cmp (arg1, "chikyo"))
	{
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  send_to_char
	    ("#y                Chikyo #o-#y Preparation for battle.\n\r",
	     ch);
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  if (ch->pcdata->npowers[NPOWER_CHIKYU] < 1)
	    send_to_char ("#yYou have none of the Chikyo principles.\n\r",
			  ch);
	  if (ch->pcdata->npowers[NPOWER_CHIKYU] > 0)
	    send_to_char ("#yTsuyoku    #o- #yToughness of a true ninja.\n\r",
			  ch);
	  if (ch->pcdata->npowers[NPOWER_CHIKYU] > 1)
	    send_to_char ("#ySongai     #o- #yEnhanced damage.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_CHIKYU] > 2)
	    send_to_char ("#yTsuiseki   #o-#y Enhanced parry.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_CHIKYU] > 3)
	    send_to_char ("#ySakeru     #o-#y Dodge more attacks.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_CHIKYU] > 4)
	    send_to_char
	      ("#yHaraKiri   #o-#y Hurt yourself to gain power.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_CHIKYU] > 5)
	    send_to_char
	      ("#yOrimasu    #o-#y Regenerate your being through willpower alone.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_CHIKYU] > 6)
	    send_to_char
	      ("#yGunaya     #o-#y Entrap your foes with a spiritual net.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_CHIKYU] > 7)
	    send_to_char ("#yTsuisechi  #o-#y Supreme parry.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_CHIKYU] > 8)
	    send_to_char
	      ("#yStride     #o-#y Stride through the shadows to backstab your enemy's.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_CHIKYU] > 9)
	    send_to_char
	      ("#yHelmet     #o-#y Create the Helmet of Glory.\n\r", ch);
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  return;
	}
      else if (!str_cmp (arg1, "bukikyo"))
	{
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  send_to_char
	    ("#y           Bukikyo #o-#y Weaponry And Tools Principle.\n\r",
	     ch);
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  if (ch->pcdata->npowers[NPOWER_NINBUKI] < 1)
	    send_to_char ("#yYou have none of the Bukikyo principles.\n\r",
			  ch);
	  if (ch->pcdata->npowers[NPOWER_NINBUKI] > 0)
	    send_to_char ("#yDokute     #o-#y Poison your weapons.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_NINBUKI] > 1)
	    send_to_char ("#yMaruKugi   #o-#y Round throwing spike.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_NINBUKI] > 2)
	    send_to_char
	      ("#yAshigiri   #o-#y Hamstring your enemy, slowing and hampering.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_NINBUKI] > 3)
	    send_to_char
	      ("#yDokuHari   #o-#y Acid covered throwing needles.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_NINBUKI] > 4)
	    send_to_char
	      ("#yBukiAiki   #o-#y Imbue a Ninja weapon with powerfull spells.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_NINBUKI] > 5)
	    send_to_char
	      ("#yBomuKasumi #o-#y Put a whole room to sleep with your Bomuzite.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_NINBUKI] > 6)
	    send_to_char ("#y           #o-#y .\n\r", ch);
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  return;
	}
      else if (!str_cmp (arg1, "ningenno"))
	{
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  send_to_char
	    ("#y       Ningenno #o-#y The battle, attacking and getting away.\n\r",
	     ch);
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  if (ch->pcdata->npowers[NPOWER_NINGENNO] < 1)
	    send_to_char ("#yYou have none of the Ningenno principles.\n\r",
			  ch);
	  if (ch->pcdata->npowers[NPOWER_NINGENNO] > 0)
	    send_to_char
	      ("#yTsume      #o-#y Ironclaws worn on wrist to aid in hand-to-hand.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_NINGENNO] > 1)
	    send_to_char ("#yHakunetsu  #o-#y You get super backstabs.\n\r",
			  ch);
	  if (ch->pcdata->npowers[NPOWER_NINGENNO] > 2)
	    send_to_char ("#yMienaku    #o-#y Never fail flee.\n\r", ch);
	  if (ch->pcdata->npowers[NPOWER_NINGENNO] > 3)
	    send_to_char
	      ("#yShiroken   #o-#y Added attack per round, like headbutt for demons.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_NINGENNO] > 4)
	    send_to_char
	      ("#ySeedBombs  #o-#y Hurl tiny seed bombs at your enemys.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_NINGENNO] > 5)
	    send_to_char
	      ("#yCircle     #o-#y Circle behind your opponent during battle.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPOWER_NINGENNO] > 6)
	    send_to_char
	      ("#yTrip       #o-#y Trip your opponent and send him to the ground.\n\r",
	       ch);
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  return;
	}
      else if (!str_cmp (arg1, "yin"))
	{
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  send_to_char
	    ("#y            Yin #o-#y the Path of Light, Good and Life.\n\r",
	     ch);
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  if (ch->pcdata->npowers[NPATH_LIGHT] < 1)
	    send_to_char ("#yYou have none of the powers from Yin.\n\r", ch);
	  if (ch->pcdata->npowers[NPATH_LIGHT] > 0)
	    send_to_char
	      ("#yDagger     #o-#y Create the Dagger of Life (dagger).\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_LIGHT] > 1)
	    send_to_char
	      ("#ySword      #o-#y Create the Yin Sword (sword).\n\r", ch);
	  if (ch->pcdata->npowers[NPATH_LIGHT] > 2)
	    send_to_char
	      ("#yYin Aura   #o-#y Aura of Good helping you in the fight against evil (aura).\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_LIGHT] > 3)
	    send_to_char
	      ("#yFury       #o-#y Rightous Fury, higher Michi (auto).\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_LIGHT] > 4)
	    send_to_char
	      ("#yYin Heal   #o-#y Heal your wounds or the wounds of your allies.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_LIGHT] > 5)
	    send_to_char
	      ("#yYin Speed  #o-#y Holy speed, a gift from your benevolent patron spirits.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_LIGHT] > 6)
	    send_to_char
	      ("#yYin Force  #o-#y Summon a wall of force to surround you and protect you from damage.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_LIGHT] > 7)
	    send_to_char
	      ("#yHeavenBless#o-#y The Celestials grants you a Heavenly Bless.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_LIGHT] > 8)
	    send_to_char
	      ("#yPlanetouch #o-#y Touch your equipment and imbue it with Celestial power.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_LIGHT] > 9)
	    send_to_char
	      ("#yPlanarwrath#o-#y Destroy your enemy's with the Wrath of the Celestials.\n\r",
	       ch);
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  return;
	}
      else if (!str_cmp (arg1, "yang"))
	{
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  send_to_char
	    ("#y           Yang #o-#y the Path of Dark, Evil and Death.\n\r",
	     ch);
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  if (ch->pcdata->npowers[NPATH_DARK] < 1)
	    send_to_char ("#yYou have none of the powers from Yang.\n\r", ch);
	  if (ch->pcdata->npowers[NPATH_DARK] > 0)
	    send_to_char
	      ("#yDagger     #o-#y Create the Dagger of Death.\n\r", ch);
	  if (ch->pcdata->npowers[NPATH_DARK] > 1)
	    send_to_char ("#ySword      #o-#y Create the Yang Sword.\n\r",
			  ch);
	  if (ch->pcdata->npowers[NPATH_DARK] > 2)
	    send_to_char
	      ("#yYang Aura  #o-#y Aura of Evil, helping you destroy the innocent (aura).\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_DARK] > 3)
	    send_to_char
	      ("#yYang Glaive#o-#y Strike down your enemys with this deadly boomerang.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_DARK] > 4)
	    send_to_char
	      ("#yDecay      #o-#y You can cause all things to rot and die.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_DARK] > 5)
	    send_to_char
	      ("#yYang Might #o-#y Unholy strength, granted by your malignous spirit patron.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_DARK] > 6)
	    send_to_char
	      ("#yYang Shield#o-#y A shield of death, that drains the life from your enemies.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_DARK] > 7)
	    send_to_char
	      ("#yYang Decoy #o-#y Combined with Mienaku will create an exploding decoy.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_DARK] > 8)
	    send_to_char
	      ("#yYang Shield#o-#y Increased power to the Yang Shield.\n\r",
	       ch);
	  if (ch->pcdata->npowers[NPATH_DARK] > 9)
	    send_to_char
	      ("#yScythes    #o-#y Scythes attached to your overarms for better fighting provess.\n\r",
	       ch);
	  send_to_char
	    ("#o----------------------------------------------------------------\n\r",
	     ch);
	  return;
	}
      do_principles (ch, "");
      return;
    }
  if (!str_cmp (arg2, "improve"))
    {
      int improve;
      int cost;
      int max;

      if (!str_cmp (arg1, "sora"))
	{
	  improve = NPOWER_SORA;
	  if (ch->class == CLASS_NINJA)
	    max = 7;
	  else
	    max = 5;
	}
      else if (!str_cmp (arg1, "bushido"))
	{
	  improve = NPOWER_BUSHIDO;
	  if (ch->class == CLASS_NINJA)
	    max = 7;
	  else
	    max = 5;
	}
      else if (!str_cmp (arg1, "chikyo"))
	{
	  improve = NPOWER_CHIKYU;
	  if (ch->class == CLASS_NINJA)
	    max = 7;
	  else if (ch->class == CLASS_SHINOBI)
	    max = 10;
	  else
	    max = 5;
	}
      else if (!str_cmp (arg1, "ningenno"))
	{
	  improve = NPOWER_NINGENNO;
	  if (ch->class == CLASS_NINJA)
	    max = 7;
	  else
	    max = 5;
	}
      else if (!str_cmp (arg1, "bukikyo"))
	{
	  improve = NPOWER_NINBUKI;
	  if (ch->class == CLASS_NINJA)
	    max = 7;
	  else
	    max = 5;
	}
      else if (!str_cmp (arg1, "yin"))
	{
	  improve = NPATH_LIGHT;
	  if (ch->class == CLASS_NINJA)
	    max = 7;
	  else if (ch->class == CLASS_PLANARSOHEI)
	    max = 10;
	  else
	    max = 5;
	}
      else if (!str_cmp (arg1, "yang"))
	{
	  improve = NPATH_DARK;
	  if (ch->class == CLASS_NINJA)
	    max = 7;
	  else if (ch->class == CLASS_SHIDOSHI)
	    max = 10;
	  else
	    max = 5;
	}
      else
	{
	  send_to_char ("You do not know that principle!\n\r", ch);
	  return;
	}
      cost = (ch->pcdata->npowers[improve] + 1) * 5000;
      arg1[0] = UPPER (arg1[0]);


      if (ch->pcdata->npowers[improve] >= max)
	{
	  sprintf (buf,
		   "You have already gained all the powers of the %s principle.\n\r",
		   capitalize (arg1));
	  send_to_char (buf, ch);
	  return;
	}
      if (cost > ch->pcdata->power[POWER_CURRENT])
	{
	  sprintf (buf,
		   "It costs you %d %s points to improve your %s principle.\n\r",
		   cost, get_class (ch), capitalize (arg1));
	  send_to_char (buf, ch);
	  return;
	}
      if (!str_cmp (arg1, "yin"))
	{
	  if (IS_XBITS (ch, X_DARKPATH)
	      || ch->pcdata->npowers[NPATH_DARK] > 0)
	    {
	      stc ("You have already chosen the Dark path.\n\r", ch);
	      return;
	    }

	  else if (!IS_XBITS (ch, X_LIGHTPATH))
	    {
	      if (arg3[0] == '\0')
		{
		  stc
		    ("#7Are you sure you want to walk the path of Light, you can not change to the Dark path later.#n\n\r",
		     ch);
		  stc
		    ("#7If you havent already you should read: help Paths, help light path and help dark path.#n\n\r",
		     ch);
		  stc
		    ("#7If you are sure, the Syntax is: principle yin improve yes.#n\n\r",
		     ch);
		  return;
		}
	      if (!str_cmp (arg3, "yes"))
		{
		  stc ("You have chosen the path of Light and Good.\n\r", ch);
		  SET_BIT (ch->xbits, X_LIGHTPATH);
		  sprintf (buf, "%s#C has chosen the path of Light#n.\n\r",
			   ch->name);
		  do_info (ch, buf);
		}
	      else
		{
		  do_principles (ch, "");
		  return;
		}
	    }

	}

      if (!str_cmp (arg1, "yang"))
	{
	  if (IS_XBITS (ch, X_LIGHTPATH)
	      || ch->pcdata->npowers[NPATH_LIGHT] > 0)
	    {
	      stc ("You have already chosen the Light path.\n\r", ch);
	      return;
	    }

	  else if (!IS_XBITS (ch, X_DARKPATH))
	    {
	      if (arg3[0] == '\0')
		{
		  stc
		    ("#7Are you sure you want to walk the Dark path, you can not change to the path of Light later.\n\r",
		     ch);
		  stc
		    ("#7If you havent already you should read: help Paths, help light path and help dark path.#n\n\r",
		     ch);
		  stc
		    ("#7If you are sure, the Syntax is: principle yang improve yes.\n\r",
		     ch);
		  return;
		}
	      if (!str_cmp (arg3, "yes"))
		{
		  stc ("You have chosen the path of Dark and Evil.\n\r", ch);
		  SET_BIT (ch->xbits, X_DARKPATH);
		  sprintf (buf, "%s#c has chosen the path of Darkness#n.\n\r",
			   ch->name);
		  do_info (ch, buf);
		}
	      else
		{
		  do_principles (ch, "");
		  return;
		}
	    }

	}
      ch->pcdata->npowers[improve] += 1;
      ch->pcdata->power[POWER_CURRENT] -= cost;
      sprintf (buf, "You improve your ability in the %s principle.\n\r",
	       capitalize (arg1));
      send_to_char (buf, ch);
    }
  else
    send_to_char
      ("To improve a principle, type: Principle <principle type> improve.\n\r",
       ch);
  return;
}


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

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->npowers[NPOWER_NINBUKI] < 3)
    {
      stc ("You do not know this principle.\n\r", ch);
      return;
    }

  if ((victim = ch->fighting) == NULL)
    {
      if (arg[0] == '\0')
	{
	  stc ("Who will taste your blade?\n\r", ch);
	  return;
	}
      if ((victim = get_char_room (ch, arg)) == NULL)
	{
	  stc ("They aren't here.\r\n", ch);
	  return;
	}
    }

  if (is_safe (ch, victim))
    return;

  if (IS_NPC (victim))
    {
      stc ("Nah why hamstring Mobs?\n\r", ch);
      return;
    }

  if (victim->pcdata->hamstrung > 0)
    {
      act ("$N is already hamstrung.", ch, NULL, victim, TO_CHAR);
      return;
    }

  act
    ("You dart around $N and slash at the back of $S shins, hamstringing $M.",
     ch, NULL, victim, TO_CHAR);
  act
    ("$n darts around you; suddenly you feel a searing pain at the back of your shins.",
     ch, NULL, victim, TO_VICT);
  act ("$n darts around $N and slashes at the back of $S shins.", ch, NULL,
       victim, TO_NOTVICT);
  one_hit (ch, victim, gsn_swift_strike, 0, 0, FALSE);
  stc ("You drop to your knees since your feet are unable to support you.",
       victim);
  act ("$n drops to $s knees, and seems unable to stand.", victim, NULL, NULL,
       TO_ROOM);
  victim->pcdata->hamstrung = 90;
  waiting (ch, 8);
  return;
}

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

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

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->npowers[NPOWER_NINBUKI] < 5)
    {
      send_to_char ("You dont have this Principle yet.\n\r", ch);
      return;
    }

  if (arg1[0] == '\0')
    {
      stc ("What weapon do you wish to use change with Buki Aiki?\n\r", ch);
      return;
    }

  if (!(obj = get_obj_carry (ch, arg1)))
    {
      send_to_char ("You don't have that weapon.\n\r", ch);
      return;
    }

  if (obj->chobj != NULL)
    {
      send_to_char ("Somehow the weapon seems to resist.\n\r", ch);
      return;
    }

  if (IS_SET (obj->extra_flags, ITEM_VANISH))
    {
      stc ("Not on Illusions.\n\r", ch);
      return;
    }

  if (!IS_SET (obj->spectype, SITEM_NINJA) || obj->item_type != ITEM_WEAPON)
    {
      act ("$p is not a Ninja weapon.\n\r", ch, obj, NULL, TO_CHAR);
      return;
    }

  if (ch->pcdata->crystal < 5)
    {
      act ("You need 5 power crystal to channel a spell into $p.", ch, obj,
	   NULL, TO_CHAR);
      return;
    }

  if (arg2[0] == '\0')
    {
      act ("What spell power do you wish to channel into $p?", ch, obj, NULL,
	   TO_CHAR);
      stc ("#pGasbreath#n or #rCurse#n.\n\r", ch);
      return;
    }
  else if (!str_cmp (arg2, "gasbreath"))
    {
      if (obj->value[0] >= 1000)
	obj->value[0] = ((obj->value[0] / 1000) * 1000);
      else
	obj->value[0] = 0;
      obj->value[0] += 70;
      act ("You channel the power of #pGasbreath#n into $p.", ch, obj, NULL,
	   TO_CHAR);
      act ("$n channels the power of #pGasbreath#n into $p.", ch, obj, NULL,
	   TO_ROOM);
      ch->pcdata->crystal -= 5;
      return;
    }
  else if (!str_cmp (arg2, "curse"))
    {
      if (obj->value[0] >= 1000)
	obj->value[0] = ((obj->value[0] / 1000) * 1000);
      else
	obj->value[0] = 0;
      obj->value[0] += 24;
      act ("You channel the power of #rCurse#n into $p.", ch, obj, NULL,
	   TO_CHAR);
      act ("$n channels the power of #rCurse#n into $p.", ch, obj, NULL,
	   TO_ROOM);
      ch->pcdata->crystal -= 5;
      return;
    }
  else
    {
      do_ninforge (ch, "");
      return;
    }
  return;
}

void
do_planarwrath (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  char buf[MSL];
  int dam = 0;

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->npowers[NPATH_LIGHT] < 10)
    {
      send_to_char ("Nothing Happens.\n\r", ch);
      return;
    }

  if (ch->mana < 500)
    {
      stc ("You dont have enough mystical power for that.\n\r", ch);
      return;
    }

  if ((victim = ch->fighting) == NULL)
    {
      if (arg[0] == '\0')
	{
	  stc ("Who will feel the wrath of the Celestial's?\n\r", ch);
	  return;
	}
      if ((victim = get_char_room (ch, arg)) == NULL)
	{
	  send_to_char ("Noone here with that name.\r\n", ch);
	  return;
	}
    }

  if (is_safe (ch, victim))
    return;

  dam = 6000;

  dam += number_range (500, 1500);

  if (victim->alignment == -1000)
    dam *= 2;

  sprintf (buf,
	   "\n\r#7$n hovers in the air, points at you and scream's.#n\n\r\n\r#7'#yMay the powers of the divine condemn your soul, wretched one!#7'#n\n\r\n\r#7Suddenly a beam of light strikes you from the heavens, making your flesh burn and sizzle.#n",
	   dam);
  act (buf, ch, NULL, victim, TO_VICT);
  sprintf (buf,
	   "\n\r#7$n hovers in the air, points at $N and scream's.#n\n\r\n\r#7'#yMay the powers of the divine condemn your soul, wretched one!#7'#n\n\r\n\r#7Suddenly a beam of light strikes $N from the heavens, making $S flesh burn and sizzle.#n");
  act (buf, ch, NULL, victim, TO_NOTVICT);
  sprintf (buf,
	   "\n\r#7You hover in the air, point at $N and scream.#n\n\r\n\r#7'#yMay the powers of the divine condemn your soul, wretched one!#7'#n\n\r\n\r#7Suddenly a beam of light strikes $N from the heavens, making $S flesh burn and sizzle.#n",
	   dam);
  act (buf, ch, NULL, victim, TO_CHAR);
  damage (ch, victim, dam, gsn_planarwrath, DAM_LIGHT, TRUE, FALSE, FALSE);
  ch->mana -= 500;
  waiting (ch, 9);
  return;
}

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

  one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_PLANARSOHEI (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->pcdata->npowers[NPATH_LIGHT] < 8)
    {
      send_to_char ("You haven't walked the path of good far enough yet.\n\r",
		    ch);
      return;
    }

  if (ch->mana < mcost)
    {
      send_to_char
	("You need more mystical power before you can use this skill.\n\r",
	 ch);
      return;
    }

  if (arg[1] == '\0')
    {
      send_to_char ("Wish the bless of the Celestials on 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 ((sn = skill_lookup ("heavenly bless")) < 0)
    return;

  if (is_affected (victim, sn))
    {
      send_to_char ("They are already blessed by the Celestials.\n\r", ch);
      return;
    }


  (*skill_table[sn].spell_fun) (sn, level, ch, victim);
  waiting (ch, 12);

  ch->mana -= mcost;

  return;
}


void
do_seed (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  char buf[MSL];
  int seeds = number_range (1, 2);

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->npowers[NPOWER_NINGENNO] < 5)
    {
      stc ("You do not know this principle.\n\r", ch);
      return;
    }

  if (ch->pcdata->seedtimer > 0)
    {
      stc ("You dont have any seed bombs ready yet.\n\r", ch);
      sprintf (buf, "You will have more seed bombs ready in %s.\n\r",
	       get_time (ch->pcdata->seedtimer, ""));
      stc (buf, ch);
      return;
    }

  seeds += ch->max_mana / 10000;

  if (seeds > 20)
    seeds = number_fuzzy (20);


  if (ch->pcdata->npowers[NINJAKI] < 40)
    {
      send_to_char
	("You don't have enough Ki points to throw seed bombs.\n\r", ch);
      return;
    }

  if (arg[0] == '\0' && ch->fighting == NULL)
    {
      stc ("Who do you want to inflict this on.\n\r", ch);
      return;
    }

  if ((victim = ch->fighting) == NULL)
    {
      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 ("Heh, if you want to commit suicide, type HARAKIRI?\n\r",
		    ch);
      return;
    }

  if (IS_NPC (victim))
    {
      stc ("Why waste seed bombs on mobiles?\n\r", ch);
      return;
    }

  if (is_safe (ch, victim))
    return;

  if (IS_XBITS (victim, X_SEEDED))
    {
      stc
	("They are already afflicted with the seeds, wait for them to blow.\n\r",
	 ch);
      return;
    }

  act ("$n#0 throws a handfull of tiny seed bombs at you.#n", ch, NULL,
       victim, TO_VICT);
  act ("$n#0 throws a handfull of tiny seed bombs at#n $N#0.#n", ch, NULL,
       victim, TO_NOTVICT);
  act ("You#0 throw a handfull of tiny seed bombs at#n $N#0.#n", ch, NULL,
       victim, TO_CHAR);
  SET_BIT (victim->xbits, X_SEEDED);
  victim->pcdata->seedbombs = seeds;
  victim->pcdata->seedfuse = 0;
  ch->pcdata->npowers[NINJAKI] -= 40;
  ch->pcdata->seedtimer = 180;
  waiting (ch, 10);
  return;
}

void
seedexpld (CHAR_DATA * ch, int num)
{
  CHAR_DATA *victim;
  OBJ_DATA *obj;
  char buf[MSL];
  int critical = 0;
  int max, i, ii;
  int dam = 0;

  victim = ch;

  if (num > 5)
    max = 5;
  else
    max = num;

  for (i = 0; i < num; i++)
    {
      dam = number_range (600, 1000);
      sprintf (buf,
	       "#0One of the seeds sticking to you explodes #R[#r%d#R]#0.#n",
	       dam);
      act (buf, ch, NULL, NULL, TO_CHAR);
      sprintf (buf, "#0One of the seeds sticking to $n explodes.#n", dam);
      act (buf, ch, NULL, NULL, TO_ROOM);
      ch->hit -= dam;
      update_pos (ch);
    }

  for (ii = 0; ii < max; ii++)
    {
      critical = number_range (1, 4);
      if (number_range (1, 10) < 3 && !limbsafe2 (victim))
	{
	  if (critical == 1)
	    {
	      if (IS_ARM_L (victim, LOST_ARM))
		return;
	      SET_BIT (victim->loc_hp[2], LOST_ARM);
	      if (IS_BLEEDING (victim, BLEEDING_HAND_L))
		REMOVE_BIT (victim->loc_hp[6], BLEEDING_HAND_L);
	      act ("Your left arm is torn of by the explosions.", ch, NULL,
		   NULL, TO_CHAR);
	      act ("$n's left arm is torn of by the explosions.", ch, NULL,
		   NULL, TO_ROOM);
	      if (IS_ARM_L (victim, LOST_ARM) && IS_ARM_R (victim, LOST_ARM))
		{
		  if ((obj = get_eq_char (victim, WEAR_ARMS)) != NULL)
		    take_item (victim, obj);
		}
	      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);
	    }
	  else if (critical == 2)
	    {
	      if (IS_ARM_R (victim, LOST_ARM))
		return;

	      SET_BIT (victim->loc_hp[3], LOST_ARM);
	      if (IS_BLEEDING (victim, BLEEDING_HAND_R))
		REMOVE_BIT (victim->loc_hp[6], BLEEDING_HAND_R);
	      act ("Your right arm is torn of by the explosions.", ch, NULL,
		   NULL, TO_CHAR);
	      act ("$n's right arm is torn of by the explosions.", ch, NULL,
		   NULL, TO_ROOM);
	      if (IS_ARM_L (victim, LOST_ARM) && IS_ARM_R (victim, LOST_ARM))
		{
		  if ((obj = get_eq_char (victim, WEAR_ARMS)) != NULL)
		    take_item (victim, obj);
		}
	      if ((obj = get_eq_char (victim, WEAR_WIELD)) != 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);
	    }
	  else if (critical == 3)
	    {
	      if (IS_LEG_L (victim, LOST_LEG))
		return;
	      SET_BIT (victim->loc_hp[4], LOST_LEG);
	      if (IS_BLEEDING (victim, BLEEDING_FOOT_L))
		REMOVE_BIT (victim->loc_hp[6], BLEEDING_FOOT_L);
	      act ("Your left leg is torn of by the explosions.", ch, NULL,
		   NULL, TO_CHAR);
	      act ("$n's left leg is torn of by the explosions.", ch, NULL,
		   NULL, TO_ROOM);
	      if (IS_LEG_L (victim, LOST_LEG) && IS_LEG_R (victim, LOST_LEG))
		{
		  if ((obj = get_eq_char (victim, WEAR_LEGS)) != NULL)
		    take_item (victim, obj);
		}
	      if ((obj = get_eq_char (victim, WEAR_FEET)) != NULL)
		take_item (victim, obj);
	    }
	  else if (critical == 4)
	    {
	      if (IS_LEG_R (victim, LOST_LEG))
		return;
	      SET_BIT (victim->loc_hp[5], LOST_LEG);
	      if (IS_BLEEDING (victim, BLEEDING_FOOT_R))
		REMOVE_BIT (victim->loc_hp[6], BLEEDING_FOOT_R);
	      act ("Your right leg is torn of by the explosions.", ch, NULL,
		   NULL, TO_CHAR);
	      act ("$n's right leg is torn of by the explosions.", ch, NULL,
		   NULL, TO_ROOM);
	      if (IS_LEG_L (victim, LOST_LEG) && IS_LEG_R (victim, LOST_LEG))
		{
		  if ((obj = get_eq_char (victim, WEAR_LEGS)) != NULL)
		    take_item (victim, obj);
		}
	      if ((obj = get_eq_char (victim, WEAR_FEET)) != NULL)
		take_item (victim, obj);
	    }
	}

    }
  return;
}

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

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->npowers[NPATH_LIGHT] < 9)
    {
      send_to_char ("Nothing Happens.\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    {
      stc ("What object do you wish to imbue with Celestial power ?\n\r", ch);
      return;
    }

  if (!(obj = get_obj_carry (ch, arg)))
    {
      send_to_char ("You don't have that.\n\r", ch);
      return;
    }

  if (obj->chobj != NULL)
    {
      send_to_char
	("Somehow the object seems to resist the Celestial power.\n\r", ch);
      return;
    }

  if (IS_SET (obj->extra_flags, ITEM_VANISH))
    {
      stc ("Not on Illusions.\n\r", ch);
      return;
    }

  if (IS_SET (obj->spectype, SITEM_PLANARTOUCHED))
    {
      act ("$p is already filled with the power of the Celestial's.\n\r", ch,
	   obj, NULL, TO_CHAR);
      return;
    }

  if (IS_SET (obj->spectype, SITEM_MASTERY))
    {
      act ("$p is a mastery item.", ch, obj, NULL, TO_CHAR);
      return;
    }

  if (ch->pcdata->power[POWER_CURRENT] < 20000)
    {
      send_to_char
	("You must have 20000 angel points to infuse items with Celestial power.\n\r",
	 ch);
      return;
    }

  if (ch->pcdata->crystal < 10)
    {
      send_to_char ("You dont have the required 10 power crystals\n\r", ch);
      return;
    }

  ch->pcdata->power[POWER_CURRENT] -= 20000;
  ch->pcdata->crystal -= 10;

  SET_BIT (obj->spectype, SITEM_PLANARTOUCHED);
  add_affect (obj, APPLY_HIT, 200);
  add_affect (obj, APPLY_MANA, 200);
  add_affect (obj, APPLY_MOVE, 200);

  act ("$p shimmers with Celestial power.", ch, obj, NULL, TO_CHAR);
  act ("$p shimmers with Celestial power in $n's hands.", ch, obj, NULL,
       TO_ROOM);

  return;

}

void
do_helmet (CHAR_DATA * ch, char *argument)
{
  OBJ_INDEX_DATA *pObjIndex;
  OBJ_DATA *obj;
  char buf[MSL];
  char buf2[MSL];

  if (IS_NPC (ch))
    return;

  if (!IS_SHINOBI (ch) || ch->pcdata->npowers[NPOWER_CHIKYU] < 10)
    {
      do_huh (ch, "");
      return;
    }

  if (ch->practice < 100)
    {
      stc ("It costs 100 points of primal to create the helmet of glory.\n\r",
	   ch);
      return;
    }

  if (ch->pcdata->crystal < 5)
    {
      stc ("You dont have the required 5 power crystals.\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, 25);
  obj->weight = 1;
  obj->cost = 1000;
  obj->item_type = ITEM_ARMOR;
  SET_BIT (obj->wear_flags, ITEM_WEAR_HEAD);
  SET_BIT (obj->wear_flags, ITEM_TAKE);
  obj->value[0] = 15;
  ch->practice -= 100;
  ch->pcdata->crystal -= 5;
  obj_to_char (obj, ch);
  obj->value[0] = 250;
  obj->value[3] = 15;
  free_string (obj->name);
  obj->name = str_dup ("helmet glory shinobi");
  sprintf (buf, "#CT#che #CH#celm#n of#o G#yl#oo#yr#oy#n");
  sprintf (buf2, "#CT#che #CH#celm#n of#o G#yl#oo#yr#oy#n");
  add_affect (obj, APPLY_HITROLL, 275);
  add_affect (obj, APPLY_DAMROLL, 275);
  add_affect (obj, APPLY_AC, -1000);
  add_affect (obj, APPLY_DAMCAP, 500);
  add_affect (obj, APPLY_MANA, 5000);
  add_affect (obj, APPLY_HIT, 5000);
  add_affect (obj, APPLY_MOVE, 5000);
  free_string (obj->short_descr);
  obj->short_descr = str_dup (buf);
  free_string (obj->description);
  obj->description = str_dup (buf2);
  SET_BIT (obj->quest, QUEST_RELIC);
  SET_BIT (obj->spectype, SITEM_NINJA);
  SET_BIT (obj->spectype, SITEM_SILVER);
  if (obj->questmaker != NULL)
    free_string (obj->questmaker);
  obj->questmaker = str_dup (ch->name);
  if (obj->questowner != NULL)
    free_string (obj->questowner);
  obj->questowner = str_dup (ch->name);
  if (obj->creator != NULL)
    free_string (obj->creator);
  obj->creator = str_dup (ch->name);
  act ("You pray to the ancient spirits and they grant you the $p.", ch, obj,
       NULL, TO_CHAR);
  act ("$n prays for a moment, then suddenly $p appears in $s hands.", ch,
       obj, NULL, TO_ROOM);
  return;
}

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

  if (IS_NPC (ch))
    return;

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


  if (IS_XBITS (ch, X_DARKPATH))
    {
      do_yang_dagger (ch, "");
      return;
    }

  else if (IS_XBITS (ch, X_LIGHTPATH))
    {
      do_ying_dagger (ch, "");
      return;
    }

  else

    do_huh (ch, "");
  return;



}

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

  if (IS_NPC (ch))
    return;

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


  if (IS_XBITS (ch, X_DARKPATH))
    {
      do_yang_sword (ch, "");
      return;
    }

  else if (IS_XBITS (ch, X_LIGHTPATH))
    {
      do_ying_sword (ch, "");
      return;
    }

  else

    do_huh (ch, "");
  return;


}

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

  if (IS_NPC (ch))
    return;

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

  if (ch->stance[0] != -1)
    do_stance (ch, "");

  if (ch->mounted == IS_RIDING)
    do_dismount (ch, "");

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

  if (IS_SET (ch->polyaff, POLY_NINJAFORM))
    {
      send_to_char ("You slowly remove your nightsuit.\n\r", ch);
      act ("$n's slowly removes $s nightsuit.", ch, NULL, NULL, TO_ROOM);
      REMOVE_BIT (ch->polyaff, POLY_NINJAFORM);
      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);
	}
      return;
    }
  else
    {
      if (IS_XBITS (ch, X_LIGHTPATH))
	{
	  if (ch->alignment != 1000)
	    {
	      stc ("You have the wrong alignment.\n\r", ch);
	      return;
	    }

	  stc ("You slowly put on your nightsuit.\n\r", ch);
	  act ("$n's slowly puts on $s nightsuit.", ch, NULL, NULL, TO_ROOM);
	  SET_BIT (ch->polyaff, POLY_NINJAFORM);
	  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;
	}

      if (IS_XBITS (ch, X_DARKPATH))
	{
	  if (ch->alignment != -1000)
	    {
	      stc ("You have the wrong alignment.\n\r", ch);
	      return;
	    }

	  stc ("You slowly put on your nightsuit.\n\r", ch);
	  act ("$n's slowly puts on $s nightsuit.", ch, NULL, NULL, TO_ROOM);
	  SET_BIT (ch->polyaff, POLY_NINJAFORM);
	  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;
	}

      else
	{
	  return stc ("You need to chose a path first.\n\r", ch);
	}

    }



}

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


  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->npowers[NPOWER_NINBUKI] < 1)
    {
      stc ("You do not know this principle.\n\r", ch);
      return;
    }

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

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

  if (IS_SET (obj->extra_flags, ITEM_VANISH))
    {
      stc ("Not on Illusions.\n\r", ch);
      return;
    }

  if (obj->item_type != ITEM_WEAPON)
    {
      send_to_char ("You may only poison weapons.\n\r", ch);
      return;
    }

  if (IS_SET (obj->weapflags, WEAPON_POISON))
    {
      send_to_char ("This weapon is already poisoned.\n\r", ch);
      return;
    }

  if ((IS_SET (obj->quest, QUEST_ARTIFACT) || obj->chobj != NULL))
    {
      send_to_char ("You are unable to poison this weapon.\n\r", ch);
      return;
    }

  act ("You slowly cover every inch of $p with a vile green venom.", ch, obj,
       NULL, TO_CHAR);
  act ("$n slowly covers every inch of $p with a vile green venom.", ch, obj,
       NULL, TO_ROOM);
  SET_BIT (obj->weapflags, WEAPON_POISON);
  obj->value[1] *= 1.25;
  obj->value[2] *= 1.5;
  return;
}

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

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

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

      if (ch->alignment > -1000)
	{
	  stc ("You are the wrong alignment to use that power.\n\r", ch);
	  return;
	}

      if (ch->pcdata->npowers[NPATH_DARK] < 4)
	{
	  stc ("You have not yet walked the Path of Evil far enough.\n\r",
	       ch);
	  return;
	}
    }

  if (ch->pcdata->glaive > 0)
    {
      stc ("Your glaive has not returned yet.\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    {
      stc ("Who do you want to throw your glaive at.\n\r", ch);
      return;
    }

  if ((victim = get_char_world (ch, arg)) == NULL)
    {
      send_to_char ("No-one in range fitting that description.\n\r", ch);
      return;
    }

  if (victim->in_room->area != ch->in_room->area)
    {
      send_to_char ("No-one in range fitting that description.\n\r", ch);
      return;
    }

  if (victim->in_room == ch->in_room)
    {
      stc ("They are to close to target.\n\r", ch);
      return;
    }

  if (ch == victim)
    {
      send_to_char ("Heh, if you want to commit suicide, type HARAKIRI?\n\r",
		    ch);
      return;
    }

  if (IS_NPC (victim))
    {
      stc ("No point in throwing a glaive at that patetic creature?\n\r", ch);
      return;
    }

  chroom = ch->in_room;
  victimroom = victim->in_room;
  char_from_room (ch);
  char_to_room (ch, victimroom);

  if (is_safe (ch, victim))
    {
      char_from_room (ch);
      char_to_room (ch, chroom);
      return;
    }

  if (victim->pcdata->glaivethrow)
    {
      stc ("They already have a glaive flying at them.\n\r", ch);
      return;
    }

  sprintf (buf, "You hurl your Yang Glaive at %s.\n\r", victim->name);
  stc (buf, ch);
  free_string (victim->pcdata->glaivethrower);
  victim->pcdata->glaivethrower = str_dup (ch->name);
  victim->pcdata->glaivethrow = 4;
  ch->pcdata->glaive = 8;
  char_from_room (ch);
  char_to_room (ch, chroom);
  waiting (ch, 9);
  return;
}

void
glaivehit (CHAR_DATA * ch, char *argument)
{
  int dam = number_range (2000, 3000);
  CHAR_DATA *gch;
  AFFECT_DATA af;
  char buf[MSL];
  char sex[5];
  int sn;
  bool hit = FALSE;
  bool stun = FALSE;

  if (IS_NPC (ch))
    return;


  for (gch = char_list; gch != NULL; gch = gch->next)
    {
      if (IS_NPC (gch))
	continue;
      if (str_cmp (ch->pcdata->glaivethrower, gch->name))
	continue;

      if (gch->in_room->area != ch->in_room->area)
	{
	  stc ("Your Glaive missed its target.\n\r", gch);
	  free_string (ch->pcdata->glaivethrower);
	  ch->pcdata->glaivethrower = str_dup ("");
	  return;
	}
      else
	{
	  if ((sn = skill_lookup ("curse")) < 0)
	    return;

	  sprintf (buf,
		   "%s#c's Yang Glaive just hit you in the back of the head #r[#R%d#r]#c.#n\n\r",
		   gch->name, dam);
	  stc (buf, ch);

	  act ("#cA Yang Glaive hits#n $n #cin the back of the head.#n", ch,
	       NULL, NULL, TO_ROOM);

	  af.type = sn;
	  af.duration = 50;
	  af.location = APPLY_HITROLL;
	  af.modifier = -1;
	  af.bitvector = AFF_CURSE;
	  affect_to_char (ch, &af);

	  af.location = APPLY_SAVING_SPELL;
	  af.modifier = 1;
	  affect_to_char (ch, &af);

	  if (number_range (1, 3) == 1)
	    {
	      act ("You have been knocked on your ass!", ch, NULL, NULL,
		   TO_CHAR);
	      act ("$n has been knocked on $s ass!", ch, NULL, NULL, TO_ROOM);
	      hit = TRUE;
	    }

	  if (ch->sex == 2)
	    sprintf (sex, "her");
	  else if (ch->sex == 1)
	    sprintf (sex, "him");
	  else
	    sprintf (sex, "it");

	  if (hit)
	    {
	      sprintf (buf,
		       "Your glaive just hit %s hard #r[#R%d#r]#n and it knocks %s out.\n\r",
		       ch->name, dam, sex);
	    }
	  else
	    {
	      sprintf (buf, "Your glaive just hit %s hard #r[#R%d#r]#n.\n\r",
		       ch->name, dam);
	    }

	  stc (buf, gch);
	  free_string (ch->pcdata->glaivethrower);
	  ch->pcdata->glaivethrower = str_dup ("");
	  ch->hit -= dam;
	  update_pos (ch);
	  if (hit)
	    ch->position = POS_STUNNED;
	  ch->pcdata->glaivethrow = 0;
	}
      return;
    }
  return;
}

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

  if (IS_NPC (ch))
    return;

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


  if (IS_XBITS (ch, X_DARKPATH))
    {
      do_yang_aura (ch, "");
      return;
    }

  else if (IS_XBITS (ch, X_LIGHTPATH))
    {
      do_ying_aura (ch, "");
      return;
    }

  else

    do_huh (ch, "");
  return;


}

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


  if (IS_NPC (ch))
    return;

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

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

  if (ch->alignment != 1000)
    {
      stc
	("You have the wrong alignment to use that power, you need to be good.\n\r",
	 ch);
      return;
    }

  if (ch->pcdata->npowers[NPATH_LIGHT] < 2)
    {
      stc ("You have not yet walked the Path of Good far enough.\n\r", ch);
      return;
    }

  if (ch->practice < 100)
    {
      stc ("It costs 100 points of primal to create the Yin Sword.\n\r", ch);
      return;
    }

  if (vnum == 0 || (pObjIndex = get_obj_index (vnum)) == NULL)
    {
      send_to_char ("Missing object, please inform Corim.\n\r", ch);
      return;
    }
  obj = create_object (pObjIndex, 50);

  obj->value[0] = 18053;
  obj->value[1] = 160;
  obj->value[2] = 280;
  obj->condition = 100;
  obj->toughness = 100;
  obj->resistance = 1;

  sprintf (buf, "A #CYin#n Katana");
  free_string (obj->short_descr);
  obj->short_descr = str_dup (buf);

  sprintf (buf, "A sparkling Yin Katana is here.");
  free_string (obj->description);
  obj->description = str_dup (buf);

  SET_BIT (obj->quest, QUEST_RELIC);
  SET_BIT (obj->spectype, SITEM_NINJA);
  SET_BIT (obj->spectype, SITEM_SILVER);

  obj_to_char (obj, ch);
  ch->practice -= 100;
  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 (Yin Sword)", ch->name);
  obj->creator = str_dup (buf);

  act ("$p appears in your hands in a blast of light.", ch, obj, NULL,
       TO_CHAR);
  act ("$p appears in $n's hands in a blast of light.", ch, obj, NULL,
       TO_ROOM);
  return;

}

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


  if (IS_NPC (ch))
    return;

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

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

  if (ch->pcdata->npowers[NPATH_DARK] < 1)
    {
      stc ("You have not yet walked the Path of Evil far enough.\n\r", ch);
      return;
    }

  if (ch->alignment != -1000)
    {
      stc
	("You have the wrong alignment to use that power, you need to be evil.\n\r",
	 ch);
      return;
    }

  if (ch->practice < 100)
    {
      stc ("It costs 100 points of primal to create the Yang Dagger.\n\r",
	   ch);
      return;
    }

  if (vnum == 0 || (pObjIndex = get_obj_index (vnum)) == NULL)
    {
      send_to_char ("Missing object, please inform Corim.\n\r", ch);
      return;
    }

  obj = create_object (pObjIndex, 50);

  obj->value[0] = 17024;
  obj->value[1] = 100;
  obj->value[2] = 200;
  obj->condition = 100;
  obj->toughness = 100;
  obj->resistance = 1;

  sprintf (buf, "A #cYang#n Dagger");
  free_string (obj->short_descr);
  obj->short_descr = str_dup (buf);

  sprintf (buf, "A razor sharp Yang dagger is here.");
  free_string (obj->description);
  obj->description = str_dup (buf);

  SET_BIT (obj->quest, QUEST_RELIC);
  SET_BIT (obj->spectype, SITEM_NINJA);
  SET_BIT (obj->spectype, SITEM_SILVER);

  obj_to_char (obj, ch);
  ch->practice -= 100;
  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 (Yang Dagger)", ch->name);
  obj->creator = str_dup (buf);

  act ("$p appears in your hands in a blast of dark spirit magic.", ch, obj,
       NULL, TO_CHAR);
  act ("$p appears in $n's hands in a blast of dark spirit magic.", ch, obj,
       NULL, TO_ROOM);
  return;



}

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


  if (IS_NPC (ch))
    return;

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

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

  if (ch->pcdata->npowers[NPATH_LIGHT] < 1)
    {
      stc ("You have not yet walked the Path of Good far enough.\n\r", ch);
      return;
    }

  if (ch->alignment != 1000)
    {
      stc
	("You have the wrong alignment to use that power, you need to be good.\n\r",
	 ch);
      return;
    }
  if (ch->practice < 100)
    {
      stc ("It costs 100 points of primal to create the Yin Dagger.\n\r", ch);
      return;
    }

  if (vnum == 0 || (pObjIndex = get_obj_index (vnum)) == NULL)
    {
      send_to_char ("Missing object, please inform Corim.\n\r", ch);
      return;
    }
  obj = create_object (pObjIndex, 50);

  obj->value[0] = 17024;
  obj->value[1] = 100;
  obj->value[2] = 200;
  obj->condition = 100;
  obj->toughness = 100;
  obj->resistance = 1;

  sprintf (buf, "A #CYin#n Dagger");
  free_string (obj->short_descr);
  obj->short_descr = str_dup (buf);

  sprintf (buf, "A razor sharp Yin dagger is here.");
  free_string (obj->description);
  obj->description = str_dup (buf);

  SET_BIT (obj->quest, QUEST_RELIC);
  SET_BIT (obj->spectype, SITEM_NINJA);
  SET_BIT (obj->spectype, SITEM_SILVER);

  obj_to_char (obj, ch);
  ch->practice -= 100;
  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 (Yin Dagger)", ch->name);
  obj->creator = str_dup (buf);

  act ("$p appears in your hands in a blast of light spirit magic.", ch, obj,
       NULL, TO_CHAR);
  act ("$p appears in $n's hands in a blast of light spirit magic.", ch, obj,
       NULL, TO_ROOM);
  return;


}

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



  if (IS_NPC (ch))
    return;

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

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

  if (ch->pcdata->npowers[NPATH_DARK] < 2)
    {
      stc ("You have not yet walked the Path of Evil far enough.\n\r", ch);
      return;
    }

  if (ch->alignment != -1000)
    {
      stc
	("You have the wrong alignment to use that power, you need to be evil.\n\r",
	 ch);
      return;
    }

  if (ch->practice < 100)
    {
      stc ("It costs 100 points of primal to create the Yang Sword.\n\r", ch);
      return;
    }

  if (vnum == 0 || (pObjIndex = get_obj_index (vnum)) == NULL)
    {
      send_to_char ("Missing object, please inform Corim.\n\r", ch);
      return;
    }
  obj = create_object (pObjIndex, 50);

  obj->value[0] = 18053;
  obj->value[1] = 160;
  obj->value[2] = 280;
  obj->condition = 100;
  obj->toughness = 100;
  obj->resistance = 1;

  sprintf (buf, "A #cYang#n Katana");
  free_string (obj->short_descr);
  obj->short_descr = str_dup (buf);

  sprintf (buf, "A wicked Yang Katana is here.");
  free_string (obj->description);
  obj->description = str_dup (buf);

  SET_BIT (obj->quest, QUEST_RELIC);
  SET_BIT (obj->spectype, SITEM_NINJA);
  SET_BIT (obj->spectype, SITEM_SILVER);
  obj_to_char (obj, ch);
  ch->practice -= 100;
  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 (Yang Sword)", ch->name);
  obj->creator = str_dup (buf);

  act ("$p appears in your hands in a blast of dark spirit magic.", ch, obj,
       NULL, TO_CHAR);
  act ("$p appears in $n's hands in a blast of dark spirit magic.", ch, obj,
       NULL, TO_ROOM);
  return;

}

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

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

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

  if (ch->pcdata->npowers[NPATH_DARK] < 3)
    {
      stc ("You have not yet walked the Path of Evil far enough.\n\r", ch);
      return;
    }

  if (IS_XBITS (ch, X_YANG_AURA))
    {
      stc ("Your Aura of evil fades away.\n\r", ch);
      REMOVE_BIT (ch->xbits, X_YANG_AURA);
      return;
    }

  if (ch->alignment != -1000)
    {
      stc
	("You have the wrong alignment to use that power, you need to be evil.\n\r",
	 ch);
      return;
    }

  stc ("You are encased in an Aura of pure Evil.\n\r", ch);
  SET_BIT (ch->xbits, X_YANG_AURA);
  return;

}

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

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

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

  if (ch->pcdata->npowers[NPATH_LIGHT] < 3)
    {
      stc ("You have not yet walked the Path of Good far enough.\n\r", ch);
      return;
    }

  if (IS_XBITS (ch, X_YING_AURA))
    {
      stc ("Your Aura of Good fades away.\n\r", ch);
      REMOVE_BIT (ch->xbits, X_YING_AURA);
      return;
    }

  if (ch->alignment != 1000)
    {
      stc
	("You have the wrong alignment to use that power, you need to be good.\n\r",
	 ch);
      return;
    }

  stc ("You are encased in an Aura of pure Good.\n\r", ch);
  SET_BIT (ch->xbits, X_YING_AURA);
  return;

}

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

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

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

  if (ch->pcdata->npowers[NPATH_LIGHT] < 7)
    {
      stc ("You have not yet walked the Path of Good far enough.\n\r", ch);
      return;
    }

  if (IS_XBITS (ch, X_FAE_FORCEWALL))
    {
      stc ("Your wall of force disintigrates.\n\r", ch);
      REMOVE_BIT (ch->xbits, X_FAE_FORCEWALL);
      return;
    }

  if (ch->alignment != 1000)
    {
      stc
	("You have the wrong alignment to use that power, you need to be good.\n\r",
	 ch);
      return;
    }

  stc ("You are surrounded by a wall of force.\n\r", ch);
  SET_BIT (ch->xbits, X_FAE_FORCEWALL);
  return;

}

void
do_ying_heal (CHAR_DATA * ch, char *argument)
{
  char arg[MIL];
  char buf[MSL];
  CHAR_DATA *victim;
  int cost;
  int heal;

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

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

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

  if (ch->alignment != 1000)
    {
      stc
	("You have the wrong alignment to use that power, you need to be good.\n\r",
	 ch);
      return;
    }

  if (ch->pcdata->obeah > 0)
    {
      if (ch->pcdata->obeah > 1)
	sprintf (buf, "You cannot use this power for another %s.\n\r",
		 get_time (ch->pcdata->obeah, ""));
      else
	sprintf (buf, "You cannot use this power for another second.\n\r");
      stc (buf, ch);
      return;
    }

  if (arg[0] == '\0')
    {
      victim = ch;
    }

  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      stc ("No one with that name can be found here.\n\r", ch);
      return;
    }

  if (victim->hit >= victim->max_hit)
    {
      stc ("They arent even wounded.\n\r", ch);
      return;
    }

  cost = ch->max_mana / 2;
  heal = ch->max_mana * 2;

  if (victim != ch)
    {
      cost = ch->max_mana / 4;
      heal = heal * 2;
    }

  if (ch->mana < cost)
    {
      stc ("You dont have enough mystical power.\n\r", ch);
      return;
    }

  act ("You channel your yin energy into $N healing $S wounds.", ch, NULL,
       victim, TO_CHAR);
  act ("$n channel's his yin energy into you healing your wounds.", ch, NULL,
       victim, TO_VICT);
  act ("$n channel's $s yin energy into $N healing $S wounds.", ch, NULL,
       victim, TO_NOTVICT);

  victim->hit += heal;
  ch->mana -= cost;
  ch->pcdata->obeah += 180;

  if (victim->hit > victim->max_hit)
    {
      victim->hit = victim->max_hit;
    }
  update_pos (victim);

  return;
}

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

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

  if (IS_XBITS (ch, X_LIGHTPATH))
    {
      do_huh (ch, "");
      return;
    }

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

  if (ch->pcdata->npowers[NPATH_DARK] < 7)
    {
      stc ("You have yet to walk the Path of Evil that far.\n\r", ch);
      return;
    }

  if (IS_XBITS (ch, X_DEATH_SHIELD))
    {
      stc ("Your life draining shield slowly winks out.\n\r", ch);
      REMOVE_BIT (ch->xbits, X_DEATH_SHIELD);
      return;
    }
  if (ch->alignment != -1000)
    {
      stc
	("You have the wrong alignment to use that power, you need to be evil.\n\r",
	 ch);
      return;
    }


  stc
    ("You are surrounded by a dark spirit shield, you can feel its hunger.\n\r",
     ch);
  SET_BIT (ch->xbits, X_DEATH_SHIELD);
  return;

}

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

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

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

  if (ch->pcdata->npowers[NPATH_LIGHT] < 6)
    {
      stc ("You have not walked the Path of Good far enough.\n\r", ch);
      return;
    }

  if (IS_XBITS (ch, X_YING_SPEED))
    {
      stc ("You slow down as the spirits leave you.\n\r", ch);
      REMOVE_BIT (ch->xbits, X_YING_SPEED);
      return;
    }

  if (ch->alignment != 1000)
    {
      stc
	("You have the wrong alignment to use that power, you need to be good.\n\r",
	 ch);
      return;
    }

  stc ("Your movements speed up with the help of the spirits.\n\r", ch);
  SET_BIT (ch->xbits, X_YING_SPEED);
  return;

}

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

  if (IS_NPC (ch))
    return;

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

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

  if (ch->pcdata->npowers[NPATH_DARK] < 6)
    {
      stc ("You have not yet walked the Path of Evil far enough.\n\r", ch);
      return;
    }

  if (IS_XBITS (ch, X_YANG_MIGHT))
    {
      stc ("Your strength leaves you as the spirit abandon's you.\n\r", ch);
      REMOVE_BIT (ch->xbits, X_YANG_MIGHT);
      free_string (ch->morph);
      ch->morph = str_dup (get_form (ch));
      return;
    }

  if (ch->alignment != -1000)
    {
      stc
	("You have the wrong alignment to use that power, you need to be evil.\n\r",
	 ch);
      return;
    }

  stc ("You feel empowered as a dark spirit enters your body.\n\r", ch);
  SET_BIT (ch->xbits, X_YANG_MIGHT);
  free_string (ch->morph);
  ch->morph = str_dup (get_form (ch));
  return;

}


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

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

  if (ch->pcdata->npowers[NINJA_RAGE] >= 50)
    {
      send_to_char ("But you are already in the state of Michi.\n\r", ch);
      return;
    }
  if (ch->pcdata->npowers[NINJAKI] < 100)
    {
      send_to_char ("But you don't have enough Ki to perform the michi.\n\r",
		    ch);
      return;
    }

  send_to_char
    ("You are gifted positive energy while performing the michi.\n\r", ch);
  act ("$n is gifted positives energy while performing the michi.", ch, NULL,
       NULL, TO_ROOM);

  if (ch->pcdata->npowers[NPATH_LIGHT] > 3 && ch->alignment == 1000)
    {
      ch->pcdata->npowers[NINJA_RAGE] += 500;
    }
  else
    {
      ch->pcdata->npowers[NINJA_RAGE] += 250;
    }
  ch->pcdata->npowers[NINJAKI] -= 100;
  waiting (ch, 12);
  return;
}

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

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

  if (IS_NINJA (ch) && ch->pcdata->npowers[NPOWER_SORA] < 3)
    {
      send_to_char ("You have not learned the Sora principle to 3.\n\r", ch);
      return;
    }

  if (ch->fight_timer > 0)
    {
      send_to_char ("Not until your fight timer expires.\n\r", ch);
      return;
    }


  if (ch->pcdata->npowers[NINJAKI] < 30)
    {
      send_to_char ("You don't have 30 ki to activate your power.\n\r", ch);
      return;
    }

  if (IS_XBITS (ch, X_NINJA_HIDE))
    {
      REMOVE_BIT (ch->xbits, X_NINJA_HIDE);
      act ("$n appears from the shadows.", ch, NULL, NULL, TO_ROOM);
      send_to_char ("You appear from the shadows.\n\r", ch);
    }
  else
    {
      act ("$n disappears into the shadows.", ch, NULL, NULL, TO_ROOM);
      send_to_char ("You disappear into the shadows.\n\r", ch);
      SET_BIT (ch->xbits, X_NINJA_HIDE);
      ch->pcdata->npowers[NINJAKI] -= 30;
    }
  return;
}

void
do_orimasu (CHAR_DATA * ch, char *argument)
{
  int heal = 0;

  if (IS_NPC (ch))
    return;

  if (!IS_NINJA (ch) || ch->pcdata->npowers[NPOWER_CHIKYU] < 6)
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  else if (ch->pcdata->npowers[NINJAKI] < 15)
    {
      send_to_char
	("You do not have the required mental energies to mend your being.\r\n",
	 ch);
      return;
    }
  else if (ch->position == POS_FIGHTING)
    {
      send_to_char ("You cannot mend your being with such distractions!\r\n",
		    ch);
      return;
    }

  send_to_char
    ("You take a deep breath and attempt to gain mastery over your injuries.\r\n",
     ch);
  act ("$n takes a deep breath and begins to concentrate.", ch, NULL, NULL,
       TO_ROOM);
  if (number_range (1, 5) != 1)
    {
      send_to_char
	("You mend some of your injuries by force of will alone.\n\r", ch);

      if (ch->hit < ch->max_hit)
	{
	  heal = ch->max_hit * number_range (12, 16);
	  heal /= 100;
	  heal *= 1.5;

	  ch->hit += heal;
	}
      if (ch->mana < ch->max_mana)
	{
	  heal = ch->max_mana * number_range (16, 20);
	  heal /= 100;
	  heal *= 2;

	  ch->mana += heal;
	}
      if (ch->move < ch->max_move)
	{
	  heal = ch->max_move * number_range (16, 20);
	  heal /= 100;
	  heal *= 2;

	  ch->move += heal;
	}

      if (ch->hit > ch->max_hit)
	ch->hit = ch->max_hit;
      if (ch->mana > ch->max_mana)
	ch->mana = ch->max_mana;
      if (ch->move > ch->max_move)
	ch->move = ch->max_move;

      ch->pcdata->npowers[NINJAKI] -= 15;
      act ("$n's wounds slowly begin to close before your eyes!", ch, NULL,
	   NULL, TO_ROOM);
      waiting (ch, 12);
      return;
    }
  else
    {
      send_to_char
	("You were unable to gain mastery over your mortal being.\n\r", ch);
      ch->pcdata->npowers[NINJAKI] -= 5;
      waiting (ch, 12);
      return;
    }
}

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

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

  if (IS_NINJA (ch) && ch->pcdata->npowers[NPOWER_SORA] < 5)
    {
      send_to_char ("You have not learned the Sora principle to 5.\n\r", ch);
      return;
    }

  else if (ch->pcdata->npowers[NINJAKI] < 30)
    {
      send_to_char ("You don't have 30 Ki to increase your awareness.\n\r",
		    ch);
      return;
    }

  if (IS_SET (ch->act, PLR_HOLYLIGHT))
    {
      REMOVE_BIT (ch->act, PLR_HOLYLIGHT);
      send_to_char ("You're senses return to normal.\n\r", ch);
    }
  else
    {
      SET_BIT (ch->act, PLR_HOLYLIGHT);
      send_to_char ("You're senses increase into incredible proportions.\n\r",
		    ch);
      ch->pcdata->npowers[NINJAKI] -= 30;
    }

  return;
}

void
do_mienaku (CHAR_DATA * ch, char *argument)
{
  ROOM_INDEX_DATA *was_in;
  ROOM_INDEX_DATA *now_in;
  CHAR_DATA *victim;
  CHAR_DATA *decoy;
  int attempt;
  bool deco = FALSE;
  bool sucess = FALSE;

  if (IS_NPC (ch))
    return;

  if (IS_NINJA (ch) && ch->pcdata->npowers[NPOWER_NINGENNO] < 3)
    {
      send_to_char ("You have not learned the Ningenno principle to 3.\n\r",
		    ch);
      return;
    }

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

  if ((victim = ch->fighting) == NULL)
    {
      if (ch->position == POS_FIGHTING)
	ch->position = POS_STANDING;
      send_to_char ("You aren't fighting anyone.\n\r", ch);
      return;
    }

  if (ch->pcdata->npowers[NINJAKI] < 20)
    {
      send_to_char ("You don't have enough Ki points to flee.\n\r", ch);
      return;
    }

  if (IS_SET (victim->evenmore, EM_JAWLOCK))
    {
      if (!IS_NPC (ch) && number_range (1, 10) > 2)
	{
	  stc ("You manage to break free.\n\r", ch);
	}
      else
	{
	  send_to_char ("You cannot escape them!\n\r", ch);
	  waiting (ch, 12);
	  return;
	}
    }

  if (IS_QUICK (victim, QUICKENING_AFFAIRS))
    {
      if (!IS_NPC (ch) && number_range (1, 10) > 2)
	{
	  stc ("You manage to break free.\n\r", ch);
	}
      else
	{
	  send_to_char ("You cannot escape them!\n\r", ch);
	  waiting (ch, 12);
	  return;
	}
    }

  if (IS_AFFECTED (ch, AFF_WEBBED))
    {
      send_to_char
	("You are unable to move with all this sticky webbing on.\n\r", ch);
      waiting (ch, 12);
      return;
    }
  else if (IS_AFFECTED (ch, AFF_SHADOW))
    {
      send_to_char
	("You are unable to move with these tendrils of darkness entrapping you.\n\r",
	 ch);
      waiting (ch, 12);
      return;
    }
  else if (is_affected (ch, gsn_tendrils))
    {
      send_to_char
	("You are unable to move with these tendrils of darkness entrapping you.\n\r",
	 ch);
      waiting (ch, 12);
      return;
    }
  else if (IS_AFFECTED (ch, AFF_JAIL))
    {
      send_to_char
	("You are unable to move with these bands of water entrapping you.\n\r",
	 ch);
      waiting (ch, 12);
      return;
    }
  else if (is_affected (ch, gsn_jail))
    {
      send_to_char
	("You are unable to move with these bands of water entrapping you.\n\r",
	 ch);
      waiting (ch, 12);
      return;
    }
  if (!IS_NPC (ch) && (ch->pcdata->wolf >= 0 || ch->pcdata->vamprage >= 0))
    {
      if (IS_VAMPIRE (ch) && ((number_percent () * 2) <= ch->beast))
	{
	  send_to_char ("Your inner beast refuses to let you run!\n\r", ch);
	  waiting (ch, 12);
	  return;
	}
      else if (IS_WEREWOLF (ch)
	       && ((number_percent () * 2) <= ch->pcdata->wolf * 0.3))
	{
	  send_to_char ("Your rage is too great!\n\r", ch);
	  waiting (ch, 12);
	  return;
	}
    }



  was_in = ch->in_room;
  {
    EXIT_DATA *pexit;
    int door;

    send_to_char ("You move to vanish from combat!\n\r", ch);

    for (attempt = 0; attempt < 6; attempt++)
      {
	door = number_door ();
	if ((pexit = was_in->exit[door]) == 0
	    || pexit->to_room == NULL
	    || IS_SET (pexit->exit_info, EX_CLOSED)
	    || (IS_NPC (ch)
		&& IS_SET (pexit->to_room->room_flags, ROOM_NO_MOB)))
	  continue;

	{
	  move_char (ch, door);
	  sucess = TRUE;
	}
	if ((now_in = ch->in_room) == was_in)
	  continue;

	ch->in_room = was_in;
	if (ch->pcdata->npowers[NPATH_DARK] < 8)
	  act
	    ("$n throws a smoke bomb to the floor, and when the smoke clears $e is no where to be seen.",
	     ch, NULL, NULL, TO_ROOM);
	ch->in_room = now_in;

	if (ch->pcdata->npowers[NPATH_DARK] > 7 && sucess)
	  {
	    decoy = create_mobile (get_mob_index (MOB_VNUM_CLONE));
	    char_to_room (decoy, get_room_index (ROOM_VNUM_DISCONNECTION));
	    free_string (decoy->lord);
	    decoy->lord = str_dup (ch->name);
	    free_string (decoy->name);
	    decoy->name = str_dup (ch->name);
	    free_string (decoy->short_descr);
	    if (strlen (ch->morph) > 2)
	      decoy->short_descr = str_dup (ch->morph);
	    else
	      decoy->short_descr = str_dup (ch->name);
	    free_string (decoy->long_descr);
	    if (strlen (ch->morph) > 2)
	      decoy->long_descr = str_dup (ch->morph);
	    else
	      decoy->long_descr = str_dup (ch->name);
	    decoy->alignment = ch->alignment;
	    if (strlen (ch->description) > 2)
	      {
		free_string (decoy->description);
		decoy->description = str_dup (ch->description);
	      }
	    SET_BIT (decoy->act, ACT_NOPARTS);
	    SET_BIT (decoy->extra, EXTRA_EXPLODE);
	    decoy->level = 1500;
	    decoy->hit = ch->hit;
	    decoy->max_hit = ch->max_hit;
	    decoy->mana = ch->mana;
	    decoy->max_mana = ch->max_mana;
	    decoy->move = ch->move;
	    decoy->max_move = ch->max_move;
	    decoy->hitroll = char_hitroll (ch);
	    decoy->damroll = char_damroll (ch);
	    decoy->armor = char_ac (ch);
	    char_from_room (decoy);
	    char_to_room (decoy, victim->in_room);
	    deco = TRUE;
	  }


	if (!IS_NPC (ch))
	  send_to_char ("You escape from combat!\n\r", ch);

	ch->pcdata->npowers[NINJAKI] -= 20;
	stop_fighting (ch, TRUE);
	if (deco)
	  {
	    set_fighting (victim, decoy);
	  }
	return;
      }

  }
  return;
}

void
do_ningentra (CHAR_DATA * ch, char *argument)
{
  sh_int rvnum;
  CHAR_DATA *victim;

  rvnum = -1;
  if (!IS_NINJA (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (ch->vampgen != 2)
    {
      send_to_char
	("Only the ninja leaders have knowledge of this power.\n\r", ch);
      return;
    }
  /* Define room numbers here per clan */
  if (!str_cmp (ch->clan, "Shadow"))
    rvnum = 31920;

  if (rvnum == -1)
    {
      send_to_char ("Your clan HQ has not been recognised...\n\r", ch);
      send_to_char ("Please request Hunter to add the HQ to the list.\n\r",
		    ch);
      return;
    }
  if (ch->in_room->vnum != rvnum)
    {
      send_to_char ("You can only use this in your HQ.\n\r", ch);
      return;
    }

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

  if (str_cmp (victim->clan, ch->clan))
    {
      send_to_char ("You can only call those of your own.\n\r", ch);
      return;
    }
  else if (victim->position == POS_FIGHTING)
    {
      send_to_char ("Sorry, they are too busy right now.\n\r", ch);
      return;
    }
  else
    {
      char_from_room (victim);
      char_to_room (victim, ch->in_room);
      send_to_char ("Ok, they are in the HQ.\n\r", ch);
      send_to_char ("You have been put in your HQ by your master.\n\r",
		    victim);
      send_to_char ("Type HOME HERE to make this your home.\n\r", victim);
    }
  return;
}


void
do_bomuzite (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  CHAR_DATA *vch;
  CHAR_DATA *vch_next;
  char arg1[MIL];
  char buf[MIL];
  bool all;

  argument = one_argument (argument, arg1);

  if (IS_NPC (ch))
    return;

  if (!IS_NINJA (ch))
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  else if (ch->pcdata->npowers[NPOWER_SORA] < 6)
    {
      send_to_char ("You have not learned the Sora principle to 6.\n\r", ch);
      return;
    }

  if (arg1[0] == '\0')
    {
      send_to_char ("Bomb who?\n\r", ch);
      if (ch->pcdata->npowers[NPOWER_NINBUKI] > 5)
	stc ("Give a name of a victim or 'all'.\n\r", ch);
      return;
    }
  else if (!str_cmp (arg1, "all") && ch->pcdata->npowers[NPOWER_NINBUKI] > 5)
    {
      all = TRUE;
    }
  else
    {
      all = FALSE;
    }

  if (ch->bomb_timer > 0)
    {
      stc
	("You havent had time to gather more ingredients for a new bomb.\n\r",
	 ch);
      sprintf (buf, "You will have made a new batch in %s.\n\r",
	       get_time (ch->bomb_timer, ""));
      stc (buf, ch);
      return;
    }

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

  if (ch->pcdata->npowers[NINJAKI] < 30)
    {
      send_to_char ("You do not have enough Ki points.\n\r", ch);
      return;
    }

  waiting (ch, 12);

  if (all)
    {
      act
	("You toss your bomb onto the floor and fill the air with sleeping gas.",
	 ch, NULL, victim, TO_CHAR);
      for (vch = char_list; vch != NULL; vch = vch_next)
	{
	  vch_next = vch->next;
	  if (vch->in_room == NULL)
	    continue;
	  if (ch == vch)
	    continue;
	  if (is_safe (ch, vch))
	    continue;
	  if (!IS_NPC (vch))
	    {
	      if (is_same_group (vch, ch))
		continue;
	    }
	  if (!IS_NPC (vch) && vch->pcdata->chobj != NULL)
	    continue;
	  if (vch->position == POS_SLEEPING)
	    continue;
	  if (vch->in_room == ch->in_room)
	    {
	      act ("$N yawns, then crumples to the floor.", ch, NULL, vch,
		   TO_CHAR);
	      act ("$n tosses a bomb onto the floor.  You feel sleepy.", ch,
		   NULL, vch, TO_VICT);
	      vch->position = POS_SLEEPING;
	      waiting (vch, 24);
	    }
	}
      ch->pcdata->npowers[NINJAKI] -= 30;
      ch->bomb_timer = 60;
      return;
    }
  else
    {
      if ((victim = get_char_room (ch, arg1)) == NULL)
	{
	  send_to_char ("They are not here.\n\r", ch);
	  return;
	}

      if (is_safe (ch, victim))
	return;

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

      act ("You toss your bomb onto the floor and put $N to sleep.", ch, NULL,
	   victim, TO_CHAR);
      act ("$n tosses a bomb onto the floor.  You feel sleepy.", ch, NULL,
	   victim, TO_VICT);
      victim->position = POS_SLEEPING;
      ch->pcdata->npowers[NINJAKI] -= 30;
      ch->bomb_timer = 60;
      waiting (victim, 24);
      return;
    }
  return;
}


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

  if (!IS_NINJA (ch) || ch->pcdata->npowers[NPOWER_NINGENNO] < 1)
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (IS_VAMPAFF (ch, VAM_CLAWS))
    {
      send_to_char ("You remove the IronClaws from your wrists.\n\r", ch);
      REMOVE_BIT (ch->vampaff, VAM_CLAWS);
      return;
    }

  send_to_char ("You attach IronClaws to your wrists.\n\r", ch);
  SET_BIT (ch->vampaff, VAM_CLAWS);
  return;
}

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

  if (!IS_NINJA (ch) || ch->pcdata->npowers[NPOWER_CHIKYU] < 5)
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (ch->pcdata->npowers[HARA_KIRI] > 0)
    {
      send_to_char ("You are already experiencing the power of HaraKiri.\n\r",
		    ch);
      return;
    }

  if (ch->hit < ch->max_hit / 10)
    {
      send_to_char ("You are hurt too badly already.\n\r", ch);
      return;
    }

  ch->pcdata->npowers[HARA_KIRI] = ch->hit / 100;

  if (ch->pcdata->npowers[HARA_KIRI] < 5)
    ch->pcdata->npowers[HARA_KIRI] = 5;
  ch->hit = 1;
  ch->mana = 1;
  ch->move = 1;
  send_to_char ("You cut your finger and bleed profusely.\n\r", ch);
  act ("$n cuts his finger and obtains the power of HaraKiri.", ch, NULL,
       NULL, TO_ROOM);
  return;
}

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

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

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

  if (!IS_CREATOR (ch))
    {
      if (IS_NINJA (ch) && !IS_IKIRYU (ch))
	{
	  if (ch->pcdata->npowers[NPOWER_NINGENNO] < 6)
	    {
	      do_huh (ch, "");
	      return;
	    }
	}
      else if (IS_IKIRYU (ch))
	{
	  if (get_disc (ch, DISC_QUIETUS) < 7)
	    {
	      do_huh (ch, "");
	      return;
	    }
	}

      else
	{
	  if (get_tribe (ch, TRIBE_GLASS_WALKERS) < 5)
	    {
	      do_huh (ch, "");
	      return;
	    }
	}
    }

  if ((victim = ch->fighting) == NULL)
    {
      if (arg[0] == '\0')
	{
	  send_to_char ("Circle around whom?\r\n", ch);
	  return;
	}
      if ((victim = get_char_room (ch, arg)) == NULL)
	{
	  send_to_char
	    ("How can you Circle around someone who is not here?\r\n", ch);
	  return;
	}
    }

  if (ch == victim)
    {
      stc ("You can't circle yourself.\n\r", ch);
      return;
    }

  if (is_safe (ch, victim))
    return;

  act
    ("You dodge $N's blow, swing yourself behind $M and attack $M from behind!\r\n",
     ch, NULL, victim, TO_CHAR);
  sprintf (buf,
	   "%s dodges your blow and instantly circles around you and attacks from behind\r\n",
	   ch->name);
  send_to_char (buf, victim);
  if (IS_NINJA (ch) && !IS_IKIRYU (ch))
    more_hit (ch, victim, gsn_circleattack, 0, number_range (2, 3), TRUE);
  more_hit (ch, victim, gsn_circleattack, 0, number_range (2, 3), FALSE);
  if (IS_IKIRYU (ch))
    more_hit (ch, victim, gsn_circleattack, 0, number_range (3, 5), TRUE);

  waiting (ch, 12);
  return;

}

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

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_NINJA (ch) && !IS_CREATOR (ch))
    {
      do_huh (ch, "");
      return;
    }

  if (!IS_CREATOR (ch))
    {
      if (IS_NINJA (ch))
	{
	  if (ch->pcdata->npowers[NPOWER_BUSHIDO] < 7)
	    {
	      do_huh (ch, "");
	      return;
	    }
	}

      if (ch->pcdata->npowers[NINJAKI] < 30)
	{
	  send_to_char ("You don't have 30 ki to perform the Kuki Tobi.\n\r",
			ch);
	  return;
	}
    }

  if ((victim = ch->fighting) == NULL)
    {
      if (arg[0] == '\0')
	{
	  send_to_char ("Leap over whom?\r\n", ch);
	  return;
	}
      if ((victim = get_char_room (ch, arg)) == NULL)
	{
	  send_to_char ("How can you Leap over someone who is not here?\r\n",
			ch);
	  return;
	}
    }

  if (ch == victim)
    {
      stc ("You can't leap over yourself.\n\r", ch);
      return;
    }

  if (((obj = get_eq_char (ch, WEAR_WIELD)) == NULL
       || obj->value[3] != 11)
      && ((obj = get_eq_char (ch, WEAR_HOLD)) == NULL || obj->value[3] != 11))
    {
      stc ("You need a piercing weapon.\n\r", ch);
      return;
    }


  if (is_safe (ch, victim))
    return;

  stop_fighting (victim, TRUE);

  if (!IS_SET (ch->xbits, X_NINJA_HIDE))
    {
      if (IS_LICH (victim))
	{
	  act ("You can not possibly hide from $N.", ch, NULL, victim,
	       TO_CHAR);
	  return;
	}

      act
	("You throw a smoke bomb to the floor and leap high into the air wrapping yourself in shadows!",
	 ch, NULL, victim, TO_CHAR);
      act
	("$n throws a smoke bomb to the floor, and when the smoke clears $e is no where to be seen.",
	 ch, NULL, NULL, TO_ROOM);
      SET_BIT (ch->xbits, X_NINJA_HIDE);
    }
  else
    {
      if (IS_LICH (victim))
	{
	  act ("$N is already aware of you.", ch, NULL, victim, TO_CHAR);
	  return;
	}

      act ("You silently leap high into the air above $N's head.", ch, NULL,
	   victim, TO_CHAR);
    }

  free_string (ch->kukivict);
  ch->kukivict = str_dup (victim->name);
  ch->kukitobi = number_range (2, 3);
  ch->pcdata->npowers[NINJAKI] -= 30;
  waiting (ch, 16);
  return;
}

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

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (arg[0] == '\0')
    {
      stc ("Bug! Please inform Corim as soon as possible.\n\r", ch);
      return;
    }

  if (((obj = get_eq_char (ch, WEAR_WIELD)) == NULL
       || obj->value[3] != 11)
      && ((obj = get_eq_char (ch, WEAR_HOLD)) == NULL || obj->value[3] != 11))
    {
      stc
	("Somehow you managed to lose your piercing weapon after leaping into the air. Inform Corim ASAP!\n\r",
	 ch);
      return;
    }


  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      stc ("Your victim seems to have escaped.\n\r", ch);
      return;
    }

  act ("You fall from the air behind $N driving $p into $S back.", ch, obj,
       victim, TO_CHAR);
  if (victim != NULL && !IS_NPC (victim))
    act ("$p is suddenly slammed into your back.", ch, obj, victim, TO_VICT);
  act ("$n drops from the up above, driving $p hard into $N's back.", ch, obj,
       victim, TO_NOTVICT);
  multi_hit (ch, victim, gsn_backstab);
  multi_hit (ch, victim, gsn_backstab);
  multi_hit (ch, victim, gsn_backstab);
  return;
}

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

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_NINJA (ch) || ch->pcdata->npowers[NPOWER_NINGENNO] < 7)
    {
      check_social (ch, "trip", arg);
      return;
    }

  if ((victim = ch->fighting) == NULL)
    {
      if (arg[0] == '\0')
	{
	  send_to_char ("Trip whom?\r\n", ch);
	  return;
	}
      if ((victim = get_char_room (ch, arg)) == NULL)
	{
	  send_to_char ("How can you trip someone who is not here?\r\n", ch);
	  return;
	}
    }
  if (IS_NPC (victim))
    {
      send_to_char ("A trip would have no effect on them!\r\n", ch);
      return;
    }

  if (number_percent () <= 80)
    {
      sprintf (buf, "You skillfully trip %s, and they go down!\r\n",
	       victim->name);
      send_to_char (buf, ch);
      sprintf (buf,
	       "%s makes an impressive fighting move, and you land on your butt!\r\n",
	       ch->name);
      send_to_char (buf, victim);
      waiting (ch, 12);
      waiting (victim, 18);
      return;
    }
  else
    {
      send_to_char
	("You attempt an impressive fighting move, but instead land on your butt!\r\n",
	 ch);
      sprintf (buf,
	       "%s attempts to make an impressive fighting move, but lands on his butt!\r\n",
	       ch->name);
      send_to_char (buf, victim);
      waiting (ch, 20);
      return;
    }
}


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

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_NINJA (ch) || ch->pcdata->npowers[NPOWER_SORA] < 1)
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    {
      send_to_char
	("You close your eyes and mentally survey the surrounding area.\n\r",
	 ch);
      act ("$n closes $s eyes and a look of concentration crosses $s face.",
	   ch, NULL, NULL, TO_ROOM);
      for (d = descriptor_list; d != NULL; d = d->next)
	{
	  if (d->connected != CON_PLAYING)
	    continue;
	  if ((victim = d->character) == NULL)
	    continue;
	  if (IS_NPC (victim) || victim->in_room == NULL)
	    continue;
	  if (victim == ch)
	    continue;
	  if (!can_see (ch, victim))
	    continue;
	  if (!plane_see (ch, victim))
	    continue;
	  if (IS_IMMORTAL (victim))
	    continue;
	  if (IS_AFFECTED (victim, AFF_POLYMORPH))
	    sprintf (buf, "(%s) %s: ", victim->name, victim->morph);
	  else
	    sprintf (buf, "%s: ", victim->name);
	  send_to_char (buf, ch);
	  sprintf (buf, "%s.\n\r", victim->in_room->name);
	  send_to_char (buf, ch);
	  found = TRUE;
	}
      if (!found)
	send_to_char ("You cannot seem to locate anyone.\n\r", ch);
      return;
    }

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

  if (IS_IMMORTAL (victim))
    {
      stc ("Heh, dont think so.\n\r", ch);
      act ("$n just tried to scry you.", ch, NULL, victim, TO_VICT);
      return;
    }

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

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

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

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

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_NINJA (ch) || ch->pcdata->npowers[NPOWER_SORA] < 7)
    {
      send_to_char ("Huh?", ch);
      return;
    }

  if (ch->fight_timer > 0)
    {
      send_to_char ("Not until your fight timer expires.\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    {
      send_to_char
	("Who do you wish to walk to via the paths of darkness?\r\n", ch);
      return;
    }

  if ((victim = get_char_world (ch, arg)) == NULL
      || victim == ch || victim->in_room == NULL || ch->in_room == NULL)
    {
      send_to_char ("You attempt to walk through the shadows, but fail.\n\r",
		    ch);
      return;
    }
  if (is_inarena (victim))
    return;
  if (is_inarena (ch))
    return;
  if (travelsafe (ch, victim))
    return;

  if (victim->in_room == ch->in_room)
    {
      send_to_char ("But you are already there!\n\r", ch);
      return;
    }
  if (IS_IMMORTAL (victim))
    {
      stc ("The spell failed.\n\r", ch);
      sprintf (buf, "%s just tried to step to you.\n\r", ch->name);
      stc (buf, victim);
      return;
    }

  if (IS_SET (victim->evenmore, EM_JAILED))
    {
      send_to_char ("What??? You wish to go to jail too?\n\r", ch);
      return;
    }

  if (IS_SET (victim->in_room->room_flags, ROOM_SAFE)
      || 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)
      || (!IS_NPC (victim) && !IS_IMMUNE (victim, IMM_SUMMON)))
    {
      send_to_char ("You are unable to focus on their location.\n\r", ch);
      return;
    }

  send_to_char ("You dissipate into the shadows.\n\r", ch);
  act ("$n dissipates into the shadows, slowly vanishing from sight.", ch,
       NULL, NULL, TO_ROOM);
  char_from_room (ch);
  char_to_room (ch, victim->in_room);
  do_look (ch, "");
  send_to_char ("You coalesce from the darkness which surrounds you.\n\r",
		ch);
  waiting (ch, 5);
  return;
}

void
do_stride (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  CHAR_DATA *bvictim;
  char arg[MIL];
  char arg2[MIL];
  char arg3[MIL];
  char buf[MSL];

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

  if (IS_NPC (ch))
    return;

  if (!IS_NINJA (ch) || ch->pcdata->npowers[NPOWER_CHIKYU] < 9)
    {
      send_to_char ("Huh?", ch);
      return;
    }

  if (ch->fight_timer > 0)
    {
      send_to_char ("Not until your fight timer expires.\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    {
      send_to_char ("Who do you wish to stride to?\n\r", ch);
      send_to_char ("Syntax: stride <victim> backstab/bs <other victim>\n\r",
		    ch);
      return;
    }

  if ((victim = get_char_world (ch, arg)) == NULL
      || victim == ch || victim->in_room == NULL || ch->in_room == NULL)
    {
      send_to_char ("You attempt to walk through the shadows, but fail.\n\r",
		    ch);
      return;
    }
  if (is_inarena (victim))
    return;
  if (is_inarena (ch))
    return;
  if (travelsafe (ch, victim))
    return;

  if (victim->in_room == ch->in_room)
    {
      send_to_char ("But you are already there!\n\r", ch);
      return;
    }
  if (IS_IMMORTAL (victim))
    {
      stc ("The spell failed.\n\r", ch);
      sprintf (buf, "%s just tried to step to you.\n\r", ch->name);
      stc (buf, victim);
      return;
    }

  if (IS_SET (victim->evenmore, EM_JAILED))
    {
      send_to_char ("What??? You wish to go to jail too?\n\r", ch);
      return;
    }

  if (IS_SET (victim->in_room->room_flags, ROOM_SAFE)
      || 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)
      || (!IS_NPC (victim) && !IS_IMMUNE (victim, IMM_SUMMON)))
    {
      send_to_char ("You are unable to focus on their location.\n\r", ch);
      return;
    }

  send_to_char ("You dissipate into the shadows.\n\r", ch);
  act ("$n dissipates into the shadows, slowly vanishing from sight.", ch,
       NULL, NULL, TO_ROOM);
  char_from_room (ch);
  char_to_room (ch, victim->in_room);
  do_look (ch, "");
  send_to_char ("You coalesce from the darkness which surrounds you.\n\r",
		ch);
  if (!str_cmp (arg2, "backstab") || !str_cmp (arg2, "bs"))
    {
      if (arg3[0] == '\0')
	{
	  do_stridebackstab (ch, victim->name);
	}
      else
	{
	  if ((bvictim = get_char_room (ch, arg3)) == NULL
	      || bvictim == ch
	      || bvictim->in_room == NULL || ch->in_room == NULL)
	    {
	      stc ("There is noone with that name here.\n\r", ch);
	    }
	  else
	    {
	      do_stridebackstab (ch, bvictim->name);
	    }

	}
    }
  waiting (ch, 8);
  return;
}

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

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

  if (!IS_NINJA (ch) || ch->pcdata->npowers[NPOWER_SORA] < 2)
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    {
      send_to_char ("Read the aura on what?\n\r", ch);
      return;
    }

  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      if ((obj = get_obj_carry (ch, arg)) == NULL)
	{
	  send_to_char ("Read the aura on what?\n\r", ch);
	  return;
	}
      act ("$n examines $p intently.", ch, obj, NULL, TO_ROOM);
      spell_identify (skill_lookup ("identify"), ch->level, ch, obj);
      return;
    }

  if (!IS_NPC (victim) && (IS_IMMUNE (victim, IMM_SHIELDED))
      && !IS_ITEMAFF (ch, ITEMA_VISION))
    {
      send_to_char ("You are unable to read their aura.\n\r", ch);
      return;
    }

  act ("$n examines $N intently.", ch, NULL, victim, TO_NOTVICT);
  act ("$n examines you intently.", ch, NULL, victim, TO_VICT);
  if (IS_NPC (victim))
    sprintf (buf, "%s is an NPC.\n\r", victim->short_descr);
  else
    {
      if (victim->level == 12)
	sprintf (buf, "%s is an Implementor.\n\r", victim->name);
      else if (victim->level == 11)
	sprintf (buf, "%s is a High Judge.\n\r", victim->name);
      else if (victim->level == 10)
	sprintf (buf, "%s is a Judge.\n\r", victim->name);
      else if (victim->level == 9)
	sprintf (buf, "%s is an Enforcer.\n\r", victim->name);
      else if (victim->level == 8)
	sprintf (buf, "%s is a Quest Maker.\n\r", victim->name);
      else if (victim->level == 7)
	sprintf (buf, "%s is a Builder.\n\r", victim->name);
      else if (victim->level >= 3)
	sprintf (buf, "%s is an Avatar.\n\r", victim->name);
      else
	sprintf (buf, "%s is a Mortal.\n\r", victim->name);
    }
  send_to_char (buf, ch);
  if (!IS_NPC (victim))
    {
      sprintf (buf, "Str:%d, Int:%d, Wis:%d, Dex:%d, Con:%d.\n\r",
	       get_curr_str (victim), get_curr_int (victim),
	       get_curr_wis (victim), get_curr_dex (victim),
	       get_curr_con (victim));
      send_to_char (buf, ch);
    }
  sprintf (buf, "Life:%d/%d, Mp:%d/%d, Vital:%d/%d.\n\r", victim->hit,
	   victim->max_hit, victim->mana, victim->max_mana, victim->move,
	   victim->max_move);
  send_to_char (buf, ch);
  if (!IS_NPC (victim))
    sprintf (buf, "Hitroll:%d, Damroll:%d, AC:%d.\n\r", char_hitroll (victim),
	     char_damroll (victim), char_ac (victim));
  else
    sprintf (buf, "AC:%d.\n\r", char_ac (victim));
  send_to_char (buf, ch);
  if (!IS_NPC (victim))
    {
      sprintf (buf, "Status:%d, ", victim->race);
      send_to_char (buf, ch);
      if (IS_VAMPIRE (ch))
	{
	  sprintf (buf, "Blood:%d, ", victim->pcdata->condition[COND_THIRST]);
	  send_to_char (buf, ch);
	}
    }
  sprintf (buf, "Alignment:%d.\n\r", victim->alignment);
  send_to_char (buf, ch);
  if (!IS_NPC (victim) && IS_EXTRA (victim, EXTRA_PREGNANT))
    act ("$N is pregnant.", ch, NULL, victim, TO_CHAR);
  return;
}

void
do_gunaya (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MIL];
  int sn;
  int level;
  int spelltype;

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->npowers[NPOWER_CHIKYU] < 7)
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if (arg[0] == '\0' && ch->fighting == NULL)
    {
      send_to_char ("Who do you wish to net?\n\r", ch);
      return;
    }

  if ((victim = ch->fighting) == NULL)
    {
      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 trap yourself in a spiritual net.\n\r", ch);
      return;
    }

  if (is_safe (ch, victim))
    return;

  if ((sn = skill_lookup ("web")) < 0)
    return;
  spelltype = skill_table[sn].target;
  level = ch->spl[spelltype] * 0.25;
  (*skill_table[sn].spell_fun) (sn, level, ch, victim);
  waiting (ch, 12);
  return;
}

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

  one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

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

  if (ch->pcdata->npowers[NPOWER_SORA] < 6)
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }

  if ((victim = get_char_world (ch, arg)) == NULL)
    {
      send_to_char ("Shadowwalk to whom?\n\r", ch);
      return;
    }

  location = victim->in_room;

  if (ch->move < 650)
    {
      send_to_char ("You are too tired to go shadowwalking.\n\r", ch);
      return;
    }

  if (!IS_NPC (victim) && IS_SET (victim->immune, IMM_SUMMON))
    {
      send_to_char ("You failed.\n\r", ch);
      return;
    }

  act ("You walk into the shadows.", ch, NULL, NULL, TO_CHAR);
  act ("$n walks into the shadows.", ch, NULL, NULL, TO_ROOM);
  ch->move -= 650;
  char_from_room (ch);
  char_to_room (ch, location);
  do_look (ch, "auto");
  act ("You walk out of the shadows.", ch, NULL, NULL, TO_CHAR);
  act ("$n walks out of the shadows.", ch, NULL, NULL, TO_CHAR);

  return;
}

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

  argument = one_argument (argument, arg);

  if (IS_NPC (ch))
    return;

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

  if (get_disc (ch, DISC_QUIETUS) < 7)
    {
      send_to_char ("You need quietus to 7 first.\n\r", ch);
      return;
    }

  if (arg[0] == '\0')
    {
      send_to_char ("Who do you wish to use advanced poison on?\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))
    {
      send_to_char ("Not on NPC's.\n\r", ch);
      return;
    }
  if (is_safe (ch, victim))
    {
      act ("not while in a safe room.", ch, NULL, victim, TO_CHAR);
      if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
	{
	  guardian_message (victim);
	  act ("$n just failed to use advanced poison against you.", ch, NULL,
	       victim, TO_VICT);
	}
      return;
    }
  act ("A look of concentration

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

Site Stats

Snippets: 1791
Codebases: 571