more.c
demise/src/more.c · 238.3 KB
From the archive dodbackup-final.tar.gz
Download the archive « Back to the archive contents
/***************************************************************************
* Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, *
* Michael Seifert, Hans Henrik St{rfeldt, Tom Madsen, and Katja Nyboe. *
* *
* Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael *
* Chastain, Michael Quan, and Mitchell Tse. *
* *
* In order to use any part of this Merc Diku Mud, you must comply with *
* both the original Diku license in 'license.doc' as well the Merc *
* license in 'license.txt'. In particular, you may not remove either of *
* these copyright notices. *
* *
* Much time and thought has gone into this software and you are *
* benefitting. We hope that you share your changes too. What goes *
* around, comes around. *
***************************************************************************/
/***************************************************************************
* God Wars Mud improvements copyright (C) 1994, 1995, 1996 by Richard *
* Woolcock. This mud is NOT to be copied in whole or in part, or to be *
* run without the permission of Richard Woolcock. Nobody else has *
* permission to authorise the use of this code. *
***************************************************************************/
#if defined(macintosh)
#include <types.h>
#else
#include <sys/types.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "merc.h"
/*
* Local functions.
*/
void show_disc args ((CHAR_DATA * ch));
void do_bloodagonytwo args ((CHAR_DATA * ch, OBJ_DATA * obj));
void
do_mindblast (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
int damage;
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_AUSPEX) < 8)
{
send_to_char ("You require level 8 Auspex to use a Mind Blast.\n\r",
ch);
return;
}
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_majesty (ch, "");
if (arg[0] == '\0')
{
send_to_char ("Who do you want to Mind Blast?\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They are not here.\n\r", ch);
return;
}
if (IS_BETRAYER (victim) && IS_MORE (victim, MORE_GUARDIAN))
{
stc ("Their cherub is protecting them from your evil powers!\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Mind Blast on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (IS_XXX (victim, XXX_MINDBLOCK))
{
stc ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Mind Blast on you.", ch, NULL, victim,
TO_VICT);
}
}
if (victim->position != POS_FIGHTING
&& victim->hit < (victim->max_hit * 0.8))
{
send_to_char ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Mind Blast on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Mind Blast on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
damage = victim->max_hit * 0.2;
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
send_to_char ("You clutch your head as your mind seems to explode!\n\r",
victim);
act ("$n clutches $s head in agony!", victim, NULL, NULL, TO_ROOM);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Mind Blast on you.", ch, NULL, victim, TO_VICT);
}
hurt_person (ch, victim, damage, 0);
stop_fighting (victim, TRUE);
if (victim->position > POS_STUNNED)
victim->position = POS_STUNNED;
waiting (ch, 9);
return;
}
void
do_bloodspirit (CHAR_DATA * ch, char *argument)
{
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
do_huh (ch, "");
return;
}
if (get_disc (ch, DISC_THAUMATURGY) < 2)
{
send_to_char
("You require level 2 Thaumaturgy to use Blood Spirit.\n\r", ch);
return;
}
if (IS_NYM (ch, NYM_BLOODSPIRIT))
{
REMOVE_BIT (ch->nymbits, NYM_BLOODSPIRIT);
stc ("You banish your Blood Spirit.\n\r", ch);
return;
}
SET_BIT (ch->nymbits, NYM_BLOODSPIRIT);
stc ("You summon a Blood Spirit to help you in combat.\n\r", ch);
return;
}
void
do_willpower (CHAR_DATA * ch, char *argument)
{
char arg[MIL];
char buf[MIL];
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (arg[0] == '\0')
{
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
send_to_char (" -= Will Power =-\n\r",
ch);
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
if (IS_WILLPOWER (ch, RES_ANIMALISM))
send_to_char
("Animalism: You automatically try to resist Beast Within and Song of Serenity.\n\r",
ch);
else
send_to_char
("Animalism: You don't try to resist Beast Within and Song of Serenity.\n\r",
ch);
if (IS_WILLPOWER (ch, RES_AUSPEX))
send_to_char
("Auspex: You automatically try to resist Unveil the Shrouded Mind.\n\r",
ch);
else
send_to_char
("Auspex: You don't try to resist Unveil the Shrouded Mind.\n\r",
ch);
if (IS_WILLPOWER (ch, RES_DOMINATE))
send_to_char
("Dominate: You automatically try to resist Dominate attempts.\n\r",
ch);
else
send_to_char
("Dominate: You don't try to resist Dominate attempts.\n\r", ch);
if (IS_WILLPOWER (ch, RES_PRESENCE))
send_to_char
("Presence: You automatically try to resist Dread Gaze and Entrancement.\n\r",
ch);
else
send_to_char
("Presence: You don't try to resist Dread Gaze and Entrancement.\n\r",
ch);
if (IS_WILLPOWER (ch, RES_TOGGLE))
send_to_char
("Toggle: You automatically keep burning willpower to resist attempts.\n\r",
ch);
else
send_to_char
("Toggle: You will only burn willpower to resist each first attempt.\n\r",
ch);
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
send_to_char
("You may change any of the above by typing: willpower <value>\n\r",
ch);
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
send_to_char ("Remaining resistance in seconds:\n\r", ch);
sprintf (buf,
"Animalism: %d. Auspex: %d. Presence: %d. Dominate: %d.\n\r",
ch->pcdata->resist[WILL_ANIMALISM],
ch->pcdata->resist[WILL_AUSPEX],
ch->pcdata->resist[WILL_PRESENCE],
ch->pcdata->resist[WILL_DOMINATE]);
send_to_char (buf, ch);
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
return;
}
if (!str_cmp (arg, "animalism"))
{
if (IS_WILLPOWER (ch, RES_ANIMALISM))
{
send_to_char
("You will no longer try to resist Beast Within and Song of Serenity.\n\r",
ch);
REMOVE_BIT (ch->pcdata->resist[0], RES_ANIMALISM);
}
else
{
send_to_char
("You will now automatically try to resist Beast Within and Song of Serenity.\n\r",
ch);
SET_BIT (ch->pcdata->resist[0], RES_ANIMALISM);
}
}
else if (!str_cmp (arg, "auspex"))
{
if (IS_WILLPOWER (ch, RES_AUSPEX))
{
send_to_char
("You will no longer try to resist Unveil the Shrouded Mind.\n\r",
ch);
REMOVE_BIT (ch->pcdata->resist[0], RES_AUSPEX);
}
else
{
send_to_char
("You will now automatically try to resist Unveil the Shrouded Mind.\n\r",
ch);
SET_BIT (ch->pcdata->resist[0], RES_AUSPEX);
}
}
else if (!str_cmp (arg, "dominate"))
{
if (IS_WILLPOWER (ch, RES_DOMINATE))
{
send_to_char
("You will no longer try to resist Domination attempts.\n\r", ch);
REMOVE_BIT (ch->pcdata->resist[0], RES_DOMINATE);
}
else
{
send_to_char
("You will now automatically try to resist Domination attempts.\n\r",
ch);
SET_BIT (ch->pcdata->resist[0], RES_DOMINATE);
}
}
else if (!str_cmp (arg, "presence"))
{
if (IS_WILLPOWER (ch, RES_PRESENCE))
{
send_to_char
("You will no longer try to resist Dread Gaze and Entrancement.\n\r",
ch);
REMOVE_BIT (ch->pcdata->resist[0], RES_PRESENCE);
}
else
{
send_to_char
("You will now automatically try to resist Dread Gaze and Entrancement.\n\r",
ch);
SET_BIT (ch->pcdata->resist[0], RES_PRESENCE);
}
}
else if (!str_cmp (arg, "toggle"))
{
if (IS_WILLPOWER (ch, RES_TOGGLE))
{
send_to_char
("You will now only burn willpower to resist each first attempt.\n\r",
ch);
REMOVE_BIT (ch->pcdata->resist[0], RES_TOGGLE);
}
else
{
send_to_char
("You will now automatically keep burning willpower to resist attempts.\n\r",
ch);
SET_BIT (ch->pcdata->resist[0], RES_TOGGLE);
}
}
else
{
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
send_to_char (" -= Will Power =-\n\r",
ch);
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
if (IS_WILLPOWER (ch, RES_ANIMALISM))
send_to_char
("Animalism: You automatically try to resist Beast Within and Song of Serenity.\n\r",
ch);
else
send_to_char
("Animalism: You don't try to resist Beast Within and Song of Serenity.\n\r",
ch);
if (IS_WILLPOWER (ch, RES_AUSPEX))
send_to_char
("Auspex: You automatically try to resist Unveil the Shrouded Mind.\n\r",
ch);
else
send_to_char
("Auspex: You don't try to resist Unveil the Shrouded Mind.\n\r",
ch);
if (IS_WILLPOWER (ch, RES_DOMINATE))
send_to_char
("Dominate: You automatically try to resist Dominate attempts.\n\r",
ch);
else
send_to_char
("Dominate: You don't try to resist Dominate attempts.\n\r", ch);
if (IS_WILLPOWER (ch, RES_PRESENCE))
send_to_char
("Presence: You automatically try to resist Dread Gaze and Entrancement.\n\r",
ch);
else
send_to_char
("Presence: You don't try to resist Dread Gaze and Entrancement.\n\r",
ch);
if (IS_WILLPOWER (ch, RES_TOGGLE))
send_to_char
("Toggle: You automatically keep burning willpower to resist attempts.\n\r",
ch);
else
send_to_char
("Toggle: You will only burn willpower to resist each first attempt.\n\r",
ch);
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
send_to_char
("You may change any of the above by typing: willpower <value>\n\r",
ch);
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
send_to_char ("Remaining resistance in seconds:\n\r", ch);
sprintf (buf,
"Animalism: %d. Auspex: %d. Presence: %d. Dominate: %d.\n\r",
ch->pcdata->resist[WILL_ANIMALISM],
ch->pcdata->resist[WILL_AUSPEX],
ch->pcdata->resist[WILL_PRESENCE],
ch->pcdata->resist[WILL_DOMINATE]);
send_to_char (buf, ch);
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
return;
}
return;
}
void
do_changeling (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
char buf[MSL];
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_VICISSITUDE) < 1)
{
send_to_char ("You require level 1 Vicissitude to use Changeling.\n\r",
ch);
return;
}
if (arg[0] == '\0')
{
send_to_char ("Change to look like whom?\n\r", ch);
return;
}
if (IS_AFFECTED (ch, AFF_POLYMORPH) && !IS_VAMPAFF (ch, VAM_DISGUISED))
{
send_to_char ("Not while polymorphed.\n\r", ch);
return;
}
if (IS_POLYAFF (ch, POLY_ZULO))
{
send_to_char ("Not while in Zulo Form.\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (IS_IMMORTAL (victim) && victim != ch)
{
send_to_char ("You can only change to look like avatars or lower.\n\r",
ch);
return;
}
if (victim->sex != ch->sex)
{
send_to_char
("You can only change to look like people of the same sex as you.\n\r",
ch);
return;
}
if (ch == victim)
{
if (!IS_AFFECTED (ch, AFF_POLYMORPH) && !IS_VAMPAFF (ch, VAM_DISGUISED))
{
send_to_char ("You already look like yourself!\n\r", ch);
return;
}
if (!IS_POLYAFF (ch, POLY_CHANGELING))
{
send_to_char ("Nothing happens.\n\r", ch);
return;
}
sprintf (buf, "$n's features twist and distort until $e looks like %s.",
ch->name);
act (buf, ch, NULL, NULL, TO_ROOM);
REMOVE_BIT (ch->polyaff, POLY_CHANGELING);
REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
REMOVE_BIT (ch->vampaff, VAM_DISGUISED);
REMOVE_BIT (ch->extra, EXTRA_VICISSITUDE);
free_string (ch->morph);
ch->morph = str_dup ("");
act ("Your features twist and distort until you look like $n.", ch,
NULL, NULL, TO_CHAR);
return;
}
if (IS_VAMPAFF (ch, VAM_DISGUISED))
{
if (!IS_POLYAFF (ch, POLY_CHANGELING))
{
send_to_char ("Nothing happens.\n\r", ch);
return;
}
act ("Your features twist and distort until you look like $N.", ch,
NULL, victim, TO_CHAR);
act ("$n's features twist and distort until $e looks like you.", ch,
NULL, victim, TO_VICT);
act ("$n's features twist and distort until $e looks like $N.", ch,
NULL, victim, TO_NOTVICT);
free_string (ch->morph);
ch->morph = str_dup (victim->name);
return;
}
act ("Your features twist and distort until you look like $N.", ch, NULL,
victim, TO_CHAR);
act ("$n's features twist and distort until $e looks like you.", ch, NULL,
victim, TO_VICT);
act ("$n's features twist and distort until $e looks like $N.", ch, NULL,
victim, TO_NOTVICT);
SET_BIT (ch->polyaff, POLY_CHANGELING);
SET_BIT (ch->affected_by, AFF_POLYMORPH);
SET_BIT (ch->vampaff, VAM_DISGUISED);
SET_BIT (ch->extra, EXTRA_VICISSITUDE);
free_string (ch->morph);
ch->morph = str_dup (victim->name);
return;
}
void
do_fleshcraft (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg1[MIL];
char arg2[MIL];
char arg3[MIL];
char buf[MSL];
one_argument (argument, arg1);
if (IS_NPC (ch))
return;
if (!IS_IMMORTAL (ch))
{
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_VICISSITUDE) < 2)
{
send_to_char
("You require level 2 Vicissitude to use Fleshcraft.\n\r", ch);
return;
}
}
if (arg1[0] == '\0')
{
send_to_char ("Change to look like whom?\n\r", ch);
return;
}
if (!str_cmp (arg1, "mod") || !str_cmp (arg1, "modify"))
{
argument = one_argument (argument, arg1);
argument = one_argument (argument, arg2);
argument = one_argument (argument, arg3);
if (arg1[0] == '\0' || arg2[0] == '\0' || arg3[0] == '\0')
{
send_to_char
("Syntax: Fleshcraft Modify <target> <modification>\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg2)) == NULL)
{
send_to_char ("They are not here.\n\r", ch);
return;
}
if (IS_NPC (victim))
{
send_to_char ("You cannot fleshcraft an unwilling person.\n\r", ch);
return;
}
if (!IS_IMMUNE (victim, IMM_VAMPIRE) && ch != victim)
{
send_to_char ("You cannot fleshcraft an unwilling person.\n\r", ch);
return;
}
if (!str_cmp (arg3, "fins"))
{
if (IS_MOD (victim, MOD_FINS))
{
if (ch == victim)
{
send_to_char ("You push your fins back into your body!\n\r",
ch);
act ("$n pushes $s fins back into $s body!", ch, NULL, NULL,
TO_ROOM);
}
else
{
act ("You push $N's fins back into $S body!", ch, NULL,
victim, TO_CHAR);
act ("$n pushes your fins back into your body!", ch, NULL,
victim, TO_VICT);
act ("$n pushes $N's fins back into $S body!", ch, NULL,
victim, TO_NOTVICT);
}
REMOVE_BIT (victim->pcdata->bodymods, MOD_FINS);
}
else
{
if (ch == victim)
{
send_to_char
("You pull a pair of fins out of your body!\n\r", ch);
act ("$n pulls a pair of fins out of $s body!", ch, NULL,
NULL, TO_ROOM);
}
else
{
act ("You pull a pair of fins out of $N's body!", ch, NULL,
victim, TO_CHAR);
act ("$n pulls a pair of fins out of your body!", ch, NULL,
victim, TO_VICT);
act ("$n pulls a pair of fins out of $N's body!", ch, NULL,
victim, TO_NOTVICT);
}
SET_BIT (victim->pcdata->bodymods, MOD_FINS);
}
}
else if (!str_cmp (arg3, "tail"))
{
if (IS_MOD (victim, MOD_TAIL))
{
if (ch == victim)
{
send_to_char ("You push your tail back into your body!\n\r",
ch);
act ("$n pushes $s tail back into $s body!", ch, NULL, NULL,
TO_ROOM);
}
else
{
act ("You push $N's tail back into $S body!", ch, NULL,
victim, TO_CHAR);
act ("$n pushes your tail back into your body!", ch, NULL,
victim, TO_VICT);
act ("$n pushes $N's tail back into $S body!", ch, NULL,
victim, TO_NOTVICT);
}
REMOVE_BIT (victim->pcdata->bodymods, MOD_TAIL);
}
else
{
if (ch == victim)
{
send_to_char ("You pull a tail out of your backside!\n\r",
ch);
act ("$n pulls a tail out of $s backside!", ch, NULL, NULL,
TO_ROOM);
}
else
{
act ("You pull a tail out of $N's backside!", ch, NULL,
victim, TO_CHAR);
act ("$n pulls a tail out of your backside!", ch, NULL,
victim, TO_VICT);
act ("$n pulls a tail out of $N's backside!", ch, NULL,
victim, TO_NOTVICT);
}
SET_BIT (victim->pcdata->bodymods, MOD_TAIL);
}
}
else if (!str_cmp (arg3, "wings"))
{
if (IS_MOD (victim, MOD_WINGS))
{
if (IS_MOD (victim, MOD_UNFOLDED))
do_wings (victim, "");
if (ch == victim)
{
send_to_char
("You push your wings back into your shoulders!\n\r", ch);
act ("$n pushes $s wings back into $s shoulders!", ch, NULL,
NULL, TO_ROOM);
}
else
{
act ("You push $N's wings back into $S shoulders!", ch,
NULL, victim, TO_CHAR);
act ("$n pushes your wings back into your shoulders!", ch,
NULL, victim, TO_VICT);
act ("$n pushes $N's wings back into $S shoulders!", ch,
NULL, victim, TO_NOTVICT);
}
REMOVE_BIT (victim->pcdata->bodymods, MOD_WINGS);
}
else
{
if (ch == victim)
{
send_to_char
("You pull a pair of wings out of your shoulders!\n\r",
ch);
act ("$n pulls a pair of wings out of $s shoulders!", ch,
NULL, NULL, TO_ROOM);
}
else
{
act ("You pull a pair of wings out of $N's shoulders!", ch,
NULL, victim, TO_CHAR);
act ("$n pulls a pair of wings out of your shoulders!", ch,
NULL, victim, TO_VICT);
act ("$n pulls a pair of wings out of $N's shoulders!", ch,
NULL, victim, TO_NOTVICT);
}
SET_BIT (victim->pcdata->bodymods, MOD_WINGS);
}
}
else
send_to_char ("You cannot do that.\n\r", ch);
return;
}
if (IS_AFFECTED (ch, AFF_POLYMORPH) && !IS_VAMPAFF (ch, VAM_DISGUISED))
{
send_to_char ("Not while polymorphed.\n\r", ch);
return;
}
if (IS_POLYAFF (ch, POLY_ZULO))
{
send_to_char ("Not while in Zulo Form.\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg1)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
if (IS_IMMORTAL (victim) && victim != ch)
{
send_to_char ("You cannot disguise yourself as them.\n\r", ch);
return;
}
if (ch == victim)
{
if (!IS_AFFECTED (ch, AFF_POLYMORPH) && !IS_VAMPAFF (ch, VAM_DISGUISED))
{
send_to_char ("You already look like yourself!\n\r", ch);
return;
}
if (!IS_POLYAFF (ch, POLY_FLESHCRAFT))
{
send_to_char ("Nothing happens.\n\r", ch);
return;
}
sprintf (buf, "$n's features twist and distort until $e looks like %s.",
ch->name);
act (buf, ch, NULL, NULL, TO_ROOM);
REMOVE_BIT (ch->polyaff, POLY_FLESHCRAFT);
REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
REMOVE_BIT (ch->vampaff, VAM_DISGUISED);
REMOVE_BIT (ch->extra, EXTRA_VICISSITUDE);
free_string (ch->morph);
ch->morph = str_dup ("");
act ("Your features twist and distort until you look like $n.", ch,
NULL, NULL, TO_CHAR);
free_string (ch->long_descr);
ch->long_descr = str_dup ("");
return;
}
if (IS_VAMPAFF (ch, VAM_DISGUISED))
{
if (!IS_POLYAFF (ch, POLY_FLESHCRAFT))
{
send_to_char ("Nothing happens.\n\r", ch);
return;
}
act ("Your features twist and distort until you look like $N.", ch,
NULL, victim, TO_CHAR);
act ("$n's features twist and distort until $e looks like you.", ch,
NULL, victim, TO_VICT);
act ("$n's features twist and distort until $e looks like $N.", ch,
NULL, victim, TO_NOTVICT);
free_string (ch->morph);
if (IS_NPC (victim))
{
ch->morph = str_dup (victim->short_descr);
free_string (ch->long_descr);
ch->long_descr = str_dup (victim->long_descr);
}
else
{
ch->morph = str_dup (victim->name);
free_string (ch->long_descr);
ch->long_descr = str_dup ("");
}
return;
}
act ("Your features twist and distort until you look like $N.", ch, NULL,
victim, TO_CHAR);
act ("$n's features twist and distort until $e looks like you.", ch, NULL,
victim, TO_VICT);
act ("$n's features twist and distort until $e looks like $N.", ch, NULL,
victim, TO_NOTVICT);
SET_BIT (ch->polyaff, POLY_FLESHCRAFT);
SET_BIT (ch->affected_by, AFF_POLYMORPH);
SET_BIT (ch->vampaff, VAM_DISGUISED);
SET_BIT (ch->extra, EXTRA_VICISSITUDE);
free_string (ch->morph);
if (IS_NPC (victim))
{
ch->morph = str_dup (victim->short_descr);
free_string (ch->long_descr);
ch->long_descr = str_dup (victim->long_descr);
}
else
{
ch->morph = str_dup (victim->name);
free_string (ch->long_descr);
ch->long_descr = str_dup ("");
}
return;
}
void
do_bonecraft (CHAR_DATA * ch, char *argument)
{
char buf[MSL];
char arg1[MIL];
char arg2[MIL];
char arg3[MIL];
CHAR_DATA *victim;
if (IS_NPC (ch))
return;
one_argument (argument, arg1);
smash_tilde (argument);
if (!IS_IMMORTAL (ch))
{
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_VICISSITUDE) < 3)
{
send_to_char
("You require level 3 Vicissitude to use Bonecraft.\n\r", ch);
return;
}
}
if (argument[0] == '\0' || arg1[0] == '\0')
{
send_to_char ("Change to look like whom?\n\r", ch);
return;
}
if (!str_cmp (arg1, "mod") || !str_cmp (arg1, "modify"))
{
argument = one_argument (argument, arg1);
argument = one_argument (argument, arg2);
argument = one_argument (argument, arg3);
if (arg1[0] == '\0' || arg2[0] == '\0' || arg3[0] == '\0')
{
send_to_char
("Syntax: Bonecraft Modify <target> <modification>\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg2)) == NULL)
{
send_to_char ("They are not here.\n\r", ch);
return;
}
if (IS_NPC (victim))
{
send_to_char ("You cannot bonecraft an unwilling person.\n\r", ch);
return;
}
if (!IS_IMMUNE (victim, IMM_VAMPIRE) && ch != victim)
{
send_to_char ("You cannot bonecraft an unwilling person.\n\r", ch);
return;
}
if (!str_cmp (arg3, "tusks"))
{
if (IS_MOD (victim, MOD_TUSKS))
{
if (ch == victim)
{
send_to_char
("You push your tusks back into your jaw bone!\n\r", ch);
act ("$n pushes $s tusks back $s jaw bone!", ch, NULL, NULL,
TO_ROOM);
}
else
{
act ("You push $N's tusks back into $S jaw bone!", ch, NULL,
victim, TO_CHAR);
act ("$n pushes your tusks back into your jaw bone!", ch,
NULL, victim, TO_VICT);
act ("$n pushes $N's tusks back into $S jaw bone!", ch,
NULL, victim, TO_NOTVICT);
}
REMOVE_BIT (victim->pcdata->bodymods, MOD_TUSKS);
}
else
{
if (ch == victim)
{
send_to_char
("You pull a pair of tusks out of your jaw bone!\n\r",
ch);
act ("$n pulls a pair of tusks out of $s jaw bone!", ch,
NULL, NULL, TO_ROOM);
}
else
{
act ("You pull a pair of tusks out of $N's jaw bone!", ch,
NULL, victim, TO_CHAR);
act ("$n pulls a pair of tusks out of your jaw bone!", ch,
NULL, victim, TO_VICT);
act ("$n pulls a pair of tusks out of $N's jaw bone!", ch,
NULL, victim, TO_NOTVICT);
}
SET_BIT (victim->pcdata->bodymods, MOD_TUSKS);
}
}
else if (!str_cmp (arg3, "horns"))
{
if (IS_MOD (victim, MOD_HORNS))
{
if (ch == victim)
{
send_to_char
("You push your horns back into the bone of your skull!\n\r",
ch);
act ("$n pushes $s horns back into the bone of $s skull!",
ch, NULL, NULL, TO_ROOM);
}
else
{
act ("You push $N's horns back into the bone of $S skull!",
ch, NULL, victim, TO_CHAR);
act
("$n pushes your horns back into the bone of your skull!",
ch, NULL, victim, TO_VICT);
act ("$n pushes $N's horns back into the bone of $S skull!",
ch, NULL, victim, TO_NOTVICT);
}
REMOVE_BIT (victim->pcdata->bodymods, MOD_HORNS);
}
else
{
if (ch == victim)
{
send_to_char
("You pull a pair of horns out of the bone of your skull!\n\r",
ch);
act
("$n pulls a pair of horns out of the bone of $s skull!",
ch, NULL, NULL, TO_ROOM);
}
else
{
act
("You pull a pair of horns out of the bone of $N's skull!",
ch, NULL, victim, TO_CHAR);
act
("$n pulls a pair of horns out of the bone of your skull!",
ch, NULL, victim, TO_VICT);
act
("$n pulls a pair of horns out of the bone of $N's skull!",
ch, NULL, victim, TO_NOTVICT);
}
SET_BIT (victim->pcdata->bodymods, MOD_HORNS);
}
}
else if (!str_cmp (arg3, "exoskeleton"))
{
if (IS_MOD (victim, MOD_EXOSKELETON))
{
if (ch == victim)
{
send_to_char
("You push your exoskeleton back under your skin!\n\r",
ch);
act ("$n pushes $s exoskeleton back under $s skin!", ch,
NULL, NULL, TO_ROOM);
}
else
{
act ("You push $N's exoskeleton back under $S skin!", ch,
NULL, victim, TO_CHAR);
act ("$n pushes your exoskeleton back under your skin!", ch,
NULL, victim, TO_VICT);
act ("$n pushes $N's exoskeleton back under $S skin!", ch,
NULL, victim, TO_NOTVICT);
}
REMOVE_BIT (victim->pcdata->bodymods, MOD_EXOSKELETON);
}
else
{
if (ch == victim)
{
send_to_char
("You pull out an exoskeleton from under your skin!\n\r",
ch);
act ("$n pulls out an exoskeleton from under $s skin!", ch,
NULL, NULL, TO_ROOM);
}
else
{
act ("You pull out an exoskeleton from under $N's skin!",
ch, NULL, victim, TO_CHAR);
act ("$n pulls out an exoskeleton from under your skin!",
ch, NULL, victim, TO_VICT);
act ("$n pulls out an exoskeleton from under $N's skin!",
ch, NULL, victim, TO_NOTVICT);
}
SET_BIT (victim->pcdata->bodymods, MOD_EXOSKELETON);
}
}
else
send_to_char ("You cannot do that.\n\r", ch);
return;
}
if (strlen (argument) > 20)
{
send_to_char ("Please limit your name to 20 characters or less.\n\r",
ch);
return;
}
if (str_cmp (argument, "self") && !check_parse_name (argument))
{
send_to_char ("Illegal name.\n\r", ch);
return;
}
if (is_in (argument, "|corim*ixia*nymph*tijer*"))
{
send_to_char ("Illegal name.\n\r", ch);
return;
}
if (IS_AFFECTED (ch, AFF_POLYMORPH) && !IS_VAMPAFF (ch, VAM_DISGUISED))
{
send_to_char ("Not while polymorphed.\n\r", ch);
return;
}
if (IS_POLYAFF (ch, POLY_ZULO))
{
send_to_char ("Not while in Zulo Form.\n\r", ch);
return;
}
if (!str_cmp (argument, ch->name) || !str_cmp (argument, "self"))
{
if (!IS_AFFECTED (ch, AFF_POLYMORPH) && !IS_VAMPAFF (ch, VAM_DISGUISED))
{
send_to_char ("You already look like yourself!\n\r", ch);
return;
}
if (!IS_POLYAFF (ch, POLY_BONECRAFT))
{
send_to_char ("Nothing happens.\n\r", ch);
return;
}
sprintf (buf, "$n's features twist and distort until $e looks like %s.",
ch->name);
act (buf, ch, NULL, NULL, TO_ROOM);
REMOVE_BIT (ch->polyaff, POLY_BONECRAFT);
REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
REMOVE_BIT (ch->vampaff, VAM_DISGUISED);
REMOVE_BIT (ch->extra, EXTRA_VICISSITUDE);
free_string (ch->morph);
ch->morph = str_dup ("");
act ("Your features twist and distort until you look like $n.", ch,
NULL, NULL, TO_CHAR);
return;
}
if (IS_VAMPAFF (ch, VAM_DISGUISED))
{
if (!IS_POLYAFF (ch, POLY_BONECRAFT))
{
send_to_char ("Nothing happens.\n\r", ch);
return;
}
sprintf (buf,
"Your features twist and distort until you look like %s.\n\r",
argument);
send_to_char (buf, ch);
sprintf (buf, "$n's features twist and distort until $e looks like %s.",
argument);
act (buf, ch, NULL, NULL, TO_ROOM);
free_string (ch->morph);
ch->morph = str_dup (argument);
return;
}
sprintf (buf, "Your features twist and distort until you look like %s.\n\r",
argument);
send_to_char (buf, ch);
sprintf (buf, "$n's features twist and distort until $e looks like %s.",
argument);
act (buf, ch, NULL, NULL, TO_ROOM);
SET_BIT (ch->polyaff, POLY_BONECRAFT);
SET_BIT (ch->affected_by, AFF_POLYMORPH);
SET_BIT (ch->vampaff, VAM_DISGUISED);
SET_BIT (ch->extra, EXTRA_VICISSITUDE);
free_string (ch->morph);
ch->morph = str_dup (argument);
return;
}
void
do_zuloform (CHAR_DATA * ch, char *argument)
{
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_VICISSITUDE) < 4)
{
send_to_char
("You require level 4 Vicissitude to change into Zulo Form.\n\r", ch);
return;
}
if (IS_AFFECTED (ch, AFF_POLYMORPH) && !IS_VAMPAFF (ch, VAM_DISGUISED))
{
send_to_char ("Not while polymorphed.\n\r", ch);
return;
}
if (IS_POLYAFF (ch, POLY_ZULO))
{
REMOVE_BIT (ch->polyaff, POLY_ZULO);
free_string (ch->morph);
ch->morph = str_dup (get_form (ch));
if (strlen (ch->morph) < 2)
{
REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
REMOVE_BIT (ch->vampaff, VAM_DISGUISED);
}
REMOVE_BIT (ch->vampaff, VAM_CLAWS);
REMOVE_BIT (ch->vampaff, VAM_NIGHTSIGHT);
REMOVE_BIT (ch->extra, EXTRA_VICISSITUDE);
send_to_char ("Your body shrinks and distorts.\n\r", ch);
act ("$n body shrinks and distorts.", ch, NULL, NULL, TO_ROOM);
return;
}
if (ch->mounted == IS_RIDING)
do_dismount (ch, "");
send_to_char ("Your body grows and distorts.\n\r", ch);
act ("$n's body grows and distorts.", ch, NULL, NULL, TO_ROOM);
SET_BIT (ch->vampaff, VAM_CLAWS);
SET_BIT (ch->vampaff, VAM_NIGHTSIGHT);
SET_BIT (ch->affected_by, AFF_POLYMORPH);
SET_BIT (ch->vampaff, VAM_DISGUISED);
SET_BIT (ch->extra, EXTRA_VICISSITUDE);
SET_BIT (ch->polyaff, POLY_ZULO);
free_string (ch->morph);
ch->morph = str_dup (get_form (ch));
return;
}
void
do_wwzuloform (CHAR_DATA * ch, char *argument)
{
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_tribe (ch, TRIBE_FIANNA) < 3)
{
send_to_char
("You require level 3 Fianna to change into your Glabro Form.\n\r",
ch);
return;
}
if (IS_AFFECTED (ch, AFF_POLYMORPH) && !IS_VAMPAFF (ch, VAM_DISGUISED))
{
send_to_char ("Not while polymorphed.\n\r", ch);
return;
}
if (IS_POLYAFF (ch, POLY_WWZULO))
{
REMOVE_BIT (ch->polyaff, POLY_WWZULO);
free_string (ch->morph);
ch->morph = str_dup (get_form (ch));
if (strlen (ch->morph) < 2)
{
REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
REMOVE_BIT (ch->vampaff, VAM_DISGUISED);
}
REMOVE_BIT (ch->vampaff, VAM_CLAWS);
REMOVE_BIT (ch->vampaff, VAM_NIGHTSIGHT);
send_to_char ("Your body shrinks and distorts.\n\r", ch);
act ("$n body shrinks and distorts.", ch, NULL, NULL, TO_ROOM);
return;
}
if (ch->mounted == IS_RIDING)
do_dismount (ch, "");
SET_BIT (ch->vampaff, VAM_CLAWS);
SET_BIT (ch->vampaff, VAM_NIGHTSIGHT);
SET_BIT (ch->affected_by, AFF_POLYMORPH);
SET_BIT (ch->vampaff, VAM_DISGUISED);
SET_BIT (ch->polyaff, POLY_WWZULO);
send_to_char ("Your body grows and distorts.\n\r", ch);
act ("$n body grows and distorts.", ch, NULL, NULL, TO_ROOM);
free_string (ch->morph);
ch->morph = str_dup (get_form (ch));
return;
}
void
do_plasmaform (CHAR_DATA * ch, char *argument)
{
OBJ_DATA *obj;
if (IS_NPC (ch))
return;
if ((!IS_VAMPIRE (ch) && !IS_GHOUL (ch)) || IS_HEAD (ch, LOST_HEAD))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_VICISSITUDE) < 5)
{
send_to_char
("You require level 5 Vicissitude to change into Plasma Form.\n\r",
ch);
return;
}
if (has_fighttimer (ch))
return;
if (has_artifact (ch))
{
stc ("Not with an artifact.\n\r", ch);
return;
}
if (!IS_MORE (ch, MORE_PLASMA) && IS_AFFECTED (ch, AFF_POLYMORPH))
{
send_to_char ("Not from this form.\n\r", ch);
return;
}
if ((obj = ch->pcdata->chobj) != NULL && IS_EXTRA (ch, EXTRA_OSWITCH))
{
ch->pcdata->obj_vnum = 0;
obj->chobj = NULL;
ch->pcdata->chobj = NULL;
REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
REMOVE_BIT (ch->extra, EXTRA_OSWITCH);
REMOVE_BIT (ch->more, MORE_PLASMA);
free_string (ch->morph);
ch->morph = str_dup ("");
act ("$p transforms into $n.", ch, obj, NULL, TO_ROOM);
act ("Your reform your human body.", ch, obj, NULL, TO_CHAR);
extract_obj (obj);
if (ch->in_room->vnum == ROOM_VNUM_IN_OBJECT)
{
char_from_room (ch);
char_to_room (ch, get_room_index (ROOM_VNUM_HELL));
}
return;
}
if (IS_AFFECTED (ch, AFF_POLYMORPH))
{
send_to_char ("You cannot do this while polymorphed.\n\r", ch);
return;
}
if ((obj = create_object (get_obj_index (OBJ_VNUM_SPILT_BLOOD), 0)) == NULL)
{
send_to_char ("Bug - please inform Corim.\n\r", ch);
return;
}
if (ch->mounted == IS_RIDING)
do_dismount (ch, "");
obj_to_room (obj, ch->in_room);
SET_BIT (obj->quest, QUEST_VANISH);
act ("$n transforms into $p and splashes to the ground.", ch, obj, NULL,
TO_ROOM);
act ("You transform into $p and splash to the ground.", ch, obj, NULL,
TO_CHAR);
if (IS_EXTRA (ch, TIED_UP))
{
act ("The ropes binding you fall through your liquid form.", ch, NULL,
NULL, TO_CHAR);
act ("The ropes binding $n fall through $s liquid form.", ch, NULL,
NULL, TO_ROOM);
REMOVE_BIT (ch->extra, TIED_UP);
REMOVE_BIT (ch->extra, GAGGED);
REMOVE_BIT (ch->extra, BLINDFOLDED);
}
if (is_affected (ch, gsn_web))
{
act ("The webbing entrapping $n falls through $s liquid form.", ch,
NULL, NULL, TO_ROOM);
send_to_char
("The webbing entrapping you falls through your liquid form.\n\r",
ch);
affect_strip (ch, gsn_web);
}
if (is_affected (ch, gsn_uberweb))
{
act ("The webbing entrapping $n falls through $s liquid form.", ch,
NULL, NULL, TO_ROOM);
send_to_char
("The webbing entrapping you falls through your liquid form.\n\r",
ch);
affect_strip (ch, gsn_uberweb);
}
if (IS_AFFECTED (ch, AFF_WEBBED))
{
act ("The webbing entrapping $n falls through $s liquid form.", ch,
NULL, NULL, TO_ROOM);
send_to_char
("The webbing entrapping you falls through your liquid form.\n\r",
ch);
REMOVE_BIT (ch->affected_by, AFF_WEBBED);
}
if (is_affected (ch, gsn_tendrils))
{
act
("The tendrils of darkness entrapping $n fall through $s liquid form.",
ch, NULL, NULL, TO_ROOM);
send_to_char
("The tendrils of darkness entrapping you fall through your liquid form.\n\r",
ch);
affect_strip (ch, gsn_tendrils);
}
if (IS_AFFECTED (ch, AFF_SHADOW))
{
act
("The tendrils of darkness entrapping $n fall through $s liquid form.",
ch, NULL, NULL, TO_ROOM);
send_to_char
("The tendrils of darkness entrapping you fall through your liquid form.\n\r",
ch);
REMOVE_BIT (ch->affected_by, AFF_SHADOW);
}
if (is_affected (ch, gsn_jail))
{
act ("The band of water entrapping $n splash to the ground.", ch, NULL,
NULL, TO_ROOM);
send_to_char
("The bands of water entrapping you splash to the ground.\n\r", ch);
affect_strip (ch, gsn_jail);
}
if (IS_AFFECTED (ch, AFF_JAIL))
{
act ("The band of water entrapping $n splash to the ground.", ch, NULL,
NULL, TO_ROOM);
send_to_char
("The bands of water entrapping you splash to the ground.\n\r", ch);
REMOVE_BIT (ch->affected_by, AFF_JAIL);
}
ch->pcdata->obj_vnum = OBJ_VNUM_SPILT_BLOOD;
obj->chobj = ch;
ch->pcdata->chobj = obj;
SET_BIT (ch->affected_by, AFF_POLYMORPH);
SET_BIT (ch->extra, EXTRA_OSWITCH);
SET_BIT (ch->more, MORE_PLASMA);
free_string (ch->morph);
ch->morph = str_dup (obj->short_descr);
return;
}
void
do_portal (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
OBJ_DATA *obj;
char arg[MIL];
char buf[MIL];
int duration;
one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch) && (!IS_DEMON (ch) || IS_ANGEL (ch)))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_DAIMOINON) < 3)
{
send_to_char
("You require level 3 Daimoinon to create an Infernal Portal.\n\r",
ch);
return;
}
if (IS_DEMON (ch) && ch->in_room->area->plane != PLANE_HELL)
{
send_to_char ("You need to be in hell to use this power.\n\r", ch);
return;
}
if (is_inarena (ch))
return;
if (arg[0] == '\0')
{
send_to_char ("Who do you wish to create a portal to?\n\r", ch);
return;
}
victim = get_char_world (ch, arg);
if (!IS_DEMON (ch))
{
if ((victim = get_char_world (ch, arg)) == NULL
|| victim == ch
|| victim->in_room == NULL
|| ch->in_room == NULL || IS_NPC (victim))
{
send_to_char ("You failed.\n\r", ch);
return;
}
if (IS_IMMORTAL (victim))
{
stc ("The spell failed.\n\r", ch);
sprintf (buf, "%s just tried to open a portal to you.\n\r",
ch->name);
stc (buf, victim);
return;
}
if (is_inarena (victim))
return;
if (travelsafe (ch, victim))
return;
if (IS_SET (victim->evenmore, EM_JAILED))
{
send_to_char ("What??? You wish to go to jail too?\n\r", ch);
return;
}
if (!IS_NPC (victim) && !IS_IMMUNE (victim, IMM_SUMMON)
|| IS_SET (ch->in_room->room_flags, ROOM_PRIVATE)
|| IS_SET (ch->in_room->room_flags, ROOM_SOLITARY)
|| IS_SET (victim->in_room->room_flags, ROOM_PRIVATE)
|| IS_SET (victim->in_room->room_flags, ROOM_SOLITARY)
|| victim->in_room->vnum == ch->in_room->vnum)
{
send_to_char ("You can't do that.\n\r", ch);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to create an Infernal Portal to you.", ch,
NULL, victim, TO_VICT);
}
return;
}
duration = number_range (2, 3) * 15;
obj = create_object (get_obj_index (OBJ_VNUM_PORTAL), 0);
obj->value[0] = victim->in_room->vnum;
obj->value[3] = ch->in_room->vnum;
obj->timer = duration;
free_string (obj->short_descr);
obj->short_descr = str_dup ("an infernal portal");
free_string (obj->description);
obj->description =
str_dup ("An infernal portal of burning flames floats here.");
if (IS_AFFECTED (ch, AFF_SHADOWPLANE))
obj->extra_flags = ITEM_SHADOWPLANE;
if (IS_NYM (ch, NYM_DEATHPLANE))
obj->extra_flags = ITEM_DEATHPLANE;
obj_to_room (obj, ch->in_room);
obj = create_object (get_obj_index (OBJ_VNUM_PORTAL), 0);
obj->value[0] = ch->in_room->vnum;
obj->value[3] = victim->in_room->vnum;
obj->timer = duration;
free_string (obj->short_descr);
obj->short_descr = str_dup ("an infernal portal");
free_string (obj->description);
obj->description =
str_dup ("An infernal portal of burning flames floats here.");
if (IS_AFFECTED (victim, AFF_SHADOWPLANE))
obj->extra_flags = ITEM_SHADOWPLANE;
if (IS_NYM (victim, NYM_DEATHPLANE))
obj->extra_flags = ITEM_DEATHPLANE;
obj_to_room (obj, victim->in_room);
act ("$p bursts from the ground in front of $n.", ch, obj, NULL,
TO_ROOM);
act ("$p bursts from the ground appears in front of you.", ch, obj,
NULL, TO_CHAR);
act ("$p bursts from the ground appears in front of $n.", victim, obj,
NULL, TO_ROOM);
act ("$p bursts from the ground appears in front of you.", ch, obj,
victim, TO_VICT);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just created an Infernal Portal to you.", ch, NULL, victim,
TO_VICT);
}
return;
}
else if (IS_DEMON (ch))
{
if ((victim = get_char_world (ch, arg)) == NULL
|| victim == ch || victim->in_room == NULL || ch->in_room == NULL)
{
send_to_char ("You failed.\n\r", ch);
return;
}
if (IS_IMMORTAL (victim))
{
stc ("The spell failed.\n\r", ch);
sprintf (buf, "%s just tried to open a portal to you.\n\r",
ch->name);
stc (buf, victim);
return;
}
if (is_inarena (victim))
return;
if (travelsafe (ch, victim))
return;
if (IS_SET (victim->evenmore, EM_JAILED))
{
send_to_char ("What??? You wish to go to jail too?\n\r", ch);
return;
}
if (!IS_NPC (victim) && !IS_IMMUNE (victim, IMM_SUMMON)
|| IS_SET (ch->in_room->room_flags, ROOM_PRIVATE)
|| IS_SET (ch->in_room->room_flags, ROOM_SOLITARY)
|| IS_SET (victim->in_room->room_flags, ROOM_PRIVATE)
|| IS_SET (victim->in_room->room_flags, ROOM_SOLITARY)
|| victim->in_room->vnum == ch->in_room->vnum)
{
send_to_char ("You can't do that.\n\r", ch);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to create an Infernal Portal to you.", ch,
NULL, victim, TO_VICT);
}
return;
}
duration = number_range (2, 3) * 15;
obj = create_object (get_obj_index (OBJ_VNUM_PORTAL), 0);
obj->value[0] = victim->in_room->vnum;
obj->value[3] = ch->in_room->vnum;
obj->timer = duration;
free_string (obj->name);
sprintf (buf, "%s infernal portal", ch->name);
obj->name = str_dup (buf);
free_string (obj->short_descr);
obj->short_descr = str_dup ("an infernal portal");
free_string (obj->description);
obj->description =
str_dup ("An infernal portal of burning flames floats here.");
if (IS_AFFECTED (ch, AFF_SHADOWPLANE))
obj->extra_flags = ITEM_SHADOWPLANE;
if (IS_NYM (ch, NYM_DEATHPLANE))
obj->extra_flags = ITEM_DEATHPLANE;
obj_to_room (obj, ch->in_room);
obj = create_object (get_obj_index (OBJ_VNUM_PORTAL), 0);
obj->value[0] = ch->in_room->vnum;
obj->value[3] = victim->in_room->vnum;
obj->timer = duration;
free_string (obj->short_descr);
obj->short_descr = str_dup ("an infernal portal");
free_string (obj->description);
obj->description =
str_dup ("An infernal portal of burning flames floats here.");
if (IS_AFFECTED (victim, AFF_SHADOWPLANE))
obj->extra_flags = ITEM_SHADOWPLANE;
if (IS_NYM (victim, NYM_DEATHPLANE))
obj->extra_flags = ITEM_DEATHPLANE;
obj_to_room (obj, victim->in_room);
act ("$p bursts from the ground in front of $n.", ch, obj, NULL,
TO_ROOM);
act ("$p bursts from the ground appears in front of you.", ch, obj,
NULL, TO_CHAR);
act ("$p bursts from the ground appears in front of $n.", victim, obj,
NULL, TO_ROOM);
act ("$p bursts from the ground appears in front of you.", ch, obj,
victim, TO_VICT);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just created an Infernal Portal to you.", ch, NULL, victim,
TO_VICT);
}
return;
}
return;
}
void
do_soultwist (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
char buf[MIL];
int damage;
bool aggy = FALSE;
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch) && (!IS_DEMON (ch) || IS_ANGEL (ch))
&& !IS_XX (ch, XX_ABOMBEAR))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_DAIMOINON) < 5 && !IS_XX (ch, XX_ABOMBEAR))
{
send_to_char ("You require level 5 Daimoinon to use Soul Twist.\n\r",
ch);
return;
}
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_majesty (ch, "");
if (arg[0] == '\0' && ch->fighting == NULL)
{
send_to_char ("Who do you wish to use Soul Twist on?\n\r", ch);
return;
}
if ((victim = ch->fighting) == NULL)
{
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
}
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Soul Twist on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (!IS_EVIL (ch))
{
send_to_char ("You are not evil enough to use Soul Twist.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Soul Twist on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
damage = victim->alignment;
if (victim->alignment > 0)
aggy = TRUE;
if (damage < 1)
damage = number_range (10, 30);
damage *= get_disc (ch, DISC_DAIMOINON);
if (IS_DEMON (ch))
{
if (aggy)
{
damage += number_range (2500, 5600);
damage /= 1.4;
}
}
if (IS_DEMON (ch) && ch->in_room != NULL
&& ch->in_room->area->plane == PLANE_HELL && !IS_DEMON (victim))
damage *= 2;
if (IS_ABOMINATION (ch))
damage = 8000;
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
send_to_char
("You scream in agony as your very soul seems to be torn apart!\n\r",
victim);
act ("$n clutches $s chest and screams in agony!", victim, NULL, NULL,
TO_ROOM);
sprintf (buf,
"Your #rSoul#c Twist#n causes $N agonizing pain #7[#R%d#7]#n.",
damage);
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf, "$n #rSoul#c Twist#n causes you agonizing pain #7[#R%d#7]#n.",
damage);
act (buf, ch, NULL, victim, TO_VICT);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Soul Twist on you.", ch, NULL, victim, TO_VICT);
}
hurt_person (ch, victim, damage, aggy);
waiting (ch, 12);
return;
}
void
do_curse (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
OBJ_DATA *obj;
char arg[MIL];
char buf[MIL];
int critical = number_range (1, 4);
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch) && (!IS_DEMON (ch) || IS_ANGEL (ch)))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_DAIMOINON) < 4)
{
send_to_char ("You require level 4 Daimoinon to use Curse.\n\r", ch);
return;
}
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_majesty (ch, "");
if (arg[0] == '\0')
{
send_to_char ("Who do you wish to curse?\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They are not here.\n\r", ch);
return;
}
if (ch == victim)
{
send_to_char ("Now that would be really silly...\n\r", ch);
return;
}
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
waiting (ch, 12);
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Curse on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (limbsafe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Curse on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (IS_NPC (victim) && victim->pIndexData->vnum == 3011)
{
stc ("The executinor resists your attempt to Curse of his limb's.\n\r",
ch);
if (victim->fighting == NULL)
{
sprintf (buf,
"Heh, that was stupid %s, didn't anyone ever teach you not to pick a fight you can't win? Well time for me to teach you that lesson!",
ch->name);
do_shout (victim, buf);
}
do_kill (victim, ch->name);
return;
}
if (number_percent () > (18 - ch->vampgen) * get_disc (ch, DISC_DAIMOINON))
{
send_to_char ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Curse on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (critical == 1)
{
if (IS_ARM_L (victim, LOST_ARM))
{
send_to_char ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Curse on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
SET_BIT (victim->loc_hp[2], LOST_ARM);
if (IS_BLEEDING (victim, BLEEDING_HAND_L))
REMOVE_BIT (victim->loc_hp[6], BLEEDING_HAND_L);
send_to_char ("Your scream in agony as your left arm falls off!\n\r",
victim);
act ("$n screams in agony as $s left arm falls off!", victim, NULL,
NULL, TO_ROOM);
make_part (victim, "arm");
if (IS_ARM_L (victim, LOST_ARM) && IS_ARM_R (victim, LOST_ARM))
{
if ((obj = get_eq_char (victim, WEAR_ARMS)) != NULL)
take_item (victim, obj);
}
if ((obj = get_eq_char (victim, WEAR_HOLD)) != NULL)
take_item (victim, obj);
if ((obj = get_eq_char (victim, WEAR_HANDS)) != NULL)
take_item (victim, obj);
if ((obj = get_eq_char (victim, WEAR_WRIST_L)) != NULL)
take_item (victim, obj);
if ((obj = get_eq_char (victim, WEAR_FINGER_L)) != NULL)
take_item (victim, obj);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Curse on you.", ch, NULL, victim, TO_VICT);
}
if (IS_NPC (victim))
do_kill (victim, ch->name);
return;
}
else if (critical == 2)
{
if (IS_ARM_R (victim, LOST_ARM))
{
send_to_char ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Curse on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
SET_BIT (victim->loc_hp[3], LOST_ARM);
if (IS_BLEEDING (victim, BLEEDING_HAND_R))
REMOVE_BIT (victim->loc_hp[6], BLEEDING_HAND_R);
send_to_char ("Your scream in agony as your right arm falls off!\n\r",
victim);
act ("$n screams in agony as $s right arm falls off!", victim, NULL,
NULL, TO_ROOM);
make_part (victim, "arm");
if (IS_ARM_L (victim, LOST_ARM) && IS_ARM_R (victim, LOST_ARM))
{
if ((obj = get_eq_char (victim, WEAR_ARMS)) != NULL)
take_item (victim, obj);
}
if ((obj = get_eq_char (victim, WEAR_WIELD)) != NULL)
take_item (victim, obj);
if ((obj = get_eq_char (victim, WEAR_HANDS)) != NULL)
take_item (victim, obj);
if ((obj = get_eq_char (victim, WEAR_WRIST_R)) != NULL)
take_item (victim, obj);
if ((obj = get_eq_char (victim, WEAR_FINGER_R)) != NULL)
take_item (victim, obj);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Curse on you.", ch, NULL, victim, TO_VICT);
}
if (IS_NPC (victim))
do_kill (victim, ch->name);
return;
}
else if (critical == 3)
{
if (IS_LEG_L (victim, LOST_LEG))
{
send_to_char ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Curse on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
SET_BIT (victim->loc_hp[4], LOST_LEG);
if (IS_BLEEDING (victim, BLEEDING_FOOT_L))
REMOVE_BIT (victim->loc_hp[6], BLEEDING_FOOT_L);
send_to_char ("Your scream in agony as your left leg falls off!\n\r",
victim);
act ("$n screams in agony as $s left leg falls off!", victim, NULL,
NULL, TO_ROOM);
make_part (victim, "leg");
if (IS_LEG_L (victim, LOST_LEG) && IS_LEG_R (victim, LOST_LEG))
{
if ((obj = get_eq_char (victim, WEAR_LEGS)) != NULL)
take_item (victim, obj);
}
if ((obj = get_eq_char (victim, WEAR_FEET)) != NULL)
take_item (victim, obj);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Curse on you.", ch, NULL, victim, TO_VICT);
}
if (IS_NPC (victim))
do_kill (victim, ch->name);
return;
}
else if (critical == 4)
{
if (IS_LEG_R (victim, LOST_LEG))
{
send_to_char ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Curse on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
SET_BIT (victim->loc_hp[5], LOST_LEG);
if (IS_BLEEDING (victim, BLEEDING_FOOT_R))
REMOVE_BIT (victim->loc_hp[6], BLEEDING_FOOT_R);
send_to_char ("Your scream in agony as your right leg falls off!\n\r",
victim);
act ("$n screams in agony as $s right leg falls off!", victim, NULL,
NULL, TO_ROOM);
make_part (victim, "leg");
if (IS_LEG_L (victim, LOST_LEG) && IS_LEG_R (victim, LOST_LEG))
{
if ((obj = get_eq_char (victim, WEAR_LEGS)) != NULL)
take_item (victim, obj);
}
if ((obj = get_eq_char (victim, WEAR_FEET)) != NULL)
take_item (victim, obj);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Curse on you.", ch, NULL, victim, TO_VICT);
}
if (IS_NPC (victim))
do_kill (victim, ch->name);
return;
}
send_to_char ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Curse on you.", ch, NULL, victim, TO_VICT);
}
return;
}
void
do_conditioning (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_DOMINATE) < 2)
{
send_to_char ("You require level 2 Dominate to use Conditioning.\n\r",
ch);
return;
}
if (arg[0] == '\0')
{
stc ("Condition Who?\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
if (ch == victim)
{
send_to_char ("You can't condition yourself!\n\r", ch);
return;
}
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (is_safe (ch, victim))
return;
if (IS_ITEMAFF (victim, ITEMA_SHADES) || IS_ITEMAFF (ch, ITEMA_SHADES) ||
!can_see (victim, ch))
{
if (!IS_SET (ch->act, PLR_HOLYLIGHT)
&& get_disc (ch, DISC_DOMINATE) < 6)
{
send_to_char ("You are unable to make eye contact with them.\n\r",
ch);
return;
}
}
act ("You stare deeply into $N's eyes.", ch, NULL, victim, TO_CHAR);
act ("$n stares deeply into $N's eyes.", ch, NULL, victim, TO_NOTVICT);
act ("$n stares deeply into your eyes.", ch, NULL, victim, TO_VICT);
if (strlen (victim->pcdata->conding) > 2 &&
!str_cmp (victim->pcdata->conding, ch->name))
{
free_string (victim->pcdata->conding);
victim->pcdata->conding = str_dup ("");
REMOVE_BIT (victim->more, MORE_LOYAL);
act ("You remove $N's conditioning.", ch, NULL, victim, TO_CHAR);
act ("$n removes your conditioning.", ch, NULL, victim, TO_VICT);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Conditioning on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (!IS_NPC (victim) && IS_VAMPIRE (victim)
&& victim->vampgen < ch->vampgen)
{
act ("You shake off $N's attempt to Condition you.", victim, NULL, ch,
TO_CHAR);
act ("$n shakes off $N's attempt to Condition $m.", victim, NULL, ch,
TO_NOTVICT);
act ("$n shakes off your attempt to Condition $m.", victim, NULL, ch,
TO_VICT);
act ("$s mind is too strong to overcome.", victim, NULL, ch, TO_VICT);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Conditioning on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (!IS_NPC (victim) && victim->pcdata->resist[WILL_DOMINATE] > 0)
{
act ("You shake off $N's attempt to Condition you.", victim, NULL, ch,
TO_CHAR);
act ("$n shakes off $N's attempt to Condition $m.", victim, NULL, ch,
TO_NOTVICT);
act ("$n shakes off your attempt to Condition $m.", victim, NULL, ch,
TO_VICT);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Conditioning on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (!IS_NPC (victim) && ((victim->pcdata->willpower[0] >= 2 &&
IS_MORE (victim, MORE_LOYAL))
|| victim->pcdata->willpower[0] >= 5)
&& strlen (victim->pcdata->conding) > 1)
{
if (IS_MORE (victim, MORE_LOYAL))
victim->pcdata->willpower[0] -= 2;
else
victim->pcdata->willpower[0] -= 5;
victim->pcdata->resist[WILL_DOMINATE] = 60;
send_to_char ("You burn some willpower to resist Conditioning.\n\r",
victim);
act ("You shake off $N's attempt to Condition you.", victim, NULL, ch,
TO_CHAR);
act ("$n shakes off $N's attempt to Condition $m.", victim, NULL, ch,
TO_NOTVICT);
act ("$n shakes off your attempt to Condition $m.", victim, NULL, ch,
TO_VICT);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Conditioning on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (!IS_NPC (victim) && IS_WILLPOWER (victim, RES_DOMINATE) &&
victim->pcdata->willpower[0] >= 10)
{
victim->pcdata->willpower[0] -= 10;
victim->pcdata->resist[WILL_DOMINATE] = 60;
if (!IS_WILLPOWER (victim, RES_TOGGLE))
REMOVE_BIT (victim->pcdata->resist[0], RES_DOMINATE);
send_to_char ("You burn some willpower to resist Conditioning.\n\r",
victim);
act ("You shake off $N's attempt to Condition you.", victim, NULL, ch,
TO_CHAR);
act ("$n shakes off $N's attempt to Condition $m.", victim, NULL, ch,
TO_NOTVICT);
act ("$n shakes off your attempt to Condition $m.", victim, NULL, ch,
TO_VICT);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Conditioning on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (strlen (victim->pcdata->conding) > 1)
{
free_string (victim->pcdata->conding);
victim->pcdata->conding = str_dup ("");
REMOVE_BIT (victim->more, MORE_LOYAL);
act ("You remove $N's conditioning.", ch, NULL, victim, TO_CHAR);
act ("$n removes your conditioning.", ch, NULL, victim, TO_VICT);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Conditioning on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
free_string (victim->pcdata->conding);
victim->pcdata->conding = str_dup (ch->name);
REMOVE_BIT (victim->more, MORE_LOYAL);
act ("You condition $N's mind.", ch, NULL, victim, TO_CHAR);
act ("$n conditions your mind.", ch, NULL, victim, TO_VICT);
waiting (ch, 12);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Conditioning on you.", ch, NULL, victim, TO_VICT);
}
return;
}
int
true_generation (CHAR_DATA * ch, char *argument)
{
char arg1[MIL];
char arg2[MIL];
char arg3[MIL];
char arg4[MIL];
char arg5[MIL];
char arg6[MIL];
char arg7[MIL];
char arg8[MIL];
char arg9[MIL];
char arg10[MIL];
char arg11[MIL];
char arg12[MIL];
int vampgen = 1;
argument = one_argument (argument, arg1);
argument = one_argument (argument, arg2);
argument = one_argument (argument, arg3);
argument = one_argument (argument, arg4);
argument = one_argument (argument, arg5);
argument = one_argument (argument, arg6);
argument = one_argument (argument, arg7);
argument = one_argument (argument, arg8);
argument = one_argument (argument, arg9);
argument = one_argument (argument, arg10);
argument = one_argument (argument, arg11);
argument = one_argument (argument, arg12);
if (IS_NPC (ch))
return 0;
if (arg1[0] != '\0')
{
arg1[0] = UPPER (arg1[0]);
vampgen = 2;
}
if (arg2[0] != '\0')
{
arg2[0] = UPPER (arg2[0]);
vampgen = 3;
}
if (arg3[0] != '\0')
{
arg3[0] = UPPER (arg3[0]);
vampgen = 4;
}
if (arg4[0] != '\0')
{
arg4[0] = UPPER (arg4[0]);
vampgen = 5;
}
if (arg5[0] != '\0')
{
arg5[0] = UPPER (arg5[0]);
vampgen = 6;
}
if (arg6[0] != '\0')
{
arg6[0] = UPPER (arg6[0]);
vampgen = 7;
}
if (arg7[0] != '\0')
{
arg7[0] = UPPER (arg7[0]);
vampgen = 8;
}
if (arg8[0] != '\0')
{
arg8[0] = UPPER (arg8[0]);
vampgen = 9;
}
if (arg9[0] != '\0')
{
arg9[0] = UPPER (arg9[0]);
vampgen = 10;
}
if (arg10[0] != '\0')
{
arg10[0] = UPPER (arg10[0]);
vampgen = 11;
}
if (arg11[0] != '\0')
{
arg11[0] = UPPER (arg11[0]);
vampgen = 12;
}
if (arg12[0] != '\0')
{
arg12[0] = UPPER (arg12[0]);
vampgen = 13;
}
return vampgen;
}
/*
void do_status( CHAR_DATA *ch, char *argument )
{
if (IS_NPC(ch)) return;
if (ch->race > 0)
{
send_to_char("You already have a reputation.\n\r",ch);
return;
}
if (ch->race < 0)
{
send_to_char("Your reputation is too bad already.\n\r",ch);
return;
}
if (ch->exp < 1)
{
send_to_char("It costs 1 exp to make yourself Known.\n\r",ch);
return;
}
ch->race = 1;
ch->exp--;
send_to_char("You are now Known.\n\r",ch);
return;
}
*/
void
do_tongue (CHAR_DATA * ch, char *argument)
{
char arg[MIL];
CHAR_DATA *victim;
OBJ_DATA *obj;
int dam;
int stance;
one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_SERPENTIS) < 1)
{
send_to_char
("You require level 1 Serpentis to use Tongue of the Serpent.\n\r",
ch);
return;
}
if (arg[0] == '\0' && ch->fighting == NULL)
{
send_to_char ("Who do you wish to use Tongue of the Serpent on?\n\r",
ch);
return;
}
if ((victim = ch->fighting) == NULL)
{
if ((victim = get_char_room (ch, arg)) == NULL)
{
if ((obj = get_obj_carry (ch, arg)) != NULL)
{
if (obj->item_type != ITEM_WEAPON)
{
send_to_char
("You can only poison weapons with your serpentine tongue.\n\r",
ch);
return;
}
if (obj->value[0] != 0)
{
send_to_char ("This weapon cannot be poisoned.\n\r", ch);
return;
}
act
("You run your long serpentine tongue along $p, poisoning it.",
ch, obj, NULL, TO_CHAR);
act
("$n runs $s long serpentine tongue along $p, poisoning it.",
ch, obj, NULL, TO_ROOM);
obj->level = 5 * get_disc (ch, DISC_SERPENTIS);
obj->value[0] = 53;
return;
}
send_to_char ("They aren't here.\n\r", ch);
return;
}
}
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_majesty (ch, "");
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Tongue of the Serpent on you.", ch,
NULL, victim, TO_VICT);
}
return;
}
waiting (ch, 9);
dam = number_range (10, 20);
dam += char_damroll (ch);
if (dam == 0)
dam = 1;
if (!IS_AWAKE (victim))
dam *= 2;
if (!IS_NPC (ch) && get_disc (ch, DISC_POTENCE) > 0)
dam += dam * get_disc (ch, DISC_POTENCE) * 0.5;
else if (!IS_NPC (ch) && (IS_DEMON (ch)) &&
IS_SET (ch->pcdata->disc[C_POWERS], DEM_MIGHT))
dam *= 1.5;
if (!IS_NPC (ch))
dam = dam + (dam * ((ch->wpn[0]) * 0.01));
/*
if ( !IS_NPC(ch) )
*/
{
stance = ch->stance[0];
if (IS_STANCE (ch, STANCE_NORMAL))
dam *= 1.25;
else
dam = dambonus (ch, victim, dam, stance);
}
if (dam <= 0)
dam = 1;
damage (ch, victim, dam, gsn_tongue, DAM_NORMAL, FALSE, TRUE, TRUE);
return;
}
void
do_mummify (CHAR_DATA * ch, char *argument)
{
OBJ_DATA *obj;
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_SERPENTIS) < 2)
{
send_to_char ("You require level 2 Serpentis to Mummify yourself.\n\r",
ch);
return;
}
if (has_artifact (ch))
{
stc ("Not with an artifact.\n\r", ch);
return;
}
if (has_fighttimer (ch))
return;
if ((obj = ch->pcdata->chobj) != NULL && IS_EXTRA (ch, EXTRA_OSWITCH))
{
REMOVE_BIT (ch->more, MORE_MUMMIFIED);
ch->pcdata->obj_vnum = 0;
obj->chobj = NULL;
ch->pcdata->chobj = NULL;
REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
REMOVE_BIT (ch->extra, EXTRA_OSWITCH);
free_string (ch->morph);
ch->morph = str_dup ("");
act ("$p clambers to $s feet.", ch, obj, NULL, TO_ROOM);
act ("Your body unshrivels and returns to normal.", ch, obj, NULL,
TO_CHAR);
extract_obj (obj);
if (ch->in_room->vnum == ROOM_VNUM_IN_OBJECT)
{
char_from_room (ch);
char_to_room (ch, get_room_index (ROOM_VNUM_HELL));
}
return;
}
if (IS_AFFECTED (ch, AFF_POLYMORPH))
{
send_to_char ("You cannot do this while polymorphed.\n\r", ch);
return;
}
if ((obj = create_object (get_obj_index (OBJ_VNUM_CORPSE_PC), 0)) == NULL)
{
send_to_char ("Bug - please inform Corim.\n\r", ch);
return;
}
mummify_corpse (ch, obj);
if (ch->mounted == IS_RIDING)
do_dismount (ch, "");
obj_to_room (obj, ch->in_room);
SET_BIT (obj->quest, QUEST_VANISH);
act ("$n shrivels up and falls to the ground.", ch, NULL, NULL, TO_ROOM);
act ("You shrivel up and fall to the ground.", ch, NULL, NULL, TO_CHAR);
ch->pcdata->obj_vnum = OBJ_VNUM_CORPSE_PC;
obj->chobj = ch;
ch->pcdata->chobj = obj;
SET_BIT (ch->more, MORE_MUMMIFIED);
SET_BIT (ch->affected_by, AFF_POLYMORPH);
SET_BIT (ch->extra, EXTRA_OSWITCH);
free_string (ch->morph);
ch->morph = str_dup (obj->short_descr);
return;
}
void
mummify_corpse (CHAR_DATA * ch, OBJ_DATA * obj)
{
char buf[MSL];
if (IS_NPC (ch))
return;
if (obj->pIndexData->vnum != OBJ_VNUM_CORPSE_PC)
{
send_to_char ("Bug - please inform Corim.\n\r", ch);
return;
}
sprintf (buf, obj->short_descr, ch->name);
free_string (obj->short_descr);
obj->short_descr = str_dup (buf);
sprintf (buf, obj->description, ch->name);
free_string (obj->description);
obj->description = str_dup (buf);
SET_BIT (obj->quest, QUEST_VANISH);
return;
}
void
staked_corpse (CHAR_DATA * ch, OBJ_DATA * obj)
{
char buf[MSL];
if (IS_NPC (ch))
return;
if (obj->pIndexData->vnum != OBJ_VNUM_CORPSE_PC)
{
send_to_char ("Bug - please inform Corim.\n\r", ch);
return;
}
sprintf (buf, "corpse body %s", ch->name);
free_string (obj->name);
obj->name = str_dup (buf);
sprintf (buf, obj->short_descr, ch->name);
free_string (obj->short_descr);
obj->short_descr = str_dup (buf);
sprintf (buf,
"The body of %s is lying here with a stake through its chest.",
ch->name);
free_string (obj->description);
obj->description = str_dup (buf);
obj->weight = 150;
obj->wear_flags = ITEM_TAKE;
SET_BIT (obj->quest, QUEST_VANISH);
return;
}
void
do_baal (CHAR_DATA * ch, char *argument)
{
AFFECT_DATA af;
int sn, blood, potence, celerity, fortitude;
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_DAIMOINON) < 9)
{
send_to_char
("You require level 9 Daimoinon to become Baal's Avatar.\n\r", ch);
return;
}
if (is_affected (ch, gsn_demon))
{
send_to_char ("You are already possessed by the spirit of Baal.\n\r",
ch);
return;
}
if (get_disc (ch, DISC_POTENCE) < 5)
potence = 5 - get_disc (ch, DISC_POTENCE);
else if (get_disc (ch, DISC_POTENCE) < 10)
potence = 1;
else
potence = 0;
if (get_disc (ch, DISC_CELERITY) < 5)
celerity = 5 - get_disc (ch, DISC_CELERITY);
else if (get_disc (ch, DISC_CELERITY) < 10)
celerity = 1;
else
celerity = 0;
if (get_disc (ch, DISC_FORTITUDE) < 5)
fortitude = 5 - get_disc (ch, DISC_FORTITUDE);
else if (get_disc (ch, DISC_FORTITUDE) < 10)
fortitude = 1;
else
fortitude = 0;
blood = (potence + celerity + fortitude) * 10;
if (blood < 1)
{
send_to_char ("The spirit of Baal doesn't answer your call.\n\r", ch);
return;
}
if (ch->blood[0] < blood)
{
send_to_char ("You have insufficient blood.\n\r", ch);
return;
}
ch->blood[0] -= blood;
if ((sn = skill_lookup ("demonic possession")) < 0)
return;
af.type = sn;
af.duration = get_disc (ch, DISC_DAIMOINON);
af.bitvector = 0;
if (potence > 0)
{
af.location = APPLY_POTENCE;
af.modifier = potence;
affect_to_char (ch, &af);
}
if (celerity > 0)
{
af.location = APPLY_CELERITY;
af.modifier = celerity;
affect_to_char (ch, &af);
}
if (fortitude > 0)
{
af.location = APPLY_FORTITUDE;
af.modifier = fortitude;
affect_to_char (ch, &af);
}
act ("$n's eyes burn with unholy strength!", ch, NULL, NULL, TO_ROOM);
send_to_char
("Your eyes glow as you are infused with some of the power of Baal!\n\r",
ch);
waiting (ch, 12);
return;
}
void
do_servant (CHAR_DATA * ch, char *argument)
{
char buf[MIL];
CHAR_DATA *victim;
AFFECT_DATA af;
int sn;
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_DAIMOINON) < 8)
{
send_to_char
("You require level 8 Daimoinon to summon a Demonic Servant.\n\r",
ch);
return;
}
if (ch->pcdata->followers > 4)
{
send_to_char ("Nothing happens.\n\r", ch);
return;
}
if ((sn = skill_lookup ("guardian")) < 0)
{
send_to_char ("Bug - please inform Corim.\n\r", ch);
return;
}
ch->pcdata->followers++;
victim = create_mobile (get_mob_index (MOB_VNUM_GUARDIAN));
char_to_room (victim, get_room_index (ROOM_VNUM_DISCONNECTION));
free_string (victim->lord);
victim->lord = str_dup (ch->name);
free_string (victim->name);
victim->name = str_dup ("demon servant");
free_string (victim->short_descr);
victim->short_descr = str_dup ("a demonic servant");
free_string (victim->long_descr);
victim->long_descr =
str_dup ("A demonic servant stands here, awaiting orders.\n\r");
victim->sex = 1;
victim->alignment = -1000;
free_string (victim->description);
victim->description = str_dup ("He looks extremely powerful.\n\r");
victim->level = 250 * get_disc (ch, DISC_DAIMOINON);
victim->hit = 300000;
victim->max_hit = 300000;
victim->mana = 0;
victim->max_mana = 1000;
victim->move = 1000;
victim->max_move = 1000;
victim->hitroll = char_hitroll (ch) - 20;
victim->damroll = char_damroll (ch) - 20;
victim->armor = char_ac (ch) + 100;
char_from_room (victim);
char_to_room (victim, ch->in_room);
strcpy (buf, "Come forth, creature of darkness, and do my bidding!");
do_say (ch, buf);
send_to_char ("A demon bursts from the ground and bows before you.\n\r",
ch);
act ("$N bursts from the ground and bows before $n.", ch, NULL, victim,
TO_ROOM);
add_follower (victim, ch);
af.type = sn;
af.duration = -666;
af.location = APPLY_NONE;
af.modifier = 0;
af.bitvector = AFF_CHARM;
affect_to_char (victim, &af);
return;
}
void
do_controlbeast (CHAR_DATA * ch, char *argument)
{
char arg[MIL];
char buf[MSL];
int cost = (100 - ch->truebeast);
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (ch->pcdata->vamprage > 0)
{
send_to_char ("Not while the beast is in control!\n\r", ch);
return;
}
if (ch->beast > 99 || ch->truebeast > 99)
{
send_to_char ("The beast has already taken over.\n\r", ch);
return;
}
if (ch->pcdata->diableries[DIAB_EVER] > 0)
{
send_to_char
("Those who drink of the hearts blood may not attain Golconda.\n\r",
ch);
return;
}
if (ch->beast < 1)
{
send_to_char ("But you have already attained Golconda!\n\r", ch);
return;
}
if (ch->truebeast < 1)
{
send_to_char
("You are unable to exert any further control over your beast.\n\r",
ch);
return;
}
if (ch->practice < cost)
{
sprintf (buf, "You need %d primal to try and control your beast.\n\r",
cost);
send_to_char (buf, ch);
return;
}
if (arg[0] == '\0' || str_cmp (arg, "buy"))
{
sprintf (buf,
"To lower your beast for the cost of %d primal, type: 'controlbeast buy'.\n\r",
cost);
send_to_char (buf, ch);
return;
}
ch->practice -= cost;
ch->truebeast--;
send_to_char ("You exert some control over your beast.\n\r", ch);
return;
}
void
do_shroudnight (CHAR_DATA * ch, char *argument)
{
char buf[MIL];
if (IS_NPC (ch))
return;
if (IS_ABOMINATION (ch))
{
if (get_disc (ch, DISC_OBTENEBRATION) < 1
&& get_tribe (ch, TRIBE_UKTENA) < 1)
{
send_to_char
("You require either level 1 Uktena or level 1 Obtenebration to summon darkness.\n\r",
ch);
return;
}
}
else if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch) && !IS_WRAITH (ch))
{
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_tribe (ch, TRIBE_UKTENA) < 1)
{
send_to_char
("You require the level 1 power of the Uktena to call the Shroud of Night.\n\r",
ch);
return;
}
}
else if (!IS_WEREWOLF (ch) && get_disc (ch, DISC_OBTENEBRATION) < 1
&& !IS_WRAITH (ch))
{
send_to_char
("You require level 1 Obtenebration to use Shroud of Night.\n\r", ch);
return;
}
if (IS_WRAITH (ch) && ch->pcdata->powers[WRA_EMBO] < 5)
{
stc ("You need level 5 embody to use shroud!\n\r", ch);
return;
}
if (ch->in_room == NULL)
{
send_to_char ("Nothing happens.\n\r", ch);
return;
}
if (IS_MORE (ch, MORE_DARKNESS))
{
REMOVE_BIT (ch->more, MORE_DARKNESS);
REMOVE_BIT (ch->in_room->room_flags, ROOM_TOTAL_DARKNESS);
send_to_char ("You banish the darkness from the room!\n\r", ch);
act ("A look of concentration crosses $n's face.", ch, NULL, NULL,
TO_ROOM);
act ("$n banishes the darkness from the room!", ch, NULL, NULL,
TO_ROOM);
ch->pcdata->darkness = 60;
return;
}
if (IS_SET (ch->in_room->room_flags, ROOM_TOTAL_DARKNESS))
{
send_to_char ("The room is already in darkness.\n\r", ch);
return;
}
if (IS_SET (ch->in_room->room_flags, ROOM_DJINN_DARKNESS))
{
send_to_char ("The room is already in darkness.\n\r", ch);
return;
}
if (ch->pcdata->darkness > 0)
{
if (ch->pcdata->darkness > 1)
sprintf (buf,
"You cannot call upon the Shroud of Night for another %s.\n\r",
get_time (ch->pcdata->darkness, ""));
else
sprintf (buf,
"You cannot call upon the Shroud of Night for another 1 second.\n\r");
send_to_char (buf, ch);
return;
}
SET_BIT (ch->in_room->room_flags, ROOM_TOTAL_DARKNESS);
SET_BIT (ch->more, MORE_DARKNESS);
ch->pcdata->darkness = 60;
send_to_char ("You call forth the Shroud of Night to darken the room!\n\r",
ch);
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
act ("The room is filled with darkness!", ch, NULL, NULL, TO_ROOM);
return;
}
void
do_silencedeath (CHAR_DATA * ch, char *argument)
{
char buf[MIL];
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch) && !IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (IS_WEREWOLF (ch) && !IS_ABOMINATION (ch))
{
if (get_auspice (ch, AUSPICE_RAGABASH) < 3)
{
stc ("You need level 3 in the Ragabash gift to use this power.\n\r",
ch);
return;
}
}
else
{
if (get_disc (ch, DISC_QUIETUS) < 1)
{
send_to_char
("You require level 1 Quietus to use Silence of Death.\n\r", ch);
return;
}
}
if (ch->in_room == NULL)
{
send_to_char ("Nothing happens.\n\r", ch);
return;
}
if (IS_MORE (ch, MORE_SILENCE))
{
REMOVE_BIT (ch->more, MORE_SILENCE);
REMOVE_BIT (ch->in_room->added_flags, ROOM2_SILENCE);
send_to_char ("You banish the silence from the room!\n\r", ch);
act ("A look of concentration crosses $n's face.", ch, NULL, NULL,
TO_ROOM);
act ("The room is no longer silent.", ch, NULL, NULL, TO_ROOM);
ch->pcdata->silence = 60;
return;
}
if (IS_SET (ch->in_room->added_flags, ROOM2_SILENCE))
{
send_to_char ("The room is already silent.\n\r", ch);
return;
}
if (ch->pcdata->silence > 0)
{
if (ch->pcdata->silence > 1)
sprintf (buf,
"You cannot call upon the Silence of Death for another %s.\n\r",
get_time (ch->pcdata->silence, ""));
else
sprintf (buf,
"You cannot call upon the Silence of Death for another 1 second.\n\r");
send_to_char (buf, ch);
return;
}
SET_BIT (ch->in_room->added_flags, ROOM2_SILENCE);
SET_BIT (ch->more, MORE_SILENCE);
ch->pcdata->silence = 60;
send_to_char ("You call forth the Silence of Death!\n\r", ch);
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
act ("The room suddenly goes completely silent!", ch, NULL, NULL, TO_ROOM);
return;
}
void
do_weakness (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
AFFECT_DATA af;
char arg[MIL];
int sn;
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_QUIETUS) < 2)
{
send_to_char ("You require level 2 Quietus to use Weakness.\n\r", ch);
return;
}
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_majesty (ch, "");
if (arg[0] == '\0')
{
send_to_char ("Who do you wish to use Weakness on?\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
if (ch == victim)
{
send_to_char ("Now that would just be plain stupid...\n\r", ch);
return;
}
if ((sn = skill_lookup ("weakness")) < 0)
{
send_to_char ("Bug - please inform Corim.\n\r", ch);
return;
}
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Weakness on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
send_to_char ("You feel weaker!\n\r", victim);
act ("$n looks weaker.", victim, NULL, NULL, TO_ROOM);
af.type = sn;
af.location = APPLY_STR;
af.modifier = 0 - get_disc (ch, DISC_QUIETUS);
af.duration = number_range (1, 2);
af.bitvector = 0;
affect_join (victim, &af);
waiting (ch, 12);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Weakness on you.", ch, NULL, victim, TO_VICT);
}
return;
}
void
do_infirmity (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
AFFECT_DATA af;
char arg[MIL];
int sn;
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_QUIETUS) < 3)
{
send_to_char ("You require level 3 Quietus to use Infirmity.\n\r", ch);
return;
}
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_majesty (ch, "");
if (arg[0] == '\0')
{
send_to_char ("Who do you wish to use Infirmity on?\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
if (ch == victim)
{
send_to_char ("Now that would just be plain stupid...\n\r", ch);
return;
}
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Infirmity on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if ((sn = skill_lookup ("weakness")) < 0)
{
send_to_char ("Bug - please inform Corim.\n\r", ch);
return;
}
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
send_to_char ("You feel weaker!\n\r", victim);
send_to_char ("You feel slower!\n\r", victim);
send_to_char ("You feel less healthy!\n\r", victim);
act ("$n looks weaker.", victim, NULL, NULL, TO_ROOM);
act ("$n looks slower.", victim, NULL, NULL, TO_ROOM);
act ("$n looks less healthy.", victim, NULL, NULL, TO_ROOM);
af.type = sn;
af.location = APPLY_STR;
af.modifier = 0 - get_disc (ch, DISC_QUIETUS);
af.duration = number_range (1, 2);
af.bitvector = 0;
affect_join (victim, &af);
if ((sn = skill_lookup ("slowness")) < 0)
{
send_to_char ("Bug - please inform Corim.\n\r", ch);
return;
}
af.type = sn;
af.location = APPLY_DEX;
af.modifier = 0 - get_disc (ch, DISC_QUIETUS);
af.duration = number_range (1, 2);
af.bitvector = 0;
affect_join (victim, &af);
if ((sn = skill_lookup ("infirmity")) < 0)
{
send_to_char ("Bug - please inform Corim.\n\r", ch);
return;
}
af.type = sn;
af.location = APPLY_CON;
af.modifier = 0 - get_disc (ch, DISC_QUIETUS);
af.duration = number_range (1, 2);
af.bitvector = 0;
affect_join (victim, &af);
waiting (ch, 6);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Infirmity on you.", ch, NULL, victim, TO_VICT);
}
return;
}
void
do_bloodagony (CHAR_DATA * ch, char *argument)
{
OBJ_DATA *obj;
char arg[MIL];
char buf[MIL];
CHAR_DATA *victim;
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_QUIETUS) < 4)
{
send_to_char ("You require level 4 Quietus to use Blood Agony.\n\r",
ch);
return;
}
if (ch->pcdata->bpoints > 0)
{
if (ch->pcdata->bpoints > 1)
sprintf (buf, "You cannot use Blood Agony for another %s.\n\r",
get_time (ch->pcdata->bpoints, ""));
else
sprintf (buf, "You cannot use Blood Agony for another 1 second.\n\r");
send_to_char (buf, ch);
return;
}
if (ch->blood[BLOOD_CURRENT] < 10)
{
send_to_char ("You have insufficient blood.\n\r", ch);
return;
}
if (arg[0] == '\0')
{
send_to_char ("What weapon do you wish to use Blood Agony on?\n\r", ch);
return;
}
if (IS_IKIRYU (ch))
{
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("no one by that name.\n\r", ch);
return;
}
if (!IS_NPC (victim))
{
stc ("Thats not a mob!\n\r", ch);
return;
}
if (victim->level > 500)
{
act ("$N is to strong for that.\n\r", ch, NULL, victim, TO_CHAR);
return;
}
if (is_safe (ch, victim))
return;
act ("$n stares at $N, and suddenly $N explodes!", ch, NULL, victim,
TO_ROOM);
act ("you stare at $N, and suddenly $N explodes!", ch, NULL, victim,
TO_CHAR);
raw_kill (victim, ch);
do_bloodagonymob (ch, "");
return;
}
if ((obj = get_obj_carry (ch, arg)) == NULL)
{
send_to_char ("You are not carrying that object.\n\r", ch);
return;
}
if (IS_SET (obj->extra_flags, ITEM_VANISH))
{
stc ("Not on Illusions.\n\r", ch);
return;
}
if (IS_SET (obj->quest, QUEST_BLOODAGONY))
{
send_to_char ("This weapon is already covered in blood.\n\r", ch);
return;
}
if (obj->item_type != ITEM_WEAPON)
{
send_to_char ("You may only use Blood Agony on a weapon.\n\r", ch);
return;
}
if (IS_SET (obj->quest, QUEST_BLOODAGONY)
|| IS_SET (obj->quest, QUEST_ARTIFACT) || obj->chobj != NULL)
{
send_to_char ("You are unable to smear any blood on this weapon.\n\r",
ch);
return;
}
act ("You cut open your wrist and smear some blood onto $p.", ch, obj, NULL,
TO_CHAR);
act ("$n cuts open $s wrist and smears some blood onto $p.", ch, obj, NULL,
TO_ROOM);
SET_BIT (obj->quest, QUEST_BLOODAGONY);
ch->blood[BLOOD_CURRENT] -= 10;
ch->pcdata->bpoints = 60;
SET_BIT (obj->spectype, SITEM_MESSAGE);
free_string (obj->chpoweruse);
obj->chpoweruse = str_dup ("A few drops of #rblood#n drip from $p.");
free_string (obj->victpoweruse);
obj->victpoweruse =
str_dup ("A few drops of #rblood#n drip from $p carried by $n.");
obj->specpower = get_disc (ch, DISC_QUIETUS) * 800;
return;
}
void
do_spit (CHAR_DATA * ch, char *argument)
{
char arg[MIL];
CHAR_DATA *victim;
OBJ_DATA *obj_lose;
OBJ_DATA *obj_next;
int max, i;
int dam = 0;
int stance;
one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_QUIETUS) < 5)
{
send_to_char ("You require level 5 Quietus to use Taste of Death.\n\r",
ch);
return;
}
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_majesty (ch, "");
if (arg[0] == '\0' && ch->fighting == NULL)
{
send_to_char ("Who do you wish to use Taste of Death on?\n\r", ch);
return;
}
if ((victim = ch->fighting) == NULL)
{
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
}
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Taste of Death on you.", ch, NULL,
victim, TO_VICT);
}
return;
}
if (ch->blood[BLOOD_CURRENT] < 10)
{
stc ("You dont have enough blood to use that power.\n\r", ch);
return;
}
waiting (ch, 12);
dam = number_range (10, 20);
dam += char_damroll (ch);
if (dam == 0)
dam = 1;
if (!IS_AWAKE (victim))
dam *= 2;
if (!IS_NPC (ch) && get_disc (ch, DISC_POTENCE) > 0)
dam += dam * get_disc (ch, DISC_POTENCE) * 0.5;
else if (!IS_NPC (ch) && IS_DEMON (ch) &&
IS_SET (ch->pcdata->disc[C_POWERS], DEM_MIGHT))
dam *= 1.5;
if (!IS_NPC (ch))
dam = dam + (dam * ((ch->wpn[0]) * 0.01));
stance = ch->stance[0];
if (IS_STANCE (ch, STANCE_NORMAL))
dam *= 1.25;
else
dam = dambonus (ch, victim, dam, stance);
if (dam <= 0)
dam = 1;
ch->blood[BLOOD_CURRENT] -= 10;
max = number_range (2, (7 - ch->vampgen));
if (max < 1)
max = 1;
for (i = 0; i < max; i++)
damage (ch, victim, dam, gsn_spit, DAM_ACID, TRUE, TRUE, TRUE);
if (number_percent () < get_disc (ch, DISC_QUIETUS))
{
for (obj_lose = victim->carrying; obj_lose != NULL; obj_lose = obj_next)
{
obj_next = obj_lose->next_content;
if (number_bits (2) != 0)
continue;
if (IS_SET (obj_lose->quest, QUEST_SPELLPROOF))
continue;
switch (obj_lose->item_type)
{
case ITEM_ARMOR:
if (obj_lose->condition > 0)
{
act ("$p is pitted and etched!",
victim, obj_lose, NULL, TO_CHAR);
obj_lose->condition -= 25;
if (obj_lose->condition < 1)
extract_obj (obj_lose);
}
break;
case ITEM_SCROLL:
case ITEM_WAND:
case ITEM_STAFF:
case ITEM_TRASH:
case ITEM_POTION:
case ITEM_FURNITURE:
case ITEM_FOOD:
case ITEM_BOAT:
case ITEM_PILL:
case ITEM_CORPSE_NPC:
case ITEM_DRINK_CON:
act ("$p fumes and dissolves!",
victim, obj_lose, NULL, TO_CHAR);
extract_obj (obj_lose);
break;
}
}
}
return;
}
void
do_shadowbody (CHAR_DATA * ch, char *argument)
{
char buf[MSL];
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (has_fighttimer (ch))
return;
if (get_disc (ch, DISC_OBTENEBRATION) < 3)
{
send_to_char
("You require level 3 Obtenebration to transform into your Shadow Body.\n\r",
ch);
return;
}
if (IS_AFFECTED (ch, AFF_POLYMORPH) && !IS_POLYAFF (ch, POLY_SHADOW))
{
send_to_char ("Not while polymorphed.\n\r", ch);
return;
}
else if (IS_POLYAFF (ch, POLY_SHADOW))
{
REMOVE_BIT (ch->polyaff, POLY_SHADOW);
REMOVE_BIT (ch->affected_by, AFF_ETHEREAL);
act ("You transform into human form.", ch, NULL, NULL, TO_CHAR);
act ("$n transforms into human form.", ch, NULL, NULL, TO_ROOM);
REMOVE_BIT (ch->affected_by, AFF_POLYMORPH);
free_string (ch->morph);
ch->morph = str_dup ("");
}
else
{
if (ch->stance[0] != -1)
do_stance (ch, "");
if (ch->mounted == IS_RIDING)
do_dismount (ch, "");
act ("You transform into a black smoke.", ch, NULL, NULL, TO_CHAR);
act ("$n transforms into a black smoke.", ch, NULL, NULL, TO_ROOM);
if (IS_EXTRA (ch, TIED_UP))
{
act ("The ropes binding you fall through your ethereal form.", ch,
NULL, NULL, TO_CHAR);
act ("The ropes binding $n fall through $s ethereal form.", ch,
NULL, NULL, TO_ROOM);
REMOVE_BIT (ch->extra, TIED_UP);
REMOVE_BIT (ch->extra, GAGGED);
REMOVE_BIT (ch->extra, BLINDFOLDED);
}
if (is_affected (ch, gsn_web))
{
act ("The webbing entrapping $n falls through $s ethereal form.",
ch, NULL, NULL, TO_ROOM);
send_to_char
("The webbing entrapping you falls through your ethereal form.\n\r",
ch);
affect_strip (ch, gsn_web);
}
if (is_affected (ch, gsn_uberweb))
{
act ("The webbing entrapping $n falls through $s ethereal form.",
ch, NULL, NULL, TO_ROOM);
send_to_char
("The webbing entrapping you falls through your ethereal form.\n\r",
ch);
affect_strip (ch, gsn_uberweb);
}
if (is_affected (ch, gsn_jail))
{
act ("The band of water entrapping $n splash to the ground.", ch,
NULL, NULL, TO_ROOM);
send_to_char
("The bands of water entrapping you splash to the ground.\n\r",
ch);
affect_strip (ch, gsn_jail);
}
if (IS_AFFECTED (ch, AFF_JAIL))
{
act ("The band of water entrapping $n splash to the ground.", ch,
NULL, NULL, TO_ROOM);
send_to_char
("The bands of water entrapping you splash to the ground.\n\r",
ch);
REMOVE_BIT (ch->affected_by, AFF_JAIL);
}
SET_BIT (ch->polyaff, POLY_SHADOW);
SET_BIT (ch->affected_by, AFF_POLYMORPH);
SET_BIT (ch->affected_by, AFF_ETHEREAL);
sprintf (buf, "%s the black smoke", ch->name);
free_string (ch->morph);
ch->morph = str_dup (buf);
}
return;
}
void
do_arms (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
int sn;
int level;
int spelltype;
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_OBTENEBRATION) < 2)
{
send_to_char
("You require level 2 Obtenebration to use Arms of the Abyss.\n\r",
ch);
return;
}
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_majesty (ch, "");
if (arg[0] == '\0' && ch->fighting == NULL)
{
send_to_char ("Who do you wish to use the Arms of the Abyss on?\n\r",
ch);
return;
}
if ((victim = ch->fighting) == NULL)
{
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
}
if (ch == victim)
{
if (is_affected (ch, gsn_tendrils))
{
act ("The tendrils of darkness entrapping $n fall away.", ch, NULL,
NULL, TO_ROOM);
send_to_char
("The tendrils of darkness entrapping you fall away.\n\r", ch);
affect_strip (ch, gsn_tendrils);
}
else if (IS_AFFECTED (ch, AFF_SHADOW))
{
act ("The tendrils of darkness entrapping $n fall away.", ch, NULL,
NULL, TO_ROOM);
send_to_char
("The tendrils of darkness entrapping you fall away.\n\r", ch);
REMOVE_BIT (ch->affected_by, AFF_SHADOW);
}
else
send_to_char ("Nothing happens.\n\r", ch);
return;
}
if (IS_AFFECTED (victim, AFF_ETHEREAL))
{
send_to_char
("You cannot use Arms of the Abyss on an ethereal person.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Arms of the Abyss on you.", ch, NULL,
victim, TO_VICT);
}
return;
}
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Arms of the Abyss on you.", ch, NULL,
victim, TO_VICT);
}
return;
}
if ((sn = skill_lookup ("tendrils")) < 0)
return;
spelltype = skill_table[sn].target;
level = get_disc (ch, DISC_OBTENEBRATION) * 5;
(*skill_table[sn].spell_fun) (sn, level, ch, victim);
waiting (ch, 12);
return;
}
void
power_ghoul (CHAR_DATA * ch, CHAR_DATA * victim)
{
int sn, disc;
bool enhanced = FALSE;
bool gain_disc;
if (IS_NPC (ch) || IS_NPC (victim) || !IS_HERO (victim) || !IS_VAMPIRE (ch))
return;
if (victim->class == CLASS_NONE)
victim->class = CLASS_GHOUL;
else if (victim->class != CLASS_GHOUL)
return;
for (sn = 0; sn <= DISC_MAX; sn++)
{
gain_disc = TRUE;
switch (sn)
{
case DISC_ANIMALISM:
case DISC_AUSPEX:
case DISC_CELERITY:
case DISC_DOMINATE:
case DISC_FORTITUDE:
case DISC_OBFUSCATE:
case DISC_POTENCE:
case DISC_PRESENCE:
case DISC_PROTEAN:
case DISC_SERPENTIS:
case DISC_THAUMATURGY:
case DISC_VICISSITUDE:
break;
default:
gain_disc = FALSE;
break;
}
if (!gain_disc)
continue;
if (ch->pcdata->powers[sn] > 0)
disc = (1 + ch->pcdata->powers[sn]) * 0.5;
else
disc = 0;
if (disc > victim->pcdata->powers[sn])
{
victim->pcdata->powers[sn] = disc;
enhanced = TRUE;
}
}
if (enhanced)
send_to_char
("You feel the potency of the blood run through your body.\n\r",
victim);
return;
}
void
do_lamprey (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
int level, dam;
int blood = number_range (10, 20);
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_VAMPIRE (ch) && !IS_GHOUL (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_disc (ch, DISC_OBTENEBRATION) < 4)
{
send_to_char
("You require level 4 Obtenebration to Call the Lamprey.\n\r", ch);
return;
}
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_majesty (ch, "");
if (arg[0] == '\0' && ch->fighting == NULL)
{
send_to_char ("Who do you wish to Call the Lamprey on?\n\r", ch);
return;
}
if ((victim = ch->fighting) == NULL)
{
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
}
if (ch == victim)
{
send_to_char ("That would not be a good idea.\n\r", ch);
return;
}
if (IS_AFFECTED (victim, AFF_ETHEREAL))
{
send_to_char ("You cannot Call the Lamprey on an ethereal person.\n\r",
ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Call the Lamprey on you.", ch, NULL,
victim, TO_VICT);
}
return;
}
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Call the Lamprey on you.", ch, NULL,
victim, TO_VICT);
}
return;
}
level = get_disc (ch, DISC_OBTENEBRATION) * 5;
dam = blood * get_disc (ch, DISC_OBTENEBRATION) * level;
damage (ch, victim, dam, gsn_tendrils, DAM_SHADOW, FALSE, TRUE, TRUE);
if (victim == NULL || victim->position == POS_DEAD)
return;
if (victim->blood[BLOOD_CURRENT] < blood)
blood = victim->blood[BLOOD_CURRENT];
victim->blood[BLOOD_CURRENT] -= blood;
ch->blood[BLOOD_CURRENT] += (blood * victim->blood[BLOOD_POTENCY]);
if (ch->blood[BLOOD_CURRENT] >= ch->blood[BLOOD_POOL])
{
ch->blood[BLOOD_CURRENT] = ch->blood[BLOOD_POOL];
if (IS_VAMPIRE (ch))
send_to_char ("Your blood lust is sated.\n\r", ch);
}
if (IS_NPC (victim) || !IS_VAMPIRE (victim))
{
power_ghoul (victim, ch);
if (!IS_NPC (ch) && ch->pcdata->dpoints < (victim->blood[2] * 1000))
{
ch->pcdata->dpoints += (blood * 60);
if (ch->pcdata->dpoints > (victim->blood[2] * 100))
ch->pcdata->dpoints = (victim->blood[2] * 100);
}
if (victim->blood[0] > 0 && victim->blood[0] <= 50)
{
act ("$n sways weakly from bloodloShowing the first 100 KB of 238.3 KB. Download the archive for the full file.