act.offensive.c
dbt/src/act.offensive.c · 289.9 KB
From the archive dbtv16.tar.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 sh_int r_mortal_start_room;
extern sh_int r_konack_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_dodge);
ACMD(do_block);
ACMD(do_adef);
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_dragon);
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_cosmic);
ACMD(do_heaven);
ACMD(do_heel);
ACMD(do_rogafufuken);
ACMD(do_vital);
ACMD(do_plasmabomb);
ACMD(do_rogafufuken)
{
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_RARM) && !PLR_FLAGGED(ch, PLR_LARM) && !PLR_FLAGGED(ch, PLR_LLEG) && !PLR_FLAGGED(ch, PLR_RLEG)) {
send_to_char("You have no limbs!\r\n", ch);
return;
}
if (!GET_SKILL(ch, SPELL_ROGA)) {
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 Rogafufuken!\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 Rogafufuken?\r\n", 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 && GET_MANA(ch) >= GET_MAX_MANA(ch)/60) {
damage(ch, vict, 0, SKILL_HEEL);
act("&15You charge energy and prepare your wolf fang fist, but screw up the process and stop!", FALSE, ch, 0, vict, TO_CHAR);
act("&14$n&15 charges energy and prepares $s wolf fang fist, but screws up and stops mid sequence!", FALSE, ch, 0, vict, TO_VICT);
act("&14$n&15 charges energy and prepares $s wolf fang fist, but screws up and stops mid sequence!", FALSE, ch, 0, vict, TO_NOTVICT);
WAIT_STATE(ch, PULSE_VIOLENCE * 1);
GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/60;
return;
}
else
act("&16You slide one foot foreward as you cock your right hand and hold it out in front of your body. &14E&00&06n&00ergy &16wells up inside right before you launch yourself at &15$N &16while screaming '&16W&15o&00l&16f &00F&15a&16n&00g &00&06F&14i&16s&15t!&16', and sending palm &00&06s&14t&00&06r&14i&00&06k&14e&00&06s &16and &00&04k&12i&00&04c&12k&00&04s &16into &15$S &16body from many directions. &00&04B&12l&00&06u&14e &16streaks of &14k&00&06i &16can be seen &15f&16a&00di&16n&15g &16away after each hit, along with small &14e&00&06x&16p&15l&00os&15i&16o&00&06n&14s &16from each hit!&00", FALSE, ch, 0, vict, TO_CHAR);
act("&15$n &16moves into a &15f&00i&16ghti&00n&15g &16stance with one foot slide just before them and their right hand arched in front. Drawing &00&06e&14n&16er&14g&00&06y &16from &15d&00ee&15p &16within them they launch them self at you screaming '&16W&15o&00l&16f &00F&15a&16n&00g &00&06F&14i&16s&15t&16!!', and sending a &12f&00&04u&16r&15y &16of palm &00&06s&14t&00&06r&14i&00&06k&14e&00&06s &16and &00&04k&12i&00&04c&00&04k&12s &16into you from most directions. With each &00&06s&14t&16r&15i&00k&00&06e &16comes a &00&06b&12l&14u&00&06e &16streak of &00&06k&14i &16that is followed with a small &14e&00&06x&16p&15l&00os&15i&16o&00&06n&14s &16after each hit!&00", FALSE, ch, 0, vict, TO_VICT);
act("&15$n &16prepares for &15$s &16next attack by sliding info a new &00f&15i&16ghti&15n&00g &16stance, sliding one foot ahead of them and raising &15$s &16right hand at an arch before them. &15$n &16beings to draw upon a &00&04e&12n&00&06e&14r&00&04g&12y &16deep within before launching them self at &15$N &16screaming '&16W&15o&00l&16f &00F&15a&16n&00g &00&06F&14i&16s&15t&16!', and sending a &00&04f&12u&16r&15y &16of palm &00&06s&14t&00&06r&14i&00&06k&14e&00&06s &16and &00&04k&12i&00&04c&12k&00&04s &16from most directions. Each &00&06s&14t&00&06r&14i&00&06k&14e &16is followed by a &14b&00&06l&00&04u&12e &16streak of &12k&00&04i &16that &14e&00&06x&16p&15l&16d&00&06e&14s &16on impact with $N!&00", FALSE, ch, 0, vict, TO_NOTVICT);
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
damage(ch, vict, GET_MAX_MANA(ch) / 50 + 500000, SKILL_HEEL);
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
dam = GET_MAX_MANA(ch) / 50 + 500000;
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
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)/60;
}
ACMD(do_plasmabomb) {
struct char_data *vict, *next_vict;
int dam, num = 0;
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, SPELL_PBOMB)) {
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 Plasma Bomb!\r\n", ch);
return;
}
if (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
else { /* no argument. clean out the room */
act("&15Your right hand opens up, revealing a large barrel. Grabbing just below the barrel you begin to pull internal &00e&14n&00&06er&14g&00y&15 into the barrel. You leap into the air as the barrel continues to draw more &00e&14n&00&06er&14g&00y&15 into it, its bright &00&03y&11e&00ll&11o&00&03w&15 glow tinting the entire area the same color. As you reach a mile above the ground, you aim the cannon down, and fire a massive round blast down. The giant &00&03y&11e&00ll&11o&00&03w&15 blast swirling with &10g&00&02r&00e&10e&00&02n &00e&11n&00&03er&11g&00y&15 slams into the ground, covering the nearby area in a destructive blast!", FALSE, ch, 0, vict, TO_CHAR);
act("&14$n's&15 right hand opens up, revealing a large barrel. Grabbing just below the barrel $e begins to pull internal &00e&14n&00&06er&14g&00y&15 into the barrel. $e leaps into the air as the barrel continues to draw more &00e&14n&00&06er&14g&00y&15 into it, its bright &00&03y&11e&00ll&11o&00&03w&15 glow tinting the entire area the same color. As $n reaches a mile above the ground, $e aims the cannon down, and fires a massive round blast down. The giant &00&03y&11e&00ll&11o&00&03w&15 blast swirling with &10g&00&02r&00e&10e&00&02n &00e&11n&00&03er&11g&00y&15 slams into the ground, covering the nearby area in a destructive blast!", FALSE, ch, 0, vict, TO_ROOM);
if (!IS_NPC(ch)) {
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
}
for (vict = world[ch->in_room].people; vict; vict = next_vict) {
next_vict = vict->next_in_room;
if (num >= 20) {
continue;
}
if (vict == ch) {
continue;
}
if (GET_MAX_HIT(vict) <= 4999999 && !IS_NPC(vict)) {
continue;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
continue;
}
damage(ch, vict, GET_MAX_MANA(ch) / 30 + 325000, SKILL_HAVOC);
num++;
GET_POS(vict) = POS_SITTING;
WAIT_STATE(vict, PULSE_VIOLENCE);
}
WAIT_STATE(ch, PULSE_VIOLENCE * 2);
if (!IS_NPC(ch)) {
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
}
dam = GET_MAX_MANA(ch) / 30 + 325000;
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
sprintf(buf, "&15You hit everything in the room! &16[&12%d&16]&00", dam);
sprintf(buf2, "&15You are hit by the attack!&16[&09%d&16]&00", dam);
act(buf, FALSE, ch, NULL, vict, TO_CHAR);
act(buf2, FALSE, ch, NULL, vict, TO_VICT);
GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/30;
}
}
ACMD(do_vital)
{
struct char_data *vict;
if (!GET_SKILL(ch, SPELL_VITAL)) {
send_to_char("You don't know how to do that!\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 (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
send_to_char("This room just has such a peaceful, easy feeling...\r\n", ch);
return;
}
if (GET_MANA(ch) < GET_MAX_MANA(ch) / 4 && !IS_NPC(ch)) {
send_to_char("You don't have the Ki to do Vital Strike!\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("Vital Strike who?\r\n", ch);
return;
}
}
if (IS_NPC(vict)) {
send_to_char("Not mobs...\r\n", ch);
return;
}
if (vict == ch) {
send_to_char("Not yourself...\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_VITAL)) {
send_to_char("You must wait a while before they can be stunned again!\r\n", ch);
return;
}
if (AFF_FLAGGED(vict, AFF_CALM)) {
act("&15You slam your elbow into &14$N&15's neck, but $e is unfazed.&00", FALSE, ch, 0, vict, TO_CHAR);
act("&09$n's&15 slams $s elbow into your neck, but you are unfazed.&00", FALSE, ch, 0, vict, TO_VICT);
act("&09$n's&15 slams $s elbow into &14$N&15's neck, but $e is unfazed.&00", FALSE, ch, 0, vict, TO_NOTVICT);
GET_MANA(ch) -= GET_MAX_MANA(ch) / 4;
return;
}
if (GET_DEX(ch) <= GET_DEX(vict) + number(5, 20)) {
act("&15You slam your elbow into &09$N&15's neck, but miss the vital point and fail to stun $M!", FALSE, ch, 0, vict, TO_CHAR);
act("&09$n &15slams $s elbow into your neck, but misses the vital point and fails to stun you!", FALSE, ch, 0, vict, TO_VICT);
act("&09$n &15slams $s elbow into &14$N&15's neck, but misses the vital point and fails to stun $M.", FALSE, ch, 0, vict, TO_NOTVICT);
WAIT_STATE(ch, PULSE_VIOLENCE * 1);
GET_MANA(ch) -= GET_MAX_MANA(ch) / 4;
return;
}
else {
act("&15You quickly move, catching &14$N&15 offguard, and slamming your elbow into the back of $S neck you stun $S body, numbing it completely!", FALSE, ch, 0, vict, TO_CHAR);
act("&14$n&15 quickly moves, catching you offguard, and slamming $s elbow into the back of your neck $e stuns your body, numbing it completely!!", FALSE, ch, 0, vict, TO_VICT);
act("&14$n&15 quickly moves, catching &14$N&15 offguard, and slamming $s elbow into the back of $S neck $e stuns $N's&15 body, numbing it completely!", FALSE, ch, 0, vict, TO_NOTVICT);
GET_POS(vict) = POS_STUNNED;
WAIT_STATE(ch, PULSE_VIOLENCE * 1);
GET_MANA(ch) -= GET_MAX_MANA(ch) / 4;
}
}
ACMD(do_block)
{
if (IS_NPC(ch)) {
return;
}
if (!GET_SKILL(ch, SPELL_BLOCK)) {
send_to_char("You don't know how to do that!\r\n", ch);
return;
}
if (CLN_FLAGGED(ch, CLN_DODGE)) {
send_to_char("You are concentrating on dodging too much!\r\n", ch);
return;
}
if (CLN_FLAGGED(ch, CLN_BLOCK)) {
send_to_char("You stop concentrating on blocking so much!\r\n", ch);
REMOVE_BIT(CLN_FLAGS(ch), CLN_BLOCK);
return;
}
if (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are can't possibly put any more defense into your strategy!\r\n", ch);
return;
}
if (GET_MANA(ch) < GET_MAX_MANA(ch) / 8) {
send_to_char("You do not have enough ki to effectivly block hits.\r\n", ch);
return;
}
else if (GET_MANA(ch) >= GET_MAX_MANA(ch) / 8) {
act("&15You charge some ki and begin to move faster in an attempt to block more hits.", FALSE, ch, 0, 0, TO_CHAR);
act("&14$n &15charges some ki and begins to move faster in an attempt to block more hits.", FALSE, ch, 0, 0, TO_ROOM);
GET_MANA(ch) -= GET_MAX_MANA(ch) / 8;
SET_BIT(CLN_FLAGS(ch), CLN_BLOCK);
return;
}
}
ACMD(do_dodge)
{
if (IS_NPC(ch)) {
return;
}
if (!GET_SKILL(ch, SPELL_DODGE)) {
send_to_char("You don't know how to do that!\r\n", ch);
return;
}
if (CLN_FLAGGED(ch, CLN_BLOCK)) {
send_to_char("You are concentrating on blocking too much!\r\n", ch);
return;
}
if (CLN_FLAGGED(ch, CLN_DODGE)) {
send_to_char("You stop concentrating on dodging so much!\r\n", ch);
REMOVE_BIT(CLN_FLAGS(ch), CLN_DODGE);
return;
}
if (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are can't possibly put any more defense into your strategy!\r\n", ch);
return;
}
if (GET_MANA(ch) < GET_MAX_MANA(ch) / 8) {
send_to_char("You do not have enough ki to effectivly dodge hits.\r\n", ch);
return;
}
else if (GET_MANA(ch) >= GET_MAX_MANA(ch) / 8) {
act("&15You charge some ki and begin to move faster in an attempt to dodge more hits.", FALSE, ch, 0, 0, TO_CHAR);
act("&14$n &15charges some ki and begins to move faster in an attempt to dodge more hits.", FALSE, ch, 0, 0, TO_ROOM);
GET_MANA(ch) -= GET_MAX_MANA(ch) / 8;
SET_BIT(CLN_FLAGS(ch), CLN_DODGE);
return;
}
}
ACMD(do_adef)
{
if (IS_NPC(ch)) {
return;
}
if (!GET_SKILL(ch, SPELL_ADEF)) {
send_to_char("You don't know how to do that!\r\n", ch);
return;
}
if (CLN_FLAGGED(ch, CLN_BLOCK)) {
send_to_char("You are concentrating on blocking too much!\r\n", ch);
return;
}
if (CLN_FLAGGED(ch, CLN_DODGE)) {
send_to_char("You are concentrating on blocking too much!\r\n", ch);
return;
}
if (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You stop concentrating on all out defense!\r\n", ch);
REMOVE_BIT(CLN_FLAGS(ch), CLN_ADEF);
return;
}
if (GET_MANA(ch) < GET_MAX_MANA(ch) / 4) {
send_to_char("You do not have enough ki to effectivly block hits.\r\n", ch);
return;
}
else if (GET_MANA(ch) >= GET_MAX_MANA(ch) / 4) {
act("&15You charge some ki and begin to move faster in an attempt to dodge and block more hits. like a total badass.", FALSE, ch, 0, 0, TO_CHAR);
act("&14$n &15charges some ki and begins to move faster in an attempt to dodge and block more hits, like a total badass.", FALSE, ch, 0, 0, TO_ROOM);
GET_MANA(ch) -= GET_MAX_MANA(ch) / 4;
SET_BIT(CLN_FLAGS(ch), CLN_ADEF);
return;
}
}
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;
struct follow_type *k;
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) <= 4999999) {
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);
}
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_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);
}
}
}
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));
REMOVE_BIT(PRF_FLAGS(vict), PRF_NOHASSLE);
send_to_all(buf);
}
}
*buf = '\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) <= 4999999) {
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\r\n", ch);
return;
}
if (AWAKE(vict) && (percent > prob)) {
damage(ch, vict, 0, SKILL_BACKSTAB);
return;
}
else {
if (GET_DEX(ch) >= number(80, 150) && 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;
GET_HIT(vict) -= GET_MAX_HIT(vict) - 1;
if (PLR_FLAGGED(vict, PLR_KILLER) && !IS_NPC(vict)) {
sprintf(buf2, "&16[&09Backstab!&16] &14%s &15dies, having been skewered by &12%s&15. This was also a &10Player &09K&00&01il&09l &11A&00&03ren&11a win!&00\r\n", GET_NAME(vict), GET_NAME(ch));
send_to_all(buf2);
stop_fighting(vict);
stop_fighting(ch);
char_from_room(vict);
char_to_room(vict, r_death_start_room);
REMOVE_BIT(PLR_FLAGS(vict), PLR_KILLER);
REMOVE_BIT(PLR_FLAGS(ch), PLR_KILLER);
char_from_room(ch);
char_to_room(ch, r_konack_start_room );
look_at_room(ch, 0);
GET_POS(vict) = POS_STANDING;
look_at_room(vict, 0);
}
else if (!PLR_FLAGGED(vict, PLR_KILLER) && !PLR_FLAGGED(vict, PLR_icer) && !IS_NPC(vict)) {
sprintf(buf2, "&16[&09Backstab!&16] &14%s &15dies, having been skewered by &12%s&15.&00\r\n", GET_NAME(vict), GET_NAME(ch));
send_to_all(buf2);
stop_fighting(vict);
stop_fighting(ch);
char_from_room(vict);
char_to_room(vict, r_death_start_room);
SET_BIT(CLN_FLAGS(vict), CLN_Death);
GET_DTIMER(vict) = 3600;
GET_POS(vict) = POS_STANDING;
look_at_room(vict, 0);
}
else if (PLR_FLAGGED(vict, PLR_icer) && !IS_NPC(vict)) {
sprintf(buf2, "&16[&09Backstab!&16] &14%s &15dies, having been skewered by &12%s&15. &12%s &15also collected their bounty.&00\r\n", GET_NAME(vict), GET_NAME(ch), GET_NAME(ch));
send_to_all(buf2);
stop_fighting(vict);
stop_fighting(ch);
char_from_room(vict);
REMOVE_BIT(PLR_FLAGS(vict), PLR_icer);
send_to_char("You collected the 1.5mil bounty on their head. You receive a bonus from the gods for your excellent ability with the sword.\r\n ", ch);
GET_GOLD(ch) += 1500000;
char_to_room(vict, r_death_start_room);
SET_BIT(CLN_FLAGS(vict), CLN_Death);
GET_DTIMER(vict) = 3600;
GET_POS(vict) = POS_STANDING;
look_at_room(vict, 0);
}
if (!IS_NPC(ch) && !IS_NPC(vict)) {
GET_HEIGHT(ch) = GET_HEIGHT(ch) + 1;
GET_WEIGHT(vict) = GET_WEIGHT(vict) + 1;
return;
}
if (IS_NPC(vict)) {
damage(ch, vict, 1, TYPE_UNDEFINED);
}
}
else {
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
damage(ch, vict, GET_MAX_HIT(ch) / 4, TYPE_UNDEFINED);
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
dam = GET_MAX_HIT(ch) / 4;
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
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);
WAIT_STATE(ch, PULSE_VIOLENCE * 3);
WAIT_STATE(vict, PULSE_VIOLENCE * 1);
}
}
}
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;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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;
}
if (number(1, 4) <= 1) {
send_to_char("You can't find an appropriate moment to escape!\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);
} 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;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\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) <= 4999999) {
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 (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\r\n", ch);
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);
}
ACMD(do_rescue)
{
struct char_data *vict, *tmp_ch;
int percent, prob;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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;
}
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;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\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) <= 4999999) {
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);
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
damage(ch, vict, GET_MAX_HIT(ch) /70 + (GET_UBS(ch) * GET_DEX(ch) * 10), SKILL_FORELOCK);
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
dam = GET_MAX_HIT(ch) /70 + (GET_UBS(ch) * GET_DEX(ch) * 10);
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
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);
}
ACMD(do_tailwhip)
{
struct char_data *vict;
int percent, prob, dam;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\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) <= 4999999) {
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);
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
damage(ch, vict, GET_MAX_HIT(ch) /70 + (GET_LBS(ch) * GET_DEX(ch) * 10), SKILL_TAILWHIP);
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
dam = GET_MAX_HIT(ch) /70 + (GET_LBS(ch) * GET_DEX(ch) * 10);
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
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);
}
ACMD(do_knee)
{
struct char_data *vict;
int percent, prob, dam;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\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) <= 4999999) {
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);
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
damage(ch, vict, GET_MAX_HIT(ch) / 90 + (GET_LBS(ch) * GET_DEX(ch) * 10), SKILL_KNEE);
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
dam = GET_MAX_HIT(ch) / 90 + (GET_LBS(ch) * GET_DEX(ch) * 10);
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
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);
}
}
ACMD(do_elbow)
{
struct char_data *vict;
int percent, prob, dam;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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)) {
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) <= 4999999) {
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\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);
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
damage(ch, vict, GET_MAX_HIT(ch) /90 + (GET_UBS(ch) * GET_DEX(ch) * 10), SKILL_ELBOW);
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
dam = GET_MAX_HIT(ch) /90 + (GET_UBS(ch) * GET_DEX(ch) * 10);
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
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);
}
}
ACMD(do_roundhouse)
{
struct char_data *vict;
int percent, prob, dam;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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)) {
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) <= 4999999) {
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\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);
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
damage(ch, vict, GET_MAX_HIT(ch) /60 + (GET_LBS(ch) * GET_DEX(ch) * 10), SKILL_ROUNDHOUSE);
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
dam = GET_MAX_HIT(ch) /60 + (GET_LBS(ch) * GET_DEX(ch) * 10);
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
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);
}
}
ACMD(do_twin)
{
struct char_data *vict;
int percent, prob, dam, r_num = 0;
struct obj_data *obj;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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)/60) {
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)) {
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) <= 4999999) {
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\r\n", ch);
return;
}
percent = number(1, 60);
prob = GET_REINC(ch);
if (!IS_NPC(vict) && number(1, 20) >= 12 && percent < prob && GET_MAX_HIT(ch) >= ((GET_MAX_HIT(vict) / 100) * 80)) {
switch(number(1, 5)) {
case 1:
if (PLR_FLAGGED(ch, PLR_RARM)) {
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);
r_num = 2099;
if ((r_num = real_object(2099)) < 0) {
send_to_char("Error, report to immortal.\r\n", ch);
}
else {
obj = read_object(r_num, REAL);
obj_to_room(obj, ch->in_room);
}
if (AFF_FLAGGED(vict, AFF_IREG)) {
act("&15Your limb quickly regrows!&00", FALSE, ch, 0, vict, TO_VICT);
act("14$N's&15 limb quickly regrows!&00", FALSE, ch, 0, vict, TO_CHAR);
act("&14$N's&15 limb quickly regrows!&00", FALSE, ch, 0, vict, TO_NOTVICT);
SET_BIT(PLR_FLAGS(vict), PLR_RARM);
return;
}
}
break;
case 2:
if (PLR_FLAGGED(ch, PLR_LARM)) {
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);
r_num = 2096;
if ((r_num = real_object(2096)) < 0) {
send_to_char("Error, report to immortal.\r\n", ch);
}
else {
obj = read_object(r_num, REAL);
obj_to_room(obj, ch->in_room);
}
if (AFF_FLAGGED(vict, AFF_IREG)) {
act("&15Your limb quickly regrows!&00", FALSE, ch, 0, vict, TO_VICT);
act("14$N's&15 limb quickly regrows!&00", FALSE, ch, 0, vict, TO_CHAR);
act("&14$N's&15 limb quickly regrows!&00", FALSE, ch, 0, vict, TO_NOTVICT);
SET_BIT(PLR_FLAGS(vict), PLR_LARM);
return;
}
}
break;
case 3:
if (PLR_FLAGGED(ch, PLR_RLEG)) {
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);
r_num = 2098;
if ((r_num = real_object(2098)) < 0) {
send_to_char("Error, report to immortal.\r\n", ch);
}
else {
obj = read_object(r_num, REAL);
obj_to_room(obj, ch->in_room);
}
if (AFF_FLAGGED(vict, AFF_IREG)) {
act("&15Your limb quickly regrows!&00", FALSE, ch, 0, vict, TO_VICT);
act("14$N's&15 limb quickly regrows!&00", FALSE, ch, 0, vict, TO_CHAR);
act("&14$N's&15 limb quickly regrows!&00", FALSE, ch, 0, vict, TO_NOTVICT);
SET_BIT(PLR_FLAGS(vict), PLR_RLEG);
return;
}
}
break;
case 4:
if (PLR_FLAGGED(ch, PLR_LLEG)) {
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);
r_num = 2097;
if ((r_num = real_object(2097)) < 0) {
send_to_char("Error, report to immortal.\r\n", ch);
}
else {
obj = read_object(r_num, REAL);
obj_to_room(obj, ch->in_room);
}
if (AFF_FLAGGED(vict, AFF_IREG)) {
act("&15Your limb quickly regrows!&00", FALSE, ch, 0, vict, TO_VICT);
act("14$N's&15 limb quickly regrows!&00", FALSE, ch, 0, vict, TO_CHAR);
act("&14$N's&15 limb quickly regrows!&00", FALSE, ch, 0, vict, TO_NOTVICT);
SET_BIT(PLR_FLAGS(vict), PLR_LLEG);
return;
}
}
break;
case 5:
if (PRF2_FLAGGED(ch, PRF2_HEAD) && number(1, 30) >= 24) {
REMOVE_BIT(PRF2_FLAGS(vict), PRF2_HEAD);
act("&14$N&15 loses their &14head&15 in the attack!", FALSE, ch, 0, vict, TO_CHAR);
act("&15You lose your &14head&15 in the attack!", FALSE, ch, 0, vict, TO_VICT);
act("&14$N&15 loses their &14head&15 in the attack!", FALSE, ch, 0, vict, TO_NOTVICT);
if (PLR_FLAGGED(vict, PLR_KILLER) && !IS_NPC(vict)) {
sprintf(buf2, "&16[&09Beheaded!&16] &14%s &15dies, having their head removed by &12%s&15. This was also a &10Player &09K&00&01il&09l &11A&00&03ren&11a win!&00\r\n", GET_NAME(vict), GET_NAME(ch));
send_to_all(buf2);
stop_fighting(vict);
stop_fighting(ch);
char_from_room(vict);
char_to_room(vict, r_death_start_room);
REMOVE_BIT(PLR_FLAGS(vict), PLR_KILLER);
REMOVE_BIT(PLR_FLAGS(ch), PLR_KILLER);
char_from_room(ch);
char_to_room(ch, r_mortal_start_room );
look_at_room(ch, 0);
GET_POS(vict) = POS_STANDING;
look_at_room(vict, 0);
}
else if (!PLR_FLAGGED(vict, PLR_KILLER) && !PLR_FLAGGED(vict, PLR_icer) && !IS_NPC(vict)) {
sprintf(buf2, "&16[&09Beheaded!&16] &14%s &15dies, having their head removed by &12%s&15.&00\r\n", GET_NAME(vict), GET_NAME(ch));
send_to_all(buf2);
stop_fighting(vict);
stop_fighting(ch);
char_from_room(vict);
char_to_room(vict, r_death_start_room);
SET_BIT(CLN_FLAGS(vict), CLN_Death);
GET_DTIMER(vict) = 3600;
GET_POS(vict) = POS_STANDING;
look_at_room(vict, 0);
}
else if (PLR_FLAGGED(vict, PLR_icer) && !IS_NPC(vict)) {
sprintf(buf2, "&16[&09Beheaded!&16] &14%s &15dies, having their head removed by &12%s&15. &12%s &15also collected their bounty.&00\r\n", GET_NAME(vict), GET_NAME(ch), GET_NAME(ch));
send_to_all(buf2);
stop_fighting(vict);
stop_fighting(ch);
char_from_room(vict);
REMOVE_BIT(PLR_FLAGS(vict), PLR_icer);
send_to_char("You collected the 1mil bounty on their head.\r\n ", ch);
GET_GOLD(ch) += 1000000;
char_to_room(vict, r_death_start_room);
SET_BIT(CLN_FLAGS(vict), CLN_Death);
GET_DTIMER(vict) = 3600;
GET_POS(vict) = POS_STANDING;
look_at_room(vict, 0);
}
if (!IS_NPC(ch) && !IS_NPC(vict)) {
GET_HEIGHT(ch) = GET_HEIGHT(ch) + 1;
GET_WEIGHT(vict) = GET_WEIGHT(vict) + 1;
}
r_num = 2095;
if ((r_num = real_object(2095)) < 0) {
send_to_char("Error, report to immortal.\r\n", ch);
}
else {
obj = read_object(r_num, REAL);
obj_to_room(obj, ch->in_room);
*buf2 = '\0';
sprintf(buf2, "&14%s's &01S&09e&16v&00e&16r&09e&00&01d &00&01H&09e&00a&16d&00", GET_NAME(vict));
obj->short_description = str_dup(buf2);
*buf2 = '\0';
}
}
break;
}
}
if (percent > prob && GET_MANA(ch) >= GET_MAX_MANA(ch)/60) {
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)/60;
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);
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
damage(ch, vict, GET_MAX_MANA(ch) / 20 + 100000, SKILL_TWIN);
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
dam = GET_MAX_MANA(ch) / 20 + 100000;
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
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)/60;
}
}
ACMD(do_shogekiha)
{
struct char_data *vict;
int percent, prob, dam;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\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) <= 4999999) {
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);
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
damage(ch, vict, GET_MAX_MANA(ch) / 50 + 55000, SKILL_SHOGEKIHA);
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
dam = GET_MAX_MANA(ch) / 50 + 55000;
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
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;
}
}
ACMD(do_tsuihidan)
{
struct char_data *vict;
struct room_data *room;
int percent, prob, dam;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\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) <= 4999999) {
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);
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
damage(ch, vict, GET_MAX_MANA(ch) / 50 + 60000, SKILL_TSUIHIDAN);
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
dam = GET_MAX_MANA(ch) / 50 + 60000;
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
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;
}
}
ACMD(do_gigabeam)
{
struct char_data *vict;
int percent, prob, dam;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\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) <= 4999999) {
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$n &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$n &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)) {
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
damage(ch, vict, GET_MAX_MANA(ch) / 20 + 125000, SKILL_GIGABEAM);
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
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 > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
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;
}
}
}
ACMD(do_hellspear)
{
struct char_data *vict, *next_v;
int dam, num = 0;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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 (IS_NPC(ch) && AFF_FLAGGED(ch, AFF_MAJIN)) {
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (!IS_NPC(ch)) {
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
}
if (GET_MANA(ch) < GET_MAX_MANA(ch)/25 && !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 (vict == ch) {
continue;
}
if (num >= 20 && !IS_NPC(ch)) {
continue;
}
if ((GET_MAX_HIT(vict) <= 4999999 && !IS_NPC(vict)) && !IS_NPC(ch)) {
continue;
}
if (CLN_FLAGGED(vict, CLN_ADEF) && !IS_NPC(ch)) {
continue;
}
if (!IS_NPC(ch)) {
num += 1;
damage(ch, vict, GET_MAX_MANA(ch) / 20 + 250000, SKILL_HELLSPEAR);
}
else if (IS_NPC(ch)) {
damage(ch, vict, GET_LEVEL(ch), SKILL_HELLSPEAR);
}
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)) {
dam = GET_MAX_MANA(ch) / 20 + 250000;
}
if (IS_NPC(ch)) {
dam = GET_LEVEL(ch);
}
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
sprintf(buf, "&15You hit everything in the room! &16[&12%d&16]&00", dam);
sprintf(buf2, "&15You are hit by the attack!&16[&09%d&16]&00", dam);
act(buf, FALSE, ch, NULL, vict, TO_CHAR);
act(buf2, FALSE, ch, NULL, vict, TO_ROOM);
if (!IS_NPC(ch)) {
GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/25;
}
}
if (!IS_NPC(ch)) {
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
}
}
ACMD(do_scatter)
{
struct char_data *vict;
int percent, prob, dam;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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_SCATTER) && !IS_NPC(ch)) {
send_to_char("You don't know how to do that!\r\n", ch);
return;
}
if (IS_NPC(ch) && AFF_FLAGGED(ch, AFF_MAJIN)) {
return;
}
if (GET_MANA(ch) < GET_MAX_MANA(ch)/30 && !IS_NPC(ch)) {
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\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) <= 4999999 && !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) / 30 && !IS_NPC(ch)) {
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);
if (!IS_NPC(ch)) {
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
damage(ch, vict, GET_MAX_MANA(ch) / 20 + 315000, SKILL_SCATTER);
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
dam = GET_MAX_MANA(ch) / 20 + 315000;
}
else if (IS_NPC(ch)) {
damage(ch, vict, GET_LEVEL(ch), SKILL_SCATTER);
dam = GET_LEVEL(ch);
}
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
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;
}
}
}
ACMD(do_spirit)
{
struct char_data *vict;
int percent, prob, dam;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\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) <= 4999999) {
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);
SET_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
damage(ch, vict, GET_MAX_MANA(ch) / 20 + 345000, SKILL_SPIRITBALL);
REMOVE_BIT(PRF_FLAGS(ch), PRF_NOHASSLE);
dam = GET_MAX_MANA(ch) / 20 + 345000;
if (dam > 5000000) {
dam = 5000000;
}
if (damage <= 1) {
dam = 1;
}
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;
}
}
ACMD(do_yoiko)
{
struct char_data *vict;
int percent, prob;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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 (CLN_FLAGGED(ch, CLN_ADEF)) {
send_to_char("You are too busy defending!\r\n", ch);
return;
}
if (CLN_FLAGGED(vict, CLN_ADEF)) {
send_to_char("It is impossible to hit them while they are using all out defense!\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) <= 4999999) {
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;
}
ACMD(do_dragon)
{
struct char_data *vict;
int percent, prob, dam;
*buf = '\0';
*buf1 = '\0';
*buf2 = '\0';
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_SEVENDRAGON)) {
send_to_char("You don't know how to do that!\r\n", cShowing the first 100 KB of 289.9 KB. Download the archive for the full file.