act.offensive.c

dbt/src/act.offensive.c · 212.3 KB

From the archive dbx2.gz

Download the archive   « Back to the archive contents

/* ************************************************************************
*   File: act.offensive.c                               Part of CircleMUD *
*  Usage: player-level commands of an offensive nature                    *
*                                                                         *
*  All rights reserved.  See license.doc for complete information.        *
*                                                                         *
*  Copyright (C) 1993, 94 by the Trustees of the Johns Hopkins University *
*  CircleMUD is based on DikuMUD, Copyright (C) 1990, 1991.               *
************************************************************************ */

#include "conf.h"
#include "sysdep.h"


#include "structs.h"
#include "utils.h"
#include "comm.h"
#include "interpreter.h"
#include "handler.h"
#include "db.h"
#include "spells.h"

/* extern variables */
extern struct room_data *world;
extern struct descriptor_data *descriptor_list;
extern int pk_allowed;
extern sh_int r_death_start_room;

/* extern functions */
void raw_kill(struct char_data * ch, struct char_data * killer);
void check_killer(struct char_data * ch, struct char_data * vict);

/* local functions */
ACMD(do_assist);
ACMD(do_hit);
ACMD(do_kill);
ACMD(do_backstab);
ACMD(do_order);
ACMD(do_flee);
ACMD(do_sweep);
ACMD(do_rescue);
ACMD(do_kick);
ACMD(do_tailwhip);
ACMD(do_forelock);
ACMD(do_knee);
ACMD(do_elbow);
ACMD(do_roundhouse);
ACMD(do_burning);
ACMD(do_genki);
ACMD(do_chikyuu);
ACMD(do_genocide);
ACMD(do_bbk);
ACMD(do_yoiko);
ACMD(do_spirit);
ACMD(do_scatter);
ACMD(do_hellspear);
ACMD(do_gigabeam);
ACMD(do_twin);
ACMD(do_kamehame);
ACMD(do_bigbang);
ACMD(do_finalflash);
ACMD(do_choukame);
ACMD(do_disk);
ACMD(do_masenko);
ACMD(do_renzo);
ACMD(do_makanko);
ACMD(do_kishot);
ACMD(do_havoc);
ACMD(do_crusher);
ACMD(do_eraser);
ACMD(do_bakuhatsuha);
ACMD(do_honoo);
ACMD(do_beam);
ACMD(do_tsuihidan);
ACMD(do_shogekiha);
ACMD(do_kikoho);
ACMD(do_kakusanha);
ACMD(do_pheonix);
ACMD(do_eclipse);
ACMD(do_hydro);
ACMD(do_dball);
ACMD(do_dball2);
ACMD(do_kousen);
ACMD(do_zanelb);
ACMD(do_hellf);
ACMD(do_galikgun);

ACMD(do_assist)

{
  struct char_data *helpee, *opponent;

  if (FIGHTING(ch)) {
    send_to_char("You're already fighting!  How can you assist someone else?\r\n", ch);
    return;
  }
  one_argument(argument, arg);

  if (!*arg)
    send_to_char("Whom do you wish to assist?\r\n", ch);
  else if (!(helpee = get_char_room_vis(ch, arg)))
    send_to_char(NOPERSON, ch);
  else if (helpee == ch)
    send_to_char("You can't help yourself any more than this!\r\n", ch);
  else {
    /*
     * Hit the same enemy the person you're helping is.
     */
    if (FIGHTING(helpee))
      opponent = FIGHTING(helpee);
    else
      for (opponent = world[ch->in_room].people;
	   opponent && (FIGHTING(opponent) != helpee);
	   opponent = opponent->next_in_room)
		;

    if (!opponent)
      act("But nobody is fighting $M!", FALSE, ch, 0, helpee, TO_CHAR);
    else if (!CAN_SEE(ch, opponent))
      act("You can't see who is fighting $M!", FALSE, ch, 0, helpee, TO_CHAR);
    else if (!pk_allowed && !IS_NPC(opponent))	/* prevent accidental pkill */
      act("Use 'murder' if you really want to attack $N.", FALSE,
	  ch, 0, opponent, TO_CHAR);
    else {
      send_to_char("You join the fight!\r\n", ch);
      act("$N assists you!", 0, helpee, 0, ch, TO_CHAR);
      act("$n assists $N.", FALSE, ch, 0, helpee, TO_NOTVICT);
      hit(ch, opponent, TYPE_UNDEFINED);
    }
  }
}


ACMD(do_hit)
{
  struct char_data *vict;

  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("This room just has such a peaceful, easy feeling...\r\n", ch);
    return;
  }
  one_argument(argument, arg);
  if (!*arg)
    send_to_char("Hit who?\r\n", ch);
  else if (!(vict = get_char_room_vis(ch, arg)))
    send_to_char("They don't seem to be here.\r\n", ch);
  else if (vict == ch) {
    send_to_char("You hit yourself...OUCH!.\r\n", ch);
    act("$n hits $mself, and says OUCH!", FALSE, ch, 0, vict, TO_ROOM);
  } else if (AFF_FLAGGED(ch, AFF_MAJIN) && (ch->master == vict))
    act("$N is just such a good friend, you simply can't hit $M.", FALSE, ch, 0, vict, TO_CHAR);
  else {
    if (!pk_allowed) {
      if (!IS_NPC(vict) && !IS_NPC(ch)) {
	if (subcmd != SCMD_MURDER) {
	  send_to_char("Use 'murder' to hit another player.\r\n", ch);
	  return;
	} else {
	  check_killer(ch, vict);
	}
      }
     }
 if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
 if (GET_POS(ch) == POS_STANDING && GET_POS(vict) == POS_FLOATING) {
    send_to_char("They are up too high for you to reach!\r\n", ch);
    return;
    }
 else if (GET_POS(ch) == POS_FLOATING && GET_POS(vict) == POS_FLOATING) {
    hit(ch, vict, TYPE_UNDEFINED);
    WAIT_STATE(ch, PULSE_VIOLENCE + 2);
    GET_MOVE(ch) = 0;
    }
 else if (GET_POS(ch) == POS_FLOATING && GET_POS(vict) == POS_STANDING) {
    send_to_char("You fly down and hit them!\r\n", ch);
    REMOVE_BIT(PRF_FLAGS(ch), PRF_FLYING);
    act("&11$n&15 flies down and hits you!&00\r\n", TRUE, ch, 0, 0, TO_VICT);
    act("&11$n&15 flies down and hits &11$N&15!&00\r\n", FALSE, ch, 0, vict, TO_NOTVICT);
    GET_MOVE(ch) = 0;
    GET_POS(ch) == POS_STANDING;
    hit(ch, vict, TYPE_UNDEFINED);
    WAIT_STATE(ch, PULSE_VIOLENCE + 2);
    }
 else if (GET_POS(ch) == POS_STANDING) {
      hit(ch, vict, TYPE_UNDEFINED);
      WAIT_STATE(ch, PULSE_VIOLENCE + 2);
      }
 }
 GET_MOVE(ch) = 0;
}



ACMD(do_kill)
{
  struct char_data *vict;

  if ((GET_LEVEL(ch) < 1000000) || IS_NPC(ch)) {
    do_hit(ch, argument, cmd, subcmd);
    return;
  }
  one_argument(argument, arg);

  if (!*arg) {
    send_to_char("Kill who?\r\n", ch);
  } else {
    if (!(vict = get_char_room_vis(ch, arg)))
      send_to_char("They aren't here.\r\n", ch);
    else if (ch == vict)
      send_to_char("Your mother would be so sad.. :(\r\n", ch);
    else {
      act("You chop $M to pieces!  Ah!  The blood!", FALSE, ch, 0, vict, TO_CHAR);
      act("$N chops you to pieces!", FALSE, vict, 0, ch, TO_CHAR);
      act("$n brutally slays $N!", FALSE, ch, 0, vict, TO_NOTVICT);
      raw_kill(vict, ch);
      sprintf(buf, "&16[&10ALERT&16] &14%s &15has been &00&01SLAIN&00", GET_NAME(vict));
      send_to_all(buf);
    }
  }
  GET_MOVE(ch) = 0;
}



ACMD(do_backstab)
{
  struct char_data *vict;
  int percent, prob, dam;

  one_argument(argument, buf);
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("This room just has such a peaceful, easy feeling...\r\n", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!GET_SKILL(ch, SKILL_BACKSTAB)) {
    send_to_char("You don't know how to do that!\r\n", ch);
    return;
  }
  if (!(vict = get_char_room_vis(ch, buf))) {
    send_to_char("Backstab who?\r\n", ch);
    return;
  }
  if (vict == ch) {
    send_to_char("How can you SWIFTNESS up on yourself?\r\n", ch);
    return;
  }
  if (!GET_EQ(ch, WEAR_WIELD)) {
    send_to_char("You need to wield a weapon to make it a success.\r\n", ch);
    return;
  }
  if (GET_OBJ_VAL(GET_EQ(ch, WEAR_WIELD), 3) != TYPE_SLASH - TYPE_HIT) {
    send_to_char("Only swords or daggers can be used for backstabbing.\r\n", ch);
    return;
  }

  if (MOB_FLAGGED(vict, MOB_AWARE)) {
    act("You notice $N lunging at you!", FALSE, vict, 0, ch, TO_CHAR);
    act("$e notices you lunging at $m!", FALSE, vict, 0, ch, TO_VICT);
    act("$n notices $N lunging at $m!", FALSE, vict, 0, ch, TO_NOTVICT);
    hit(vict, ch, TYPE_UNDEFINED);
    return;
  }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  percent = number(1, 101);	/* 101% is a complete failure */
  prob = GET_SKILL(ch, SKILL_BACKSTAB);

  if (AWAKE(vict) && (percent > prob)) {
    damage(ch, vict, 0, SKILL_BACKSTAB);
    return;
    }
  else
    damage(ch, vict, GET_MAX_HIT(ch) / 4, TYPE_UNDEFINED);
    dam = GET_MAX_HIT(ch) / 4;
    if (GET_DEX(ch) >= number(80, 120) && GET_MANA(ch) >= GET_MAX_MANA(ch)/10 && GET_MAX_HIT(vict) <= GET_MAX_HIT(ch) * 2) {
     act("&14$N&15 gasps instantly as your sword emerges out through $S chest.", FALSE, ch, 0, vict, TO_CHAR);
     act("&14$n&15 stabs their sword right through your back and out your chest, and you are impaled upon the blade!&00", FALSE, ch, 0, vict, TO_VICT);
     act("&14$N&15 gasps instantly as &14$n&15's sword emerges out through $S chest.", FALSE, ch, 0, vict, TO_NOTVICT);
     GET_MANA(ch) -= GET_MAX_MANA(ch) / 10;
     WAIT_STATE(ch, PULSE_VIOLENCE * 2);
     GET_HIT(vict) -= GET_MAX_HIT(vict);
     WAIT_STATE(vict, PULSE_VIOLENCE * 2);
     }
    else {
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 cries out in pain as they are stabbed&11!&16 [&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15You cry out as you are suddenly stabbed in the back&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act("&14$n &15stabs &09$N &15painfully in the back&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
 }
 GET_MOVE(ch) = 0;
}



ACMD(do_order)
{
  char name[MAX_INPUT_LENGTH], message[MAX_INPUT_LENGTH];
  bool found = FALSE;
  int org_room;
  struct char_data *vict;
  struct follow_type *k;

  half_chop(argument, name, message);

  if (!*name || !*message)
    send_to_char("Order who to do what?\r\n", ch);
  else if (!(vict = get_char_room_vis(ch, name)) && !is_abbrev(name, "followers"))
    send_to_char("That person isn't here.\r\n", ch);
  else if (ch == vict)
    send_to_char("You obviously suffer from skitzofrenia.\r\n", ch);

  else {
    if (AFF_FLAGGED(ch, AFF_MAJIN)) {
      send_to_char("Your superior would not aprove of you giving orders.\r\n", ch);
      return;
    }
    if (vict) {
      sprintf(buf, "$N orders you to '%s'", message);
      act(buf, FALSE, vict, 0, ch, TO_CHAR);
      act("$n gives $N an order.", FALSE, ch, 0, vict, TO_ROOM);

      if ((vict->master != ch) || !AFF_FLAGGED(vict, AFF_MAJIN))
	act("$n has an indifferent look.", FALSE, vict, 0, 0, TO_ROOM);
      else {
	send_to_char(OK, ch);
	command_interpreter(vict, message);
      }
    } else {			/* This is order "followers" */
      sprintf(buf, "$n issues the order '%s'.", message);
      act(buf, FALSE, ch, 0, vict, TO_ROOM);

      org_room = ch->in_room;

      for (k = ch->followers; k; k = k->next) {
	if (org_room == k->follower->in_room)
	  if (AFF_FLAGGED(k->follower, AFF_MAJIN)) {
	    found = TRUE;
	    command_interpreter(k->follower, message);
	  }
      }
      if (found)
	send_to_char(OK, ch);
      else
	send_to_char("Nobody here is a loyal subject of yours!\r\n", ch);
    }
  }
}



ACMD(do_flee)
{
  int i, attempt, loss;
  struct char_data *was_fighting;
  if (!PLR_FLAGGED(ch, PLR_LLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You have no legs!\r\n", ch);
     return;
}
  if (!PLR_FLAGGED(ch, PLR_RLEG) && PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("What are ya gunna do hop on one leg!?\r\n", ch);
     return;
}
  if (PLR_FLAGGED(ch, PLR_RLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("What are ya gunna do hop on one leg!?\r\n", ch);
     return;
     }
  if (GET_POS(ch) < POS_FIGHTING) {
    send_to_char("You are in pretty bad shape, unable to flee!\r\n", ch);
    return;
  }

  if (IS_AFFECTED(ch, AFF_MFROZEN)) {
    send_to_char("You would flee, but you can't move.\r\n", ch);
    return;
  }

  for (i = 0; i < 6; i++) {
    attempt = number(0, NUM_OF_DIRS - 1);	/* Select a random direction */
    if (CAN_GO(ch, attempt) &&
	!ROOM_FLAGGED(EXIT(ch, attempt)->to_room, ROOM_DEATH)) {
      act("$n panics, and attempts to flee!", TRUE, ch, 0, 0, TO_ROOM);
      was_fighting = FIGHTING(ch);
      if (do_simple_move(ch, attempt, TRUE)) {
	send_to_char("You flee head over heels.\r\n", ch);
        GET_MOVE(ch) = 0;
      } else {
	act("$n tries to flee, but can't!", TRUE, ch, 0, 0, TO_ROOM);
      }
      return;
    }
  }
  send_to_char("PANIC!  You couldn't escape!\r\n", ch);
}


ACMD(do_sweep)
{
  struct char_data *vict;
  int percent, prob;

  one_argument(argument, arg);
  if (!PLR_FLAGGED(ch, PLR_LLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You have no legs!\r\n", ch);
     return;
}
  if (!PLR_FLAGGED(ch, PLR_RLEG) && PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You only have one leg!\r\n", ch);
     return;
}
  if (PLR_FLAGGED(ch, PLR_RLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You only have one leg!\r\n", ch);
     return;
     }
  if (!GET_SKILL(ch, SKILL_SWEEP)) {
    send_to_char("You have no idea how.\r\n", ch);
    return;
  }
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("This room just has such a peaceful, easy feeling...\r\n", ch);
    return;
  }
  if (!(vict = get_char_room_vis(ch, arg))) {
    if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Sweep who?\r\n", ch);
      return;
    }
  }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
     case 1:
     case 2:
      break;
     case 3:
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
      break;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  percent = number(1, 100);	/* 101% is a complete failure */
  prob = GET_LBS(ch);

  if (MOB_FLAGGED(vict, MOB_NOSWEEP)) {
    act("You can't sweep them!", FALSE, ch, 0, 0, TO_CHAR);
    return;
    }
  if (percent > prob) {
    act("&15You miss with your sweep!&00\r\n", TRUE, ch, 0, vict, TO_CHAR);
    act("&15$n misses with their sweep at you!&00\r\n", TRUE, ch, 0, vict, TO_VICT);
    act("&15$n misses with their sweep at $N!&00\r\n", TRUE, ch, 0, vict, TO_NOTVICT);
    damage(ch, vict, 1, SKILL_SWEEP);
    WAIT_STATE(ch, PULSE_VIOLENCE * 2);
    return;
    }
 else {
      damage(ch, vict, 1, SKILL_SWEEP);
      act("&15You sweep &14$N&15 off their &09feet&11!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$n&15 sweeps you off your &09feet&11!&00", FALSE, ch, 0, vict, TO_VICT);
      act("&14$n&15 sweeps &14$N&15 off their &09feet&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_POS(vict) = POS_SITTING;
      WAIT_STATE(vict, PULSE_VIOLENCE);
  }
  WAIT_STATE(ch, PULSE_VIOLENCE * 2);
  GET_MOVE(ch) = 0;
}

ACMD(do_rescue)
{
  struct char_data *vict, *tmp_ch;
  int percent, prob;

  one_argument(argument, arg);
  if (!PLR_FLAGGED(ch, PLR_LLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You have no legs!\r\n", ch);
     return;
}
  if (!PLR_FLAGGED(ch, PLR_RLEG) && PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You only have one leg!\r\n", ch);
     return;
}
  if (PLR_FLAGGED(ch, PLR_RLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You only have one leg!\r\n", ch);
     return;
     }
  if (!(vict = get_char_room_vis(ch, arg))) {
    send_to_char("Whom do you want to rescue?\r\n", ch);
    return;
  }
  if (vict == ch) {
    send_to_char("What about fleeing instead?\r\n", ch);
    return;
  }
  if (FIGHTING(ch) == vict) {
    send_to_char("How can you rescue someone you are trying to kill?\r\n", ch);
    return;
  }
  for (tmp_ch = world[ch->in_room].people; tmp_ch &&
       (FIGHTING(tmp_ch) != vict); tmp_ch = tmp_ch->next_in_room);

  if (!tmp_ch) {
    act("But nobody is fighting $M!", FALSE, ch, 0, vict, TO_CHAR);
    return;
  }
  if (!GET_SKILL(ch, SKILL_RESCUE))
    send_to_char("But you have no idea how!\r\n", ch);
  else {
    percent = number(1, 101);	/* 101% is a complete failure */
    prob = GET_SKILL(ch, SKILL_RESCUE);

    if (percent > prob) {
      send_to_char("You fail the rescue!\r\n", ch);
      return;
    }
    send_to_char("Banzai!  To the rescue... You take damage in the process!\r\n", ch);
    act("&09You are rescued by $N, and you are confused&16!&00", FALSE, vict, 0, ch, TO_CHAR);
    act("&15$n heroically rescues $N! Taking damage in the process!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    sprintf(buf1, "(GC) %s has rescued %s &10from %s&10.", GET_NAME(ch), GET_NAME(vict), GET_NAME(tmp_ch));
             mudlog(buf1, BRF, LVL_GOD, TRUE);
    GET_HIT(ch) = GET_HIT(ch) - GET_MAX_HIT(ch) / 50;
    if (FIGHTING(vict) == tmp_ch)
      stop_fighting(vict);
    if (FIGHTING(tmp_ch))
      stop_fighting(tmp_ch);
    if (FIGHTING(ch))
      stop_fighting(ch);

    set_fighting(ch, tmp_ch);
    set_fighting(tmp_ch, ch);

    WAIT_STATE(vict, 2 * PULSE_VIOLENCE);
  }

}



ACMD(do_kick)
{
  struct char_data *vict;
  char arg1[MAX_INPUT_LENGTH];
  char arg2[MAX_INPUT_LENGTH];
  int MOVE = 0, HIT = 0;
  two_arguments(argument, arg1, arg2);
/*------------------------------No Limbs---------------------------*/  
  if (!PLR_FLAGGED(ch, PLR_LLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You have no legs!\r\n", ch);
     return;
}
  if (!PLR_FLAGGED(ch, PLR_RLEG) && PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You only have one leg!\r\n", ch);
     return;
}
  if (PLR_FLAGGED(ch, PLR_RLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You only have one leg!\r\n", ch);
     return;
}
/*---------------------------Aiming Shots--------------------------*/
/* Kick to the Head */
  if (!(vict = get_char_room_vis(ch, arg1)) && !str_cmp(arg,"head") && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch) > GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict)) {

  act("&15You swiftly swing a strong kick, hitting &11$N&15 in the head!&00", FALSE, ch, 0, vict, TO_CHAR);
  act("&12$n&15 smashes &11$N&15 in the head with a powerful kick!", TRUE, ch, 0, vict, TO_NOTVICT);
  act("&12$n&15 moves with great speed, smashing you in the head with a kick!&00", FALSE, ch, 0, vict, TO_VICT);  
  HIT = number(GET_LEVEL(ch)*10, GET_LEVEL(ch)*10);
  MOVE = number(5, 10);
  GET_HIT(vict) = GET_HIT(vict) - HIT;
  GET_MOVE(ch) = GET_MOVE(ch) - MOVE;
  }
  
  if (GET_HIT(vict) <=0) {
  act("&15You kill &11$N&15 with the blow!&00", FALSE, ch, 0, vict, TO_CHAR);
  act("&12$n&15 kills &11$N with with blow!&00.", TRUE, ch, 0, vict, TO_NOTVICT);
  act("&12$n&15's kick kills you!&00", FALSE, ch, 0, vict, TO_VICT);
  char_from_room(vict);
  char_to_room(vict, r_death_start_room);
  GET_HIT(vict) = GET_MAX_HIT(vict)*0.1;
  GET_MANA(vict) = GET_MAX_MANA(vict)*0.1;
  GET_MOVE(vict) = GET_MOVE(ch);
  GET_POS(vict) = POS_STANDING;
  look_at_room(vict, 0);
  }
/*-----------------------------------------------------------------*/
  if (!(vict = get_char_room_vis(ch, arg1))) {
    if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Kick who?\r\n", ch);
      return;
    }
  }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
}

ACMD(do_forelock)
{
  struct char_data *vict;
  int percent, prob, dam;

  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_FORELOCK)) {
     send_to_char("You don't have a Forelock!\r\n", ch);
     return;
     }
  if (!GET_SKILL(ch, SKILL_FORELOCK)) {
    send_to_char("You don't know how!\r\n", ch);
    return;
  }
  one_argument(argument, arg);

  if (!(vict = get_char_room_vis(ch, arg))) {
    if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Forelock whip who?\r\n", ch);
      return;
    }
  }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
     case 1:
     case 2:
      break;
     case 3:
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
      break;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  percent = number(1, 100);
  prob = GET_UBS(ch);

  if (percent > prob) {
    damage(ch, vict, 0, SKILL_FORELOCK);
    act("&15You miss with your attack at $N&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&14$n &15misses with their attack at you&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&14$n &15misses with their attack at $N&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    return;
  } else
    act("You &15wrap your forelock at &14$N&00&06'&15s throat, and slam them down&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("$n &15wraps their forelock around &14your&15 throat, and slams you down&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("$n &15wraps their forelock around &14$N&00&06'&15s throat, and slams them down&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    damage(ch, vict, GET_MAX_HIT(ch) /70 + (GET_UBS(ch) * GET_DEX(ch) * 10), SKILL_FORELOCK);
    dam = GET_MAX_HIT(ch) /70 + (GET_UBS(ch) * GET_DEX(ch) * 10);
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in pain from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);
    GET_POS(vict) = POS_SITTING;
    WAIT_STATE(vict, PULSE_VIOLENCE);
 WAIT_STATE(ch, PULSE_VIOLENCE * 2);
 GET_MOVE(ch) = 0;
}

ACMD(do_tailwhip)
{
  struct char_data *vict;
  int percent, prob, dam;

  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_TAIL)) {
     send_to_char("You don't have a tail!\r\n", ch);
     return;
     }
  if (!GET_SKILL(ch, SKILL_TAILWHIP)) {
    send_to_char("You don't know how!\r\n", ch);
    return;
  }
  one_argument(argument, arg);

  if (!(vict = get_char_room_vis(ch, arg))) {
    if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Tailwhip who?\r\n", ch);
      return;
    }
  }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  percent = number(1, 100);
  prob = GET_LBS(ch);

  if (percent > prob) {
    damage(ch, vict, 0, SKILL_TAILWHIP);
    act("&15You miss with your attack at $N&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&14$n &15misses with their attack at you&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&14$n &15misses with their attack at $N&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    return;
  } else
    act("You &15swing your tail at &14$N&00&06'&15s throat&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("$n &15swings their tail at &14your&15s throat&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("$n &15swings their tail at &14$N&00&06'&15s throat&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    damage(ch, vict, GET_MAX_HIT(ch) /70 + (GET_LBS(ch) * GET_DEX(ch) * 10), SKILL_TAILWHIP);
    dam = GET_MAX_HIT(ch) /70 + (GET_LBS(ch) * GET_DEX(ch) * 10);
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);
    GET_POS(vict) = POS_SITTING;
    WAIT_STATE(vict, PULSE_VIOLENCE);
  WAIT_STATE(ch, PULSE_VIOLENCE * 2);
 GET_MOVE(ch) = 0;
}

ACMD(do_knee)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You have no legs!\r\n", ch);
     return;
}
  if (!PLR_FLAGGED(ch, PLR_RLEG) && PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You only have one leg!\r\n", ch);
     return;
}
  if (PLR_FLAGGED(ch, PLR_RLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You only have one leg!\r\n", ch);
     return;
     }
  if (!GET_SKILL(ch, SKILL_KNEE)) {
    send_to_char("You don't know how to do that!\r\n", ch);
    return;
  }
  one_argument(argument, arg);

  if (!(vict = get_char_room_vis(ch, arg))) {
    if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Knee who?\r\n", ch);
      return;
    }
  }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  percent = number(1, 100);
  prob = GET_LBS(ch);

  if (percent > prob) {
    damage(ch, vict, 0, SKILL_KNEE);
    act("&15You miss with your attack at $N&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&14$n &15misses with their attack at you&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&14$n &15misses with their attack at $N&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    return;
  } else
    act("&11You &15crush your knee into &14$N's &15gut&11!", FALSE, ch, 0, vict, TO_CHAR);
    act("&11$n &15crushes their knee into &14your &15gut&11!", FALSE, ch, 0, vict, TO_VICT);
    act("&11$n &15crushes their knee into &14$N's &15gut&11!", FALSE, ch, 0, vict, TO_NOTVICT);
    damage(ch, vict, GET_MAX_HIT(ch) / 90 + (GET_LBS(ch) * GET_DEX(ch) * 10), SKILL_KNEE);
    dam = GET_MAX_HIT(ch) / 90 + (GET_LBS(ch) * GET_DEX(ch) * 10);
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);
  WAIT_STATE(ch, PULSE_VIOLENCE * 1);
 GET_MOVE(ch) = 0;
}

ACMD(do_elbow)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You have no legs!\r\n", ch);
     return;
}
  if (!PLR_FLAGGED(ch, PLR_RLEG) && PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You only have one leg!\r\n", ch);
     return;
}
  if (PLR_FLAGGED(ch, PLR_RLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You only have one leg!\r\n", ch);
     return;
     }
  if (!GET_SKILL(ch, SKILL_ELBOW)) {
    send_to_char("You don't know how to do that!\r\n", ch);
    return;
  }
  one_argument(argument, arg);

  if (!(vict = get_char_room_vis(ch, arg))) {
    if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Elbow who?\r\n", ch);
      return;
    }
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  percent = number(1, 100);
  prob = GET_UBS(ch);

  if (percent > prob) {
    damage(ch, vict, 0, SKILL_ELBOW);
    act("&15You miss with your attack at $N&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&14$n &15misses with their attack at you&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&14$n &15misses with their attack at $N&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    return;
  } else
    act("&15You spin and ram your &10elbow &15into &14$N's &09spine&11.&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&15$n spins and rams their &10elbow &15into &14your &09spine&11.&00", FALSE, ch, 0, vict, TO_VICT);
    act("&15$n spins and rams their &10elbow &15into &14$N's &09spine&11.&00", FALSE, ch, 0, vict, TO_NOTVICT);
    damage(ch, vict, GET_MAX_HIT(ch) /90 + (GET_UBS(ch) * GET_DEX(ch) * 10), SKILL_ELBOW);
    dam = GET_MAX_HIT(ch) /90 + (GET_UBS(ch) * GET_DEX(ch) * 10);
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);
  WAIT_STATE(ch, PULSE_VIOLENCE * 1);
 GET_MOVE(ch) = 0;
}

ACMD(do_roundhouse)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You have no legs!\r\n", ch);
     return;
}
  if (!PLR_FLAGGED(ch, PLR_RLEG) && PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You only have one leg!\r\n", ch);
     return;
}
  if (PLR_FLAGGED(ch, PLR_RLEG) && !PLR_FLAGGED(ch, PLR_LLEG)) {
     send_to_char("You only have one leg!\r\n", ch);
     return;
     }
  if (!GET_SKILL(ch, SKILL_ROUNDHOUSE)) {
    send_to_char("You don't know how to do that!\r\n", ch);
    return;
  }
  one_argument(argument, arg);

  if (!(vict = get_char_room_vis(ch, arg))) {
    if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Roundhouse who?\r\n", ch);
      return;
    }
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  percent = number(1, 100);
  prob = GET_LBS(ch);

  if (percent > prob) {
    damage(ch, vict, 0, SKILL_ROUNDHOUSE);
    act("&15You miss with your attack at $N&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&14$n &15misses with their attack at you&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&14$n &15misses with their attack at $N&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    return;
  } else
    act("&11You &15leap into the air and spin doing a &12roundhouse&15 into the side of &14$N's head&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&11$n &15leaps into the air and spins doing a &12roundhouse&15 into the side of &14your head&00", FALSE, ch, 0, vict, TO_VICT);
    act("&11$n &15leaps into the air and spins doing a &12roundhouse&15 into the side of &14$N's head&00", FALSE, ch, 0, vict, TO_NOTVICT);
    damage(ch, vict, GET_MAX_HIT(ch) /60 + (GET_LBS(ch) * GET_DEX(ch) * 10), SKILL_ROUNDHOUSE);
    dam = GET_MAX_HIT(ch) /60 + (GET_LBS(ch) * GET_DEX(ch) * 10);
    
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);
  WAIT_STATE(ch, PULSE_VIOLENCE * 1);
  GET_MOVE(ch) = 0;
}

ACMD(do_twin)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
  }
  if (!GET_SKILL(ch, SKILL_TWIN)) {
    send_to_char("You don't know how to do that!\r\n", ch);
    return;
  }
  if (!GET_EQ(ch, WEAR_WIELD)) {
    send_to_char("You need to wield a sword to use Twin Blade Slash.\r\n", ch);
    return;
  }
  if (GET_OBJ_VAL(GET_EQ(ch, WEAR_WIELD), 3) != TYPE_SLASH - TYPE_HIT) {
    send_to_char("Only you need a sword!.\r\n", ch);
    return;
  }
  if (GET_MANA(ch) < GET_MAX_MANA(ch)/30) {
     send_to_char("You don't have the Ki to do a Twin Blade Slash!\r\n", ch);
     return;
  }
  one_argument(argument, arg);

 if (!(vict = get_char_room_vis(ch, arg))) {
   if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Twin Blade Slash who?\r\n", ch);
      return;
    }
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  if (!IS_NPC(vict) && number(1, 20) == 20) {
   switch(number(1, 4)) {
    case 1:
    REMOVE_BIT(PLR_FLAGS(vict), PLR_RARM);
    act("&14$N&15 loses their &14right arm&15 in the attack!", FALSE, ch, 0, vict, TO_CHAR);
    act("&15You lose your &14right arm&15 in the attack!", FALSE, ch, 0, vict, TO_VICT);
    act("&14$N&15 loses their &14right arm&15 in the attack!", FALSE, ch, 0, vict, TO_NOTVICT);
    break;
    case 2:
    REMOVE_BIT(PLR_FLAGS(vict), PLR_LARM);
    act("&14$N&15 loses their &14left arm&15 in the attack!", FALSE, ch, 0, vict, TO_CHAR);
    act("&15You lose your &14left arm&15 in the attack!", FALSE, ch, 0, vict, TO_VICT);
    act("&14$N&15 loses their &14left&15 arm in the attack!", FALSE, ch, 0, vict, TO_NOTVICT);
    break;
    case 3:
    REMOVE_BIT(PLR_FLAGS(vict), PLR_RLEG);
    act("&14$N&15 loses their &14right leg&15 in the attack!", FALSE, ch, 0, vict, TO_CHAR);
    act("&15You lose your &14right leg&15 in the attack!", FALSE, ch, 0, vict, TO_VICT);
    act("&14$N&15 loses their &14right leg&15 in the attack!", FALSE, ch, 0, vict, TO_NOTVICT);
    break;
    case 4:
    REMOVE_BIT(PLR_FLAGS(vict), PLR_LLEG);
    act("&14$N&15 loses their &14left leg&15 in the attack!", FALSE, ch, 0, vict, TO_CHAR);
    act("&15You lose your &14left leg&15 in the attack!", FALSE, ch, 0, vict, TO_VICT);
    act("&14$N&15 loses their &14left leg&15 in the attack!", FALSE, ch, 0, vict, TO_NOTVICT);
    break;
   }
  }
  percent = number(1, 60);
  prob = GET_REINC(ch);

  if (percent > prob && GET_MANA(ch) >= GET_MAX_MANA(ch)/30) {
    damage(ch, vict, 0, SKILL_TWIN);
    act("&16$N&16 jumps out of the way before you can strike them with &10T&16w&00&02i&10n &16B&15l&00a&16d&15e &16S&00&06l&00&02a&10s&16h&00&16!", FALSE, ch, 0, vict, TO_CHAR);
    act("&16You jump out of the way just in time to dodge $n&16's &10T&16w&00&02i&10n &16B&15l&00a&16d&15e &16S&00&06l&00&02a&10s&16h&00&16!", FALSE, ch, 0, vict, TO_VICT);
    act("&16$N&16 jumps out of the way of  $n&16's &10T&16w&00&02i&10n &16B&15l&00a&16d&15e &16S&00&06l&00&02a&10s&16h&00&16!", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
    if (number(1, 200) == 100 && GET_REINC(ch) >= 0) {
     send_to_char("&16[&09Ki Skill Loss&16]&00\r\n", ch);
     GET_REINC(ch) -= 1;
    }
    return;
  } else
 act("&16You hold your swords down to your side, channeling &00&02k&10i&16 into the edges. A &00&04d&12a&16r&15k &10g&00&02r&10ee&00&02n&16 aura forms around the sharp blades. You fly forward, screaming '&10T&16w&00&02i&10n &16B&15l&00a&16d&15e &16S&00&06l&00&02a&10s&16h&00&16!', your body a blur as your swing your blades at $N&16, landing behind then, your blades crossed over your chest. A second later, $N&16 screams as thier chest glows &10g&00&02r&10ee&00&02n&16, then explodes with the &00e&14n&00&06er&14g&00y&16 that were focused into the blades!&00", FALSE, ch, 0, vict, TO_CHAR);
 act("&16$n&16 is holding there blades down to there sides, and you feel a build up of &00e&14n&00&06er&14g&00y&16. You notice a &00&04d&12a&16r&15k &10g&00&02r&10ee&00&02n&16 aura build up around the blades. You see them fly at $N&16, as they yell out, '&10T&16w&00&02i&10n &16B&15l&00a&16d&15e &16S&00&06l&00&02a&10s&16h&00&16!' They seem to vanish, then reappear behind $N&16. You see a &10g&00&02r&10ee&00&02n&16 cross on $N&16's chest, which explodes with &00e&14n&00&06er&14g&00y&16!", FALSE, ch, 0, vict, TO_NOTVICT);
 act("&16$n&16 is holding there blades down to there sides, and you feel a build up of &00e&14n&00&06er&14g&00y&16. You notice a &00&04d&12a&16r&15k &10g&00&02r&10ee&00&02n&16 aura build up around the blades. $n fly's at you, screaming, '&10T&16w&00&02i&10n &16B&15l&00a&16d&15e &16S&00&06l&00&02a&10s&16h&00&16!' and seemingly vanishes before your eyes. You notice a &10g&00&02r&10ee&00&02n&16 X on your chest, that suddenly explodes!", FALSE, ch, 0, vict, TO_VICT);
    damage(ch, vict, GET_MAX_MANA(ch) / 20 + 100000, SKILL_TWIN);
    dam = GET_MAX_MANA(ch) / 20 + 100000;
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);

    GET_POS(vict) = POS_SITTING;
    WAIT_STATE(vict, PULSE_VIOLENCE);
 WAIT_STATE(ch, PULSE_VIOLENCE * 2);

GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
 GET_MOVE(ch) = 0;
}

ACMD(do_shogekiha)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
}

  if (!GET_SKILL(ch, SKILL_SHOGEKIHA)) {
   send_to_char("You don't know how to do that!\r\n", ch);
    return;
  }

  if (GET_MANA(ch) < GET_MAX_MANA(ch)/ 100) {
     send_to_char("You don't have the Ki to fire a shogekiha!\r\n", ch);
     return;
  }

  one_argument(argument, arg);

 if (!(vict = get_char_room_vis(ch, arg))) {
    if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Hit who with a shogekiha?\r\n", ch);
      return;
    }
  }
 if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
 if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
 if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  percent = number(1, 60);
  prob = GET_REINC(ch);

  if (percent > prob && GET_MANA(ch) >= GET_MAX_MANA(ch) /100) {
    damage(ch, vict, 0, SKILL_SHOGEKIHA);
    act("&15$N somehow dodges your &15S&16h&00&06o&15g&16e&00&06k&15i!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&14$n &15misses with their attack at you&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&14$n &15misses with their attack at $N&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/100;
     if (number(1, 200) == 100 && GET_REINC(ch) >= 0) {
     send_to_char("&16[&09Ki Skill Loss&16]&00\r\n", ch);
     GET_REINC(ch) -= 1;
    }
    return;
  }
else
   act("&15You charge a small amount of ki within your eyes and fire an invisible &15S&16h&00&06o&15g&16e&00&06k&15i at $N&15, catching them in the gut!&00", FALSE, ch, 0, vict, TO_CHAR);
   act("&15$n slams you with some kind of unseen attack!&00", FALSE, ch, 0, vict, TO_VICT);
   act("&15$N jerks back, slammed with an unknown attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
       damage(ch, vict, GET_MAX_MANA(ch) / 50 + 55000, SKILL_SHOGEKIHA);
       dam = GET_MAX_MANA(ch) / 50 + 55000;
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);

 WAIT_STATE(ch, PULSE_VIOLENCE * 1);

GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/100;
GET_MOVE(ch) = 0;
}


ACMD(do_tsuihidan)
{
  struct char_data *vict;
  struct room_data *room;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
}

  if (!GET_SKILL(ch, SKILL_TSUIHIDAN)) {
   send_to_char("You don't know how to do that!\r\n", ch);
    return;
  }

  if (GET_MANA(ch) < GET_MAX_MANA(ch)/ 100) {
     send_to_char("You don't have the Ki to fire a tsuihidan!\r\n", ch);
     return;
  }

  one_argument(argument, arg);

 if (!(vict = get_char_room_vis(ch, arg))) {
    if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Hit who with a tsuihidan?\r\n", ch);
      return;
    }
  }
 if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
 if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
 if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  percent = number(1, 60);
  prob = GET_REINC(ch);

  if (percent > prob && GET_MANA(ch) >= GET_MAX_MANA(ch)/100) {
    damage(ch, vict, 0, SKILL_TSUIHIDAN);
    act("&15You miss with your attack at $N&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&14$n &15misses with their attack at you&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&14$n &15misses with their attack at $N&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/100;
     if (number(1, 200) == 100 && GET_REINC(ch) >= 0) {
     send_to_char("&16[&09Ki Skill Loss&16]&00\r\n", ch);
     GET_REINC(ch) -= 1;
    }
    return;
  }
else
   act("&15With arms fully extended, you place both hands palm out before you.  Focusing &00&03k&11i&15 into the air before the two, you cry out, &11T&09s&00&01u&00&03ihi&00&01d&09a&11n&15!.  A wide globe of &00&03k&11i&15 &00&03e&11n&15er&11g&00&03y&15 fires outward, trailed by a long comet tail of power.  As it flies forward, it moves to follow $N&15 until striking it in a blinding explosion.&00", FALSE, ch, 0, vict, TO_CHAR);
   act("&15$n points both hands at you, palms out.  As you watch, a ball of energy forms in the air and is quickly released with a cry of, &11T&09s&00&01u&00&03ihi&00&01d&09a&11n&15!. The ball races at you followed by long tail of &00&03k&11i&15. You try to dodge out of the way, but the attack has a mind of its own and changes course to chase you.  There is no escape as it slams into you with a blinding explosion.", FALSE, ch, 0, vict, TO_VICT);
   act("&15$n points his palms towards $N&15 and forms a sphere of &00&03k&11i&15 in the air. With a single yelled word, &11T&09s&00&01u&00&03ihi&00&01d&09a&11n&15!, the sphere launches at its intended target.  As it snakes through the air, ball followed by tail, it arcs and weaves to chase down its prey.  Slamming into $N&15, there is an eruption of power and a blinding flash of light.", FALSE, ch, 0, vict, TO_NOTVICT);
       damage(ch, vict, GET_MAX_MANA(ch) / 50 + 60000, SKILL_TSUIHIDAN);
       dam = GET_MAX_MANA(ch) / 50 + 60000;
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);

 WAIT_STATE(ch, PULSE_VIOLENCE * 1);

GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/100;
GET_MOVE(ch) = 0;
}


ACMD(do_gigabeam)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM) && !IS_NPC(ch)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
  }
  if (!GET_SKILL(ch, SKILL_GIGABEAM) && !IS_NPC(ch)) {
    send_to_char("You don't know how to do that!\r\n", ch);
   return;
  }
  if (GET_MANA(ch) < GET_MAX_MANA(ch)/30 && !IS_NPC(ch)) {
     send_to_char("You don't have the Ki to do a Giga Beam!\r\n", ch);
     return;
  }
  one_argument(argument, arg);

 if (!(vict = get_char_room_vis(ch, arg))) {
   if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Giga Beam who?\r\n", ch);
      return;
    }
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  percent = number(1, 60);
  prob = GET_REINC(ch);

  if (percent > prob && GET_MANA(ch) >= GET_MAX_MANA(ch)/30 && !IS_NPC(ch)) {
    damage(ch, vict, 0, SKILL_GIGABEAM);
    act("&15Your &16G&10i&00&02g&16a&10s &10B&00&02e&16a&10m&15 misses $N&15 by a long shot.&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&15$n15 &16G&10i&00&02g&16a&10s &10B&00&02e&16a&10m&15 misses you by a long shot.&00", FALSE, ch, 0, vict, TO_VICT);
    act("&15$n15 &16G&10i&00&02g&16a&10s &10B&00&02e&16a&10m&15 misses $N&15 by a long shot.&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
     if (number(1, 200) == 100 && GET_REINC(ch) >= 0) {
     send_to_char("&16[&09Ki Skill Loss&16]&00\r\n", ch);
     GET_REINC(ch) -= 1;
    }
    return;
  } else
 act("&15You lean back as &16d&15a&00r&16k &00e&14n&00&06er&14g&00y&15 swells around your body. You bring your right fist up as your &00e&14n&00&06er&14g&00y&15 begins to pool there. Just as the attack is ready you bring it forward and fire your &16G&10i&00&02g&16a&10s &10B&00&02e&16a&10m&15 at $N&15, slamming into them!&00", FALSE, ch, 0, vict, TO_CHAR);
 act("&15$n&15 leans back as &16d&15a&00r&16k &00e&14n&00&06er&14g&00y&15 swells around thier body. $n&15 bring thier right fist up as the &00e&14n&00&06er&14g&00y&15 begins to pool there. Just as the attack is ready $n brings it forward and fires the &16G&10i&00&02g&16a&10s &10B&00&02e&16a&10m&15 at $N&15, slamming into them!&00", FALSE, ch, 0, vict, TO_NOTVICT);
 act("&15$n&15 leans back as &16d&15a&00r&16k &00e&14n&00&06er&14g&00y&15 swells around thier body. $n&15 bring thier right fist up as the &00e&14n&00&06er&14g&00y&15 begins to pool there. Just as the attack is ready $n&15 brings it forward and fires the &16G&10i&00&02g&16a&10s &10B&00&02e&16a&10m&15 at you&15, slamming into your chest!&00", FALSE, ch, 0, vict, TO_VICT);
    if (!IS_NPC(ch)) {
    damage(ch, vict, GET_MAX_MANA(ch) / 20 + 125000, SKILL_GIGABEAM);
    dam = GET_MAX_MANA(ch) / 20 + 125000;
    }
    if (IS_NPC(ch)) {
    damage(ch, vict, GET_LEVEL(ch), SKILL_GIGABEAM);
    dam = GET_LEVEL(ch);
    }
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);
 
    GET_POS(vict) = POS_SITTING;
  WAIT_STATE(vict, PULSE_VIOLENCE);
 WAIT_STATE(ch, PULSE_VIOLENCE * 2);
if (!IS_NPC(ch)) {
 GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
 GET_MOVE(ch) = 0;
}
}


ACMD(do_hellspear)
{
  struct char_data *vict, *next_v;
  int dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM) && !IS_NPC(ch)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
  }
  if (!GET_SKILL(ch, SKILL_HELLSPEAR) && !IS_NPC(ch)) {
    send_to_char("You don't know how to do that!\r\n", ch);
   return;
  }
  
  if (!GET_EQ(ch, WEAR_WIELD) && !IS_NPC(ch)) {
    send_to_char("You need to wield a spear to use Hell Spear Blast.\r\n", ch);
    return;
  }
  if (!IS_NPC(ch)) {
   if ((GET_OBJ_VAL(GET_EQ(ch, WEAR_WIELD), 3) != TYPE_STAB - TYPE_HIT)) {
     send_to_char("Only you need a spear!.\r\n", ch);
     return;
   }
  }
  if (GET_MANA(ch) < GET_MAX_MANA(ch)/20 && !IS_NPC(ch)) {
     send_to_char("You don't have the Ki to do a Hell Spear Blast!\r\n", ch);
     return;
  } else {
 act("&11You &10grin &16e&13v&16i&13l&16l&13y&15 as you pull out your spear. You begin to spin your spear wickedly right as you begin to pump &00&06e&00&02n&10er&00&02g&00&06y&15 into it. After only a few moments the spear begins to radiate &09r&00&01e&09d&15. Right as it reaches the utmost capacity, you launch the &09H&00&01e&09l&00&01l &16S&15p&00&07e&15a&16r &10B&00&02l&10a&00&02s&10t &15down at the ground, and watch it explode into a fury of energy&11!&00", FALSE, ch, 0, vict, TO_CHAR);
 act("&11$n &10grins &16e&13v&16i&13l&16l&13y&15 as he pulls out his spear. &10$n&15 begins to spin his spear wickedly right as he begins to pump &00&06e&00&02n&10er&00&02g&00&06y&15 into it. After only a few moments the spear begins to radiate &09r&00&01e&09d&15. Right as it reaches the utmost capacity, &10$n&15 launches the &09H&00&01e&09l&00&01l &16S&15p&00&07e&15a&16r &10B&00&02l&10a&00&02s&10t &15at the ground, the spear explodes catching you in the explosion&11!&00", FALSE, ch, 0, vict, TO_ROOM);
 for (vict = world[ch->in_room].people; vict; vict = next_v) {
      next_v = vict->next_in_room;
      if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999 && !IS_NPC(ch)) {
       send_to_char("The newbie shield protects them right now.", ch);
       return;
      }
      if (vict == ch) {
        continue;
      }
      else if (GET_BUILD(ch) >= 10 && !IS_NPC(ch)) {
        continue;
      }
      if (!IS_NPC(ch)) {
       GET_BUILD(ch) += 1;
       damage(ch, vict, GET_MAX_MANA(ch) / 20 + 250000, SKILL_HELLSPEAR);
       dam = GET_MAX_MANA(ch) / 20 + 250000;
      }
      else if (IS_NPC(ch)) {
       damage(ch, vict, GET_LEVEL(ch), SKILL_HELLSPEAR);
       dam = GET_LEVEL(ch);
      }
      if (dam > 5500000) {
       dam = 5500000;
       }
      sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
      sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
      sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
      act(buf, FALSE, ch, NULL, vict, TO_CHAR);
      act(buf2, FALSE, ch, NULL, vict, TO_ROOM);
      act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);
      GET_POS(vict) = POS_SITTING;
      WAIT_STATE(vict, PULSE_VIOLENCE);
      if (number(1, 4) == 2) {
        WAIT_STATE(vict, PULSE_VIOLENCE * 2);
      }
   if (!IS_NPC(ch)) {
    WAIT_STATE(ch, PULSE_VIOLENCE * 2);
   }
  }
  if (!IS_NPC(ch)) {
   GET_BUILD(ch) = 0; 
   GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/20;
   GET_MOVE(ch) = 0;
  }
 }
}

ACMD(do_scatter)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
  }
  if (!GET_SKILL(ch, SKILL_SCATTER)) {
    send_to_char("You don't know how to do that!\r\n", ch);
   return;
  }
  if (GET_MANA(ch) < GET_MAX_MANA(ch)/30) {
     send_to_char("You don't have the Ki to do Scatter Shot!\r\n", ch);
     return;
  }
  one_argument(argument, arg);

 if (!(vict = get_char_room_vis(ch, arg))) {
   if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Scattershot who?\r\n", ch);
      return;
    }
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  percent = number(1, 60);
  prob = GET_REINC(ch);

  if (percent > prob && GET_MANA(ch) >= GET_MAX_MANA(ch) / 30) {
    damage(ch, vict, 0, SKILL_SCATTER);
    act("$N&15 zanzokens away from your '&09S&00&01c&16a&15t&11t&00&03e&11r&15s&16h&00&01o&09t&15!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&15You zanzoken away from $n&15's '&09S&00&01c&16a&15t&11t&00&03e&11r&15s&16h&00&01o&09t&15!&00", FALSE, ch, 0, vict, TO_VICT);
    act("$N&15 zanzokens away from $n&15's '&09S&00&01c&16a&15t&11t&00&03e&11r&15s&16h&00&01o&09t&15!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
     if (number(1, 200) == 100 && GET_REINC(ch) >= 0) {
     send_to_char("&16[&09Ki Skill Loss&16]&00\r\n", ch);
     GET_REINC(ch) -= 1;
    }
    return;
  } else
    act("$n&15 thrusts thier arms out, firing &11ki&00&03ba&11ll&15 after &11ki&00&03ba&11ll&15 around $N&15. $n keeps going, filling the skies with balls of &00e&14n&00&06er&14g&00y&15, the air crackling as &00e&15l&11e&00&03c&16t&15r&16i&00&03c&11i&15t&00y&15 jumps from one ball to another. As $n seems to finish firing the &11k&00&03i&15, they yell out, '&09S&00&01c&16a&15t&11t&00&03e&11r&15s&16h&00&01o&09t&15!' $n raises thier right hand at $N&15, and close thier hand, causing the &11ki&00&03ba&11ll&00&03s&15 to fly in and slam into $N&15 from all sides!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    act("$n&15 thrusts thier arms out, firing &11ki&00&03ba&11ll&15 after &11ki&00&03ba&11ll&15 around you. $n keeps going, filling the skies with balls of &00e&14n&00&06er&14g&00y&15, the air crackling as &00e&15l&11e&00&03c&16t&15r&16i&00&03c&11i&15t&00y&15 jumps from one ball to another. As $n seems to finish firing the &11k&00&03i&15, they yell out, '&09S&00&01c&16a&15t&11t&00&03e&11r&15s&16h&00&01o&09t&15!' $n raises thier right hand at $N&15, and close thier hand, causing the &11ki&00&03ba&11ll&00&03s&15 to fly in and slam into you from all sides!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&15You charge &11k&00&03i&15 into your body, and then thrust your arms out, firing &11ki&00&03ba&11ll&15 after &11ki&00&03ba&11ll&15 around $N&15. You keep going, filling the skies with balls of &00e&14n&00&06er&14g&00y&15, the air crackling as &00e&15l&11e&00&03c&16t&15r&16i&00&03c&11i&15t&00y&15 jumps from one ball to another. As you finish firing the &11k&00&03i&15, you yell out, '&09S&00&01c&16a&15t&11t&00&03e&11r&15s&16h&00&01o&09t&15!' You raise your right hand at $N&15, and close your hand, causing the &11ki&00&03ba&11ll&00&03s&15 to fly in and slam into $N&15 from all sides!&00", FALSE, ch, 0, vict, TO_CHAR);
    damage(ch, vict, GET_MAX_MANA(ch) / 20 + 315000, SKILL_SCATTER);
    dam = GET_MAX_MANA(ch) / 20 + 315000;
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);
     GET_POS(vict) = POS_SITTING;
  WAIT_STATE(vict, PULSE_VIOLENCE);
 WAIT_STATE(ch, PULSE_VIOLENCE * 2);

GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
GET_MOVE(ch) = 0;
}


ACMD(do_spirit)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
  }
  if (!GET_SKILL(ch, SKILL_SPIRITBALL)) {
    send_to_char("You don't know how to do that!\r\n", ch);
    return;
  }

  if (GET_MANA(ch) < GET_MAX_MANA(ch)/30) {
     send_to_char("You don't have the Ki to do a Spirit Ball!\r\n", ch);
     return;
  }

  one_argument(argument, arg);

 if (!(vict = get_char_room_vis(ch, arg))) {
   if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Spirit Ball who?\r\n", ch);
      return;
    }
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  percent = number(1, 60);
  prob = GET_REINC(ch);

if (percent > prob && GET_MANA(ch) >= GET_MAX_MANA(ch)/30) {
    damage(ch, vict, 0, SKILL_SPIRITBALL);
    act("&15You miss with your attack at $N&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&14$n &15misses with their attack at you&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&14$n &15misses with their attack at $N&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
     if (number(1, 200) == 100 && GET_REINC(ch) >= 0) {
     send_to_char("&16[&09Ki Skill Loss&16]&00\r\n", ch);
     GET_REINC(ch) -= 1;
    }
    return;
  } else
 act("&11You &15hold your right hand out, palm upward with your other hand gripping your wrist, and form a &09large&15 radiating &14S&12p&14i&12r&14i&12t&16-&11B&09a&11l&09l&15. You quickly launch it at $N&15. Bringing it down on them from above in a brilliant &09e&16x&09p&16l&09o&16s&09i&16o&09n&15!&00", FALSE, ch, 0, vict, TO_CHAR);
 act("&15$n holds their right hand out, palm upward with their other hand gripping their wrist, and form a &09large&15 radiating &14S&12p&14i&12r&14i&12t&16-&11B&09a&11l&09l&15. They quickly launch it at $N&15. Bringing it down on them from above in a brilliant &09e&16x&09p&16l&09o&16s&09i&16o&09n&15!&00", FALSE, ch, 0, vict, TO_NOTVICT);
 act("&15$n holds their right hand out, palm upward with their other hand gripping their wrist, and form a &09large&15 radiating &14S&12p&14i&12r&14i&12t&16-&11B&09a&11l&09l&15. They quickly launch it at you. Bringing it down on them from above in a brilliant &09e&16x&09p&16l&09o&16s&09i&16o&09n&15!&00", FALSE, ch, 0, vict, TO_VICT);
    damage(ch, vict, GET_MAX_MANA(ch) / 20 + 345000, SKILL_SPIRITBALL);
    dam = GET_MAX_MANA(ch) / 20 + 345000;
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);

    GET_POS(vict) = POS_SITTING;
    WAIT_STATE(vict, PULSE_VIOLENCE);
  WAIT_STATE(ch, PULSE_VIOLENCE * 2);

GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
GET_MOVE(ch) = 0;
}

ACMD(do_yoiko)
{
  struct char_data *vict;
  int percent, prob;

  one_argument(argument, arg);
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!GET_SKILL(ch, SKILL_YOIKOMINMINKEN)) {
    send_to_char("You have no idea how.\r\n", ch);
    return;
  }
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("This room just has such a peaceful, easy feeling...\r\n", ch);
    return;
  }
  if (!(vict = get_char_room_vis(ch, arg))) {
    if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Sleep who?\r\n", ch);
      return;
    }
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  if (GET_MANA(ch) < GET_MAX_MANA(ch)/40) {
     send_to_char("You don't have the Ki to do Yoikominminken!\r\n", ch);
    return;
  }

  percent = number(1, 60);     /* 101% is a complete failure */
  prob = GET_REINC(ch);

  
  if (percent > prob) {
    damage(ch, vict, 0, SKILL_YOIKOMINMINKEN);
    act("&15You miss with your attack at $N&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&14$n &15misses with their attack at you&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&14$n &15misses with their attack at $N&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/40;
     if (number(1, 200) == 100 && GET_REINC(ch) >= 0) {
     send_to_char("&16[&09Ki Skill Loss&16]&00\r\n", ch);
     GET_REINC(ch) -= 1;
    }
    return;
  } else {
    if (damage(ch, vict, 1, SKILL_YOIKOMINMINKEN) > 0) { /* -1 = dead, 0 = miss */
      act("&15$n waves their arms in lulling motions as they focus ki into their eyes....slowly....putting...you to...sleeeeep...&00", FALSE, ch, 0, vict, TO_VICT);
      act("&15$n waves their arms in lulling motions as they focus ki into their eyes....slowly....putting...$N to...sleeeeep...", FALSE, ch, 0, vict, TO_NOTVICT);
      act("&15You wave your arms in lulling motions as you focus ki into your eyes....slowly....putting...$N to...sleeeeep...", FALSE, ch, 0, vict, TO_CHAR);
      GET_POS(vict) = POS_SLEEPING;
      WAIT_STATE(vict, PULSE_VIOLENCE);
    }
  }
  WAIT_STATE(ch, PULSE_VIOLENCE * 3);
GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/40;
GET_MOVE(ch) = 0;
}



ACMD(do_genocide)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
  }
  if (!GET_SKILL(ch, SKILL_GENOCIDE)) {
    send_to_char("You don't know how to do that!\r\n", ch);
   return;
  }
  if (GET_MANA(ch) < GET_MAX_MANA(ch)/30) {
     send_to_char("You don't have the Ki to do a Genocide!\r\n", ch);
     return;
  }
  one_argument(argument, arg);

 if (!(vict = get_char_room_vis(ch, arg))) {
   if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Genocide?\r\n", ch);
      return;
    }
  }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  percent = number(1, 60);
  prob = GET_REINC(ch);

  if (percent > prob && GET_MANA(ch) >= GET_MAX_MANA(ch) /30) {
    damage(ch, vict, 0, SKILL_GENOCIDE);
    act("$N&16 somehow dodges your &00&05G&16e&13n&15o&00c&05i&16d&13e&16!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&16You somehow dodges $n&16's &00&05G&16e&13n&15o&00c&05i&16d&13e&16!&00", FALSE, ch, 0, vict, TO_VICT);
    act("$N&16 somehow dodges $n&16's &00&05G&16e&13n&15o&00c&05i&16d&13e&16!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
     if (number(1, 200) == 100 && GET_REINC(ch) >= 0) {
     send_to_char("&16[&09Ki Skill Loss&16]&00\r\n", ch);
     GET_REINC(ch) -= 1;
    }
    return;
  } else
 act("&16You pull &00e&14n&00&06er&14g&00y&16 into your body, your body &15g&14l&00&06o&15w&00&03i&11n&15g&16 a soft &13p&00&05u&16r&13p&00&05l&16e. Swirls of &11k&00&03i&16 begin to wrap around your body, as you lift your right hand up into the air. The energy spins up around your arm, as it continues to build within your body. As you reach maximum charge, you yell out, '&00&05G&16e&13n&15o&00c&05i&16d&13e&16!' Stream after stream of &00e&14n&00&06er&14g&00y&16 fly up into the air, slamming into everything around, and a few blasts slam into $N&16's chest!&00", FALSE, ch, 0, vict, TO_CHAR);
 act("$n&16's body begins &15g&14l&00&06o&15w&00&03i&11n&15g&16 a soft &13p&00&05u&16r&13p&00&05l&16e. Swirls of &11k&00&03i&16 begin to wrap around $n&16's body, as they lift thier right hand up into the air. The energy spins up around thier arm. $n&16 yells out, '&00&05G&16e&13n&15o&00c&05i&16d&13e&16!' Stream after stream of &00e&14n&00&06er&14g&00y&16 fly up into the air, slamming into everything around, and a few blasts slam into your chest!&00", FALSE, ch, 0, vict, TO_VICT);
 act("$n&16's body begins &15g&14l&00&06o&15w&00&03i&11n&15g&16 a soft &13p&00&05u&16r&13p&00&05l&16e. Swirls of &11k&00&03i&16 begin to wrap around $n&16's body, as they lift thier right hand up into the air. The energy spins up around thier arm. $n&16 yells out, '&00&05G&16e&13n&15o&00c&05i&16d&13e&16!' Stream after stream of &00e&14n&00&06er&14g&00y&16 fly up into the air, slamming into everything around, and a few blasts slam into $N&16's chest!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    damage(ch, vict, GET_MAX_MANA(ch) / 20 + 330000, SKILL_GENOCIDE);
     dam = GET_MAX_MANA(ch) / 20 + 330000;
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);
     GET_POS(vict) = POS_SITTING;
  WAIT_STATE(vict, PULSE_VIOLENCE);
 WAIT_STATE(ch, PULSE_VIOLENCE * 2);

GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
GET_MOVE(ch) = 0;
}


ACMD(do_chikyuu)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
  }
  if (!GET_SKILL(ch, SKILL_CHIKYUU)) {
    send_to_char("You don't know how to do that!\r\n", ch);
   return;
  }
  if (GET_MANA(ch) < GET_MAX_MANA(ch)/30) {
     send_to_char("You don't have the Ki to do a Chikyuu Geki Gama!\r\n", ch);
     return;
  }
  one_argument(argument, arg);

 if (!(vict = get_char_room_vis(ch, arg))) {
   if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Chikyuu Geki Gama who?\r\n", ch);
      return;
    }
  }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  percent = number(1, 60);
  prob = GET_REINC(ch);

  if (percent > prob && GET_MANA(ch) >= GET_MAX_MANA(ch) /30) {
    damage(ch, vict, 0, SKILL_CHIKYUU);
    act("&15You miss with your attack at $N&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&14$n &15misses with their attack at you&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&14$n &15misses with their attack at $N&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
     if (number(1, 200) == 100 && GET_REINC(ch) >= 0) {
     send_to_char("&16[&09Ki Skill Loss&16]&00\r\n", ch);
     GET_REINC(ch) -= 1;
    }
    return;
  } else
 act("&15You raise your hand above your head, focusing &00&03k&11i&15 into your palm, as you begin pushing more energy into it, it begins to grow. The &00o&14r&00&06b&15 glows a soft &13p&00&05in&13k&15 as it grows, filling the area with its light. When it grows large enough to block out the sky, you yell out, '&13C&00&05h&16i&00&05k&16y&00&05u&13u G&00&05e&16k&13i G&16a&00&05m&13a&15!' And hurl the massive &00&06b&16a&00&06l&16l&15 of destructive energy at $N!&00", FALSE, ch, 0, vict, TO_CHAR);
 act("&14$n&15 raises their hand above their head, a small &00o&14r&00&06b&15 of glowing pink energy forming there. The &00o&14r&00&06b&15 suddenly grows to massive proportions, the energy in it ungodly. As it looks like it can't get any stronger, you hear them yell out '&13C&00&05h&16i&00&05k&16y&00&05u&13u G&00&05e&16k&13i G&16a&00&05m&13a&15!' and watch as the pink &00o&14r&00&06b&15 of energy comes at you, taking you and the entire area with it as it explodes!", FALSE, ch, 0, vict, TO_VICT);
 act("&14$n&15 raises their hand above their head, a small &00o&14r&00&06b&15 of glowing pink energy forming there. The &00o&14r&00&06b&15 suddenly grows to massive proportions, the energy in it ungodly. As it looks like it can't get any stronger, you hear them yell out '&13C&00&05h&16i&00&05k&16y&00&05u&13u G&00&05e&16k&13i G&16a&00&05m&13a&15!' and watch as the pink &00o&14r&00&06b&15 of energy flies at &09$N&15, the area exploding with energy!", FALSE, ch, 0, vict, TO_NOTVICT);
    damage(ch, vict, GET_MAX_MANA(ch) / 20 + 375000, SKILL_CHIKYUU);
     dam = GET_MAX_MANA(ch) / 20 + 375000;
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);
     GET_POS(vict) = POS_SITTING;
  WAIT_STATE(vict, PULSE_VIOLENCE);
 WAIT_STATE(ch, PULSE_VIOLENCE * 2);

GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
GET_MOVE(ch) = 0;
}



ACMD(do_genki)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
  }
  if (!GET_SKILL(ch, SKILL_GENKI)) {
    send_to_char("You don't know how to do that!\r\n", ch);
   return;
  }
  if (GET_MANA(ch) < GET_MAX_MANA(ch)/30) {
     send_to_char("You don't have the Ki to do a Genki Dama!\r\n", ch);
     return;
  }
  one_argument(argument, arg);

 if (!(vict = get_char_room_vis(ch, arg))) {
   if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Genki Dama who?\r\n", ch);
      return;
    }
  }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  percent = number(1, 60);
  prob = GET_REINC(ch);

  if (percent > prob && GET_MANA(ch) >= GET_MAX_MANA(ch) /30) {
    damage(ch, vict, 0, SKILL_GENKI);
    act("&15You stare in horror as the &14G&00&06e&00n&15k&14i &00&06D&00a&15m&14a&15 slides harmlessly past opponent, their laughter swallowed by the glow of wasted life.", FALSE, ch, 0, vict, TO_CHAR);
    act("&15You breath a sigh of relief as opponent's &14G&00&06e&00n&15k&14i &00&06D&00a&15m&14a&15 passes you by, it's maelstrom of ki still held in delicate balance.", FALSE, ch, 0, vict, TO_VICT);
    act("$n&15's &14G&00&06e&00n&15k&14i &00&06D&00a&15m&14a&15 flys past $N, their form almost overtaken by the hurricane of ki that once was used to fuel life.", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
     if (number(1, 200) == 100 && GET_REINC(ch) >= 0) {
     send_to_char("&16[&09Ki Skill Loss&16]&00\r\n", ch);
     GET_REINC(ch) -= 1;
    }
    return;
  } else
 act("&15You raise your hands above your head, and summon &00e&14n&00&06er&14g&00y&15 from every being in the universe.  The ki swirls, and condenses over above your hands to form a massive &12a&00&04z&00&06u&14r&00e o&14r&00&06b&15.  The hum of eternity engulfs your mind as you sense the life force of beings you will never know.  With a mighty heave, you hurl the &14G&00&06e&00n&15k&14i &00&06D&00a&15m&14a&15 with all your might at $N&15, obliterating them in a brilliant flash of &12b&00&04l&00&06u&14e&15 light!&00", FALSE, ch, 0, vict, TO_CHAR);
 act("&15$n raises their hands above their head, and summons &00e&14n&00&06er&14g&00y&15 from every being in the universe.  The ki swirls, and condenses over their hands to form a massive &12a&00&04z&00&06u&14r&00e o&14r&00&06b&15.  You can barely feel the life force of the numerous creatures that blessed their ki to $n&15.  With a mighty heave, $n&15 hurls the &14G&00&06e&00n&15k&14i &00&06D&00a&15m&14a&15 with all their might, and it bathes you in scorching &12b&00&04l&00&06u&14e &14f&00&06i&00&04r&12e&15!&00", FALSE, ch, 0, vict, TO_VICT);
 act("$n raises their hands above their head, and summons &00e&14n&00&06er&14g&00y&15 from every being in the universe.  The ki swirls, and condenses over their hands to form a massive &12a&00&04z&00&06u&14r&00e o&14r&00&06b&15.  You can barely feel the life force of the numerous creatures that blessed their ki to $n&15.  With a mighty heave, $n hurls the &14G&00&06e&00n&15k&14i &00&06D&00a&15m&14a&15 with all their might, and swallows $N&15 in it's wrathful maw!", FALSE, ch, 0, vict, TO_NOTVICT);
    damage(ch, vict, GET_MAX_MANA(ch) / 20 + 450000, SKILL_GENKI);
     dam = GET_MAX_MANA(ch) / 20 + 450000;
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);
     GET_POS(vict) = POS_SITTING;
  WAIT_STATE(vict, PULSE_VIOLENCE);
 WAIT_STATE(ch, PULSE_VIOLENCE * 2);

GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
GET_MOVE(ch) = 0;
}



ACMD(do_burning)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
  }
  if (!GET_SKILL(ch, SKILL_BURNINGATTACK)) {
    send_to_char("You don't know how to do that!\r\n", ch);
    return;
  }

  if (GET_MANA(ch) < GET_MAX_MANA(ch)/30) {
     send_to_char("You don't have the Ki to do a Burning Attack!\r\n", ch);
     return;
  }

  one_argument(argument, arg);

   if (!(vict = get_char_room_vis(ch, arg))) {
   if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Burning Attack who?\r\n", ch);
      return;
    }
  }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  percent = number(1, 60);
  prob = GET_REINC(ch);

  if (percent > prob && GET_MANA(ch) >= GET_MAX_MANA(ch)/30) {
    damage(ch, vict, 0, SKILL_BURNINGATTACK);
    act("&15You miss with your attack at $N&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&14$n &15misses with their attack at you&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&14$n &15misses with their attack at $N&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
     if (number(1, 200) == 100 && GET_REINC(ch) >= 0) {
     send_to_char("&16[&09Ki Skill Loss&16]&00\r\n", ch);
     GET_REINC(ch) -= 1;
    }
    return;
  } else
 act("&15You hold your arms straight out infront of you, your forearms crackling with &11energy&00. &15 Your arms move in a rythmic fashion, becoming a blur. As the energy reaches max, you throw your arms out and yell, &09B&00&01u&05rn&00&01in&09g &11A&00&03t&09t&00&01a&03c&00&11k&00!&15 and a flaming orb forms and flies at $N&15, engulfing them in an &01inferno!&00", FALSE, ch, 0, vict, TO_CHAR);
 act("&15$n begins to move their arms in a stylish fashion, the area around you beginning to heat up as you finally hear &09B&00&01u&00&05rn&00&01in&00&09g &00&11A&00&03t&00&09t&00&01a&00&03c&00&11k!&15 come from them. You watch a raging inferno engulf $N's&15 form as $n unleashes their firey orb!", FALSE, ch, 0, vict, TO_NOTVICT);
 act("&15$n begins to move their arms in a stylish fashion, the area around you beginning to heat up as you finally hear &09B&00&01u&00&05rn&00&01in&00&09g &00&11A&00&03t&00&09t&00&01a&00&03c&00&11k!&15 come from them. You feel a raging inferno engulf your form as they unleash their firey orb!", FALSE, ch, 0, vict, TO_VICT);
    damage(ch, vict, GET_MAX_MANA(ch) / 20 + 355000, SKILL_BURNINGATTACK);
    dam = GET_MAX_MANA(ch) / 20 + 355000;
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);

    GET_POS(vict) = POS_SITTING;
    WAIT_STATE(vict, PULSE_VIOLENCE);
  WAIT_STATE(ch, PULSE_VIOLENCE * 2);

GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
GET_MOVE(ch) = 0;
}

ACMD(do_bbk)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
}

  if (!GET_SKILL(ch, SKILL_BBK)) {
   send_to_char("You don't know how to do that!\r\n", ch);
    return;
  }

  if (GET_MANA(ch) < GET_MAX_MANA(ch)/ 30) {
     send_to_char("You don't have the Ki to fire a Big Bang Kamehameha!\r\n", ch);
     return;
  }

  one_argument(argument, arg);

 if (!(vict = get_char_room_vis(ch, arg))) {
    if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Hit who with a Big Bang Kamehameha?\r\n", ch);
      return;
    }
  }
 if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
 if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
 if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  percent = number(1, 60);
  prob = GET_REINC(ch);

  if (percent > prob && GET_MANA(ch) >= GET_MAX_MANA(ch)/30) {
    damage(ch, vict, 0, SKILL_BBK);
    act("&15You miss with your attack at $N&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&14$n &15misses with their attack at you&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&14$n &15misses with their attack at $N&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
     if (number(1, 200) == 100 && GET_REINC(ch) >= 0) {
     send_to_char("&16[&09Ki Skill Loss&16]&00\r\n", ch);
     GET_REINC(ch) -= 1;
    }
    return;
  }
else
   act("&16You pull your right and left hands by your side, grinding your teeth as you charge &00e&14n&00&06er&00&14g&00y&00 &16into your palms. The &00e&14n&00&06er&00&14g&00y&00 &16grows as well as your anger, your eyes going pure &00w&15hit&00e &16as you thrust your right fist out, a large &00o&00&14r&00&06b&00 &16of &00e&14n&00&06er&00&14g&00y&00 &16forming a foot from your palm. A ring of pure &00e&14n&00&06er&00&14g&00y&00 &16formed around the &00&03k&00&11i&00 &06b&00&16a&00&06l&00&16l, and you thrust out your other hand, the &00o&00&14r&00&06b&00 &16growing larger as it turns from a &00&06b&00&16a&00&06l&00&16l of &00&05p&00&13u&00rp&13l&00&05e &16ki to a soft &00&04b&00&12lu&00&04e&16. As you push all of your ki into it, you yell, &00&05B&00&13i&00g B&00&15a&00&13n&00&05g&00 &04K&00&12a&00m&00&14e&00&06ha&00&14m&00e&00&12h&00&04a&00&16! For what seems like an eternity, the ball seems to melt into a thick, wide &00&06b&00&14e&00a&14m&00&16, taking out most of the area before you as it slams into $N!&00", FALSE, ch, 0, vict, TO_CHAR);
   act("&16$n pulls back their hands by their sides, their face contorts as they grit their teeth. You feel mass amounts of &00e&14n&00&06er&00&14g&00y&00 &16welling up in their body as you see their hands start to form two &00&06b&00&16a&00&06l&00&16ls of different colored energies. They thrust their right hand out, a large &00&06b&00&16a&00&06l&00&16l of &00e&14n&00&06er&00&14g&00y&00 &16forming there, with a ring of &00e&14n&00&06er&00&14g&00y&00 &16forming around it, like a planets ring. They push out their other hand, pushing the other hands &00e&14n&00&06er&00&14g&00y&00 &16into the other hands &00e&14n&00&06er&00&14g&00y&00 &16, making it change a completely different color. The earth quakes like the its the end of days as they yell out, &00&05B&00&13i&00g B&00&15a&00&13n&00&05g&00 &04K&00&12a&00m&00&14e&00&06ha&00&14m&00e&00&12h&00&04a&00&16 The &00&06b&00&16a&00&06l&00&16l explodes into a brilliant &00&04b&00&12lu&00&04e &00w&15hit&00e &00&06b&00&14e&00a&14m&00&16 as it slams into you!&00", FALSE, ch, 0, vict, TO_VICT);
   act("&16$n pulls back their hands by their sides, their face contorts as they grit their teeth. You feel mass amounts of &00e&14n&00&06er&00&14g&00y&00 &16welling up in their body as you see their hands start to form two &00&06b&00&16a&00&06l&00&16ls of different colored energies. They thrust their right hand out, a large &00&06b&00&16a&00&06l&00&16l of &00e&14n&00&06er&00&14g&00y&00 &16forming there, with a ring of &00e&14n&00&06er&00&14g&00y&00 &16forming around it, like a planets ring. They push out their other hand, pushing the other hands &00e&14n&00&06er&00&14g&00y&00 &16into the other hands &00e&14n&00&06er&00&14g&00y&00 &16, making it change a completely different color. The earth quakes like the its the end of days as they yell out, &00&05B&00&13i&00g B&00&15a&00&13n&00&05g&00 &04K&00&12a&00m&00&14e&00&06ha&00&14m&00e&00&12h&00&04a&00&16 The &00&06b&00&16a&00&06l&00&16l explodes into a brilliant &00&04b&00&12lu&00&04e &00w&15hit&00e &00&06b&00&14e&00a&14m&00&16 as it slams into $N!&00", FALSE, ch, 0, vict, TO_NOTVICT);
       damage(ch, vict, GET_MAX_MANA(ch) / 20 + 750000, SKILL_BBK);
       dam = GET_MAX_MANA(ch) / 20 + 750000;
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);

       GET_POS(vict) = POS_SITTING;
    WAIT_STATE(vict, PULSE_VIOLENCE);
 WAIT_STATE(ch, PULSE_VIOLENCE * 2);

GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
GET_MOVE(ch) = 0;
}


ACMD(do_kamehame)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (IS_AFFECTED(ch, AFF_MFROZEN)) {
    send_to_char("You struggle against your mind freeze...\r\n", ch);
    return 0;
  }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM) && !IS_NPC(ch)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
}
  if (!GET_SKILL(ch, SKILL_KAMEHAMEHA) && !IS_NPC(ch)) {
    send_to_char("You don't know how to do that!\r\n", ch);
    return;
  }

 else  if (GET_MANA(ch) < GET_MAX_MANA(ch)/100  && !IS_NPC(ch)) {
     send_to_char("You don't have the Ki to do a Kamehameha!\r\n", ch);
     return;
  }

  one_argument(argument, arg);

  if (!(vict = get_char_room_vis(ch, arg))) {
    if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Kamehameha who?\r\n", ch);
      return;
    }
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999  && !IS_NPC(ch)) {
    send_to_char("The newbie shield protects them right now.", ch);
    return;
    }
  if (vict == ch) {
    send_to_char("Aren't we funny today...\r\n", ch);
    return;
  }
  percent = number(1, 60);
  prob = GET_REINC(ch);

  if (percent > prob && GET_MANA(ch) >= GET_MAX_MANA(ch)/100  && !IS_NPC(ch)) {
    damage(ch, vict, 0, SKILL_KAMEHAMEHA);
    act("&15You miss with your attack at $N&11!&00", FALSE, ch, 0, vict, TO_CHAR);
    act("&14$n &15misses with their attack at you&11!&00", FALSE, ch, 0, vict, TO_VICT);
    act("&14$n &15misses with their attack at $N&11!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    WAIT_STATE(ch, PULSE_VIOLENCE * 1);
    GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/100;
     if (number(1, 200) == 100 && GET_REINC(ch) >= 0) {
     send_to_char("&16[&09Ki Skill Loss&16]&00\r\n", ch);
     GET_REINC(ch) -= 1;
    }
    return;
  } else
 act("&15You thrust your hands to your side, forming a &14b&12l&00&06u&00&04e&15 ball of &00&03k&11i&15 between your palms. As you push &00e&14n&00&06er&00&14g&00y&15 into the ball, you thrust your hands forward as you yell out '&12K&14a&00&06m&00&04e&12ha&00&04m&00&06e&14h&12a&15!' unleashing a thick beam of &00&03k&11i&15 at $N&15, slamming into their chest!&00", FALSE, ch, 0, vict, TO_CHAR);
 act("&15$n&15 thrust their hands to $e&15 side, forming a &14b&12l&00&06u&00&04e&15 ball of &00&03k&11i&15 between $e&15 palms. As $n&15 pushes &00e&14n&00&06er&00&14g&00y&15 into the ball, $n&15 thrust thier hands forward as $e yells out '&12K&14a&00&06m&00&04e&12ha&00&04m&00&06e&14h&12a&15!' unleashing a thick beam of &00&03k&11i&15 at you, slamming into your chest!&00", FALSE, ch, 0, vict, TO_VICT);
 act("&15$n&15 thrust their hands to $e&15 side, forming a &14b&12l&00&06u&00&04e&15 ball of &00&03k&11i&15 between $e&15 palms. As $n&15 pushes &00e&14n&00&06er&00&14g&00y&15 into the ball, $n&15 thrust thier hands forward as $e yells out '&12K&14a&00&06m&00&04e&12ha&00&04m&00&06e&14h&12a&15!' unleashing a thick beam of &00&03k&11i&15 at $N&15, slamming into their chest!&00", FALSE, ch, 0, vict, TO_NOTVICT);
    if (!IS_NPC(ch)) {
     damage(ch, vict, GET_MAX_MANA(ch) / 50 + 80000, SKILL_KAMEHAMEHA);
     dam = GET_MAX_MANA(ch) / 50 + 80000;
    }
    else if (IS_NPC(ch)) {
     damage(ch, vict, GET_LEVEL(ch), SKILL_KAMEHAMEHA);
     dam = GET_LEVEL(ch);
    }
    if (dam > 1500000) {
       dam = 1500000;
       }
    sprintf(buf, "&14%s&15 writhes in &09pain&15 from the attack&12! &16[&12%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf1, "&15You sense the amount of energy that hit &14%s&12! &16[&10%d&16]&00", GET_NAME(vict), dam);
    sprintf(buf2, "&15Your body is wracked with &11pain&12! &16[&09%d&16]&00", dam);
    act(buf, FALSE, ch, NULL, vict, TO_CHAR);
    act(buf2, FALSE, ch, NULL, vict, TO_VICT);
    act(buf1, FALSE, ch, NULL, vict, TO_NOTVICT);

  WAIT_STATE(ch, PULSE_VIOLENCE * 1);
 if (!IS_NPC(ch)) {
  GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/100;
 }
GET_MOVE(ch) = 0;
}


ACMD(do_bigbang)
{
  struct char_data *vict;
  int percent, prob, dam;
  if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
    send_to_char("Violence is not allowed in here!", ch);
    return;
  }
  if (AFF_FLAGGED(ch, AFF_CHARGEH) || AFF_FLAGGED(ch, AFF_CHARGEM) || AFF_FLAGGED(ch, AFF_CHARGEL)) {
    send_to_char("You would blow up if you tried that while charged!\r\n", ch);
    return;
   }
  if (!PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LARM)) {
     send_to_char("You have no arms!\r\n", ch);
     return;
}
  if (!GET_SKILL(ch, SKILL_BIGBANG)) {
    send_to_char("You don't know how to do that!\r\n", ch);
    return;
  }

  if (GET_MANA(ch) < GET_MAX_MANA(ch)/60) {
     send_to_char("You don't have the Ki to do a Big Bang Attack!\r\n", ch);
     return;
  }

  one_argument(argument, arg);

  if (!(vict = get_char_room_vis(ch, arg))) {
    if (FIGHTING(ch) && IN_ROOM(ch) == IN_ROOM(FIGHTING(ch))) {
      vict = FIGHTING(ch);
    } else {
      send_to_char("Big Bang who?\r\n", ch);
      return;
    }
  }
  if (GET_MANA(vict) >= GET_MAX_MANA(vict) / 75 && PLR_FLAGGED(vict, PLR_DEFLECT)) {
     switch (number(1, 3)) {
      act("&15You &11deflect &15$n's attack!\r\n", FALSE, ch, 0, vict, TO_VICT);
      act("&14$N &11deflects &15your attack!&00", FALSE, ch, 0, vict, TO_CHAR);
      act("&14$N &11deflects &15$n's attack!&00", FALSE, ch, 0, vict, TO_NOTVICT);
      GET_MANA(ch) -= GET_MAX_MANA(ch) / 200;
      GET_MANA(vict) -= GET_MAX_MANA(vict) / 75;
      WAIT_STATE(ch, PULSE_VIOLENCE * 1);
      return;
    }
   }
  if (!IS_NPC(vict) && GET_MAX_HIT(vict) <= 24999) {
    send_to_char("The newbie shield protects them right n

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

Site Stats

Snippets: 1791
Codebases: 571