clan.c
clan.c · 207.7 KB
From the archive GWLowSrc.tar
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. *
***************************************************************************/
#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 adv_spell_damage args( ( CHAR_DATA *ch, OBJ_DATA *book,
OBJ_DATA *page, char *argument) );
void adv_spell_affect args( ( CHAR_DATA *ch, OBJ_DATA *book,
OBJ_DATA *page, char *argument) );
void adv_spell_action args( ( CHAR_DATA *ch, OBJ_DATA *book,
OBJ_DATA *page, char *argument) );
void birth_write args( ( CHAR_DATA *ch, char *argument ) );
bool birth_ok args( ( CHAR_DATA *ch, char *argument ) );
/* Need to get rid of those flames somehow - KaVir */
void do_devoursoul(CHAR_DATA *ch, char *argument)
{
char arg[MAX_INPUT_LENGTH];
CHAR_DATA *victim;
char buf[MAX_STRING_LENGTH];
argument = one_argument( argument, arg );
if ( !IS_CLASS(ch, CLASS_DEMON))
return;
if ( arg[0] == '\0' )
{
send_to_char( "Whose soul do you wish to devour?\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_NEWFLAG(victim, AFF_ALLOW_DEMON))
{
stc("They have not released their soul, yet.\n\r",ch);
return;
}
if ( victim->class > 0 || IS_NPC(victim))
{
send_to_char("You cannot wrench their soul from their deity.\n\r",ch);
send_to_char("You feel a tugging at your soul.\n\r",victim);
return;
}
victim->class = CLASS_DEMON;
victim->generation = 1;
set_learnable_disciplines(victim);
set_form(victim, 0);
victim->pcdata->perm_int -= 4;
victim->alignment = -666;
victim->hit = 1;
victim->move = 1;
save_char_obj(victim);
save_char_obj(ch);
sprintf(buf, "%s's soul has been devoured by %s.", victim->name, ch->name);
do_info(ch,buf);
/* Now demons actually have forms. Kooky. */
set_form(victim, FRM_LEMURE);
look_name(victim);
ch->hit = ch->max_hit;
WAIT_STATE(ch, 10);
WAIT_STATE(victim, 30);
send_to_char("Plunging your hand deep within your victims chest, you rip out their\n\r",ch);
send_to_char("soul, leaving a lifeless husk motionless at your feet. You have been\n\r",ch);
send_to_char("rewarded by your diety by enrolling another follower.\n\r",ch);
act("$N's vast demonic form towers over you. With a mighty roar, $E
plunges $S\n\rscaly claw into your chest. Blood sprays everywhere, and
you hear the eldritch\n\rmocking cry of conquest as your mortal
conciousness fades forever.", victim, NULL, ch
, TO_CHAR);
send_to_char("The demonic transformation *****TOTALLY DESTROYS***** you.\n\r",victim);
send_to_char("That really did HURT!\n\r",victim);
send_to_char("You have been KILLED!\n\r",victim);
act("With a deafening roar, the great demon $N plunges $S claw into
$n's chest and rips out $s soul. $n drops to the ground, lifeless.",
victim, NULL, ch, TO_NOTVICT);
}
/*
void do_level( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
char skill [20];
char stance [20];
one_argument( argument, arg );
if (IS_NPC(ch)) return;
send_to_char("---------------------------=[#6 Weapon Levels#n ]=-------------------------------\n\r", ch);
sprintf(skill,"Slice : %-10d", ch->wpn[1]);
send_to_char( skill, ch );
sprintf(skill,"Stab : %-10d", ch->wpn[2]);
send_to_char( skill, ch );
sprintf(skill, "Slash : %-10d", ch->wpn[3]);
send_to_char( skill, ch );
sprintf(skill,"Whip : %-10d\n\r", ch->wpn[4]);
send_to_char( skill, ch );
sprintf(skill,"Claw : %-10d", ch->wpn[5]);
send_to_char( skill, ch );
sprintf(skill,"Blast : %-10d", ch->wpn[6]);
send_to_char( skill, ch );
sprintf(skill,"Pound : %-10d", ch->wpn[7]);
send_to_char( skill, ch );
sprintf(skill,"Crush: %-10d\n\r", ch->wpn[8]);
send_to_char( skill, ch );
sprintf(skill,"Grep : %-10d", ch->wpn[9]);
send_to_char( skill, ch );
sprintf(skill,"Bite : %-10d", ch->wpn[10]);
send_to_char( skill, ch );
sprintf(skill,"Pierce : %-10d", ch->wpn[11]);
send_to_char( skill, ch );
sprintf(skill,"Suck : %-10d\n\r", ch->wpn[12]);
send_to_char( skill, ch );
sprintf(skill,"Unarmed : %-10d\n\r\n", ch->wpn[0]);
send_to_char( skill, ch );
send_to_char("---------------------------=[#6 Stance Levels#n ]=--------------------------------\n\r",ch);
sprintf(skill,"Viper : %-10d", ch->stance[1]);
send_to_char( skill, ch );
sprintf(skill, "Crane : %-10d", ch->stance[2]);
send_to_char( skill, ch );
sprintf(skill, "Crab : %-10d", ch->stance[3]);
send_to_char( skill, ch );
sprintf(skill,"Mongoose : %-10d\n\r", ch->stance[4]);
send_to_char( skill, ch );
sprintf(skill,"Bull : %-10d", ch->stance[5]);
send_to_char( skill, ch );
sprintf(skill, "Mantis : %-10d", ch->stance[6]);
send_to_char( skill, ch );
sprintf(skill,"Dragon : %-10d", ch->stance[7]);
send_to_char( skill, ch );
sprintf(skill,"Tiger : %-10d\n\r", ch->stance[8]);
send_to_char( skill, ch );
sprintf(skill,"Monkey : %-10d", ch->stance[9]);
send_to_char( skill, ch );
sprintf(skill,"Swallow : %-10d\n\r\n", ch->stance[10]);
send_to_char( skill, ch );
send_to_char("---------------------------=[#6 Spell Levels#n ]=---------------------------------\n\r", ch);
sprintf(skill,"#5Purple#n : %-10d", ch->spl[0]);
send_to_char( skill, ch );
sprintf(skill,"#4Blue#n : %-10d", ch->spl[2]);
send_to_char( skill, ch );
sprintf(skill,"#1Red#n : %-10d\n\r", ch->spl[1]);
send_to_char( skill, ch );
sprintf(skill,"#2Green#n : %-10d", ch->spl[3]);
send_to_char( skill, ch );
sprintf(skill, "#3Yellow#n : %-10d\n\r\n", ch->spl[4]);
send_to_char( skill, ch );
send_to_char("---------------------------=[#6 Misc. Things#n ]=---------------------------------\n\r", ch);
sprintf(skill, "Recall Room : %d ", ch->home);
send_to_char( skill, ch );
sprintf(skill, "Trust : %d\n\r", ch->trust);
send_to_char( skill, ch );
if ( ch->stance[11] == 1 )
sprintf(stance, " Viper\n\r" );
else if ( ch->stance[11] == 2 )
sprintf(stance, " Crane\n\r" );
else if ( ch->stance[11] == 3 )
sprintf(stance, " Crab\n\r" );
else if ( ch->stance[11] == 4 )
sprintf(stance, " Mongoose\n\r" );
else if ( ch->stance[11] == 5 )
sprintf(stance, " Bull\n\r" );
else if ( ch->stance[11] == 6 )
sprintf(stance, " Mantis\n\r" );
else if ( ch->stance[11] == 7 )
sprintf(stance, " Dragon\n\r" );
else if ( ch->stance[11] == 8 )
sprintf(stance, " Tiger\n\r" );
else if ( ch->stance[11] == 9 )
sprintf(stance, " Monkey\n\r" );
else if ( ch->stance[11] == 10 )
sprintf(stance, " Swallow\n\r" );
else
sprintf(stance, " None\n\r" );
sprintf(skill, "Autostance: %s", stance);
send_to_char( skill, ch );
send_to_char("\n---------------------------=[#6 Class Things#n ]=---------------------------------\n\r", ch);
if ( IS_CLASS(ch, CLASS_DEMON) )
send_to_char("You are a demon!\n\r", ch);
if ( IS_CLASS(ch, CLASS_MAGE) )
send_to_char("You are a mage!\n\r", ch);
if ( IS_CLASS(ch, CLASS_WEREWOLF) )
send_to_char("You are a werewolf!\n\r", ch);
if ( IS_CLASS(ch, CLASS_NINJA) )
send_to_char("You are a ninja!\n\r", ch);
if ( IS_CLASS(ch, CLASS_VAMPIRE) )
send_to_char("You are a vampire!\n\r", ch);
if ( IS_CLASS(ch, CLASS_HIGHLANDER) )
send_to_char("You are a highlander!\n\r", ch);
if ( IS_CLASS(ch, CLASS_DROW) )
send_to_char("You are a drow!\n\r", ch);
if (IS_CLASS(ch, CLASS_VAMPIRE) )
{
sprintf(skill, "Generation : %d ", ch->generation);
send_to_char( skill, ch );
if (ch->pcdata->rank == AGE_METHUSELAH)
send_to_char("You are a Methuselah!\n\r",ch);
else if (ch->pcdata->rank == AGE_ELDER)
send_to_char("You are an Elder!\n\r",ch);
else if (ch->pcdata->rank == AGE_ANCILLA)
send_to_char("You are an Ancilla!\n\r",ch);
else if (ch->pcdata->rank == AGE_NEONATE)
send_to_char("You are a Neonate!\n\r", ch);
else
send_to_char("You are a Childe!\n\r", ch);
if ( IS_SET(ch->special, SPC_PRINCE) )
send_to_char("You are a prince!\n\r", ch);
}
if (IS_CLASS(ch, CLASS_NINJA) )
{
sprintf(skill, "Generation : %d\n\r", ch->generation);
send_to_char( skill, ch );
if ( IS_SET(ch->special, SPC_PRINCE) )
send_to_char("You can discipline people!\n\r", ch);
}
if (IS_CLASS(ch, CLASS_WEREWOLF) )
{
sprintf(skill, "Generation : %d\n\r", ch->generation);
send_to_char( skill, ch );
if ( IS_SET(ch->special, SPC_SIRE) && ch->generation > 2 )
send_to_char("You are able to spread the gift!\n\r", ch);
if ( IS_SET(ch->special, SPC_PRINCE) && ch->generation > 2
)
send_to_char("You are a shaman!\n\r", ch);
}
}
*/
void do_level( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
char skill [20];
char stance [20];
one_argument( argument, arg );
if (IS_NPC(ch)) return;
send_to_char("---------------------------=[#6 Weapon Levels#n ]=--------------------------------\n\r", ch);
sprintf(skill,"Slice : %-4d", ch->wpn[1]);
send_to_char( skill, ch );
sprintf(skill," Stab : %-4d", ch->wpn[2]);
send_to_char( skill, ch );
sprintf(skill," Slash : %-4d", ch->wpn[3]);
send_to_char( skill, ch );
sprintf(skill," Whip : %-4d", ch->wpn[4]);
send_to_char( skill, ch );
sprintf(skill," Claw : %-4d\n\r", ch->wpn[5]);
send_to_char( skill, ch );
sprintf(skill,"Blast : %-4d", ch->wpn[6]);
send_to_char( skill, ch );
sprintf(skill," Pound : %-4d", ch->wpn[7]);
send_to_char( skill, ch );
sprintf(skill," Crush : %-4d", ch->wpn[8]);
send_to_char( skill, ch );
sprintf(skill," Grep : %-4d", ch->wpn[9]);
send_to_char( skill, ch );
sprintf(skill," Bite : %-4d\n\r", ch->wpn[10]);
send_to_char( skill, ch );
sprintf(skill,"Pierce : %-4d", ch->wpn[11]);
send_to_char( skill, ch );
sprintf(skill," Suck : %-4d", ch->wpn[12]);
send_to_char( skill, ch );
sprintf(skill," Unarmed: %-4d\n\r\n", ch->wpn[0]);
send_to_char( skill, ch );
send_to_char("---------------------------=[#6 Stance Levels#n ]=--------------------------------\n\r",ch);
sprintf(skill,"Viper : %-4d", ch->stance[1]);
send_to_char( skill, ch );
sprintf(skill, "Crane : %-4d", ch->stance[2]);
send_to_char( skill, ch );
sprintf(skill, "Crab : %-4d", ch->stance[3]);
send_to_char( skill, ch );
sprintf(skill,"Mongoose : %-4d", ch->stance[4]);
send_to_char( skill, ch );
sprintf(skill,"Bull : %-4d\n\r", ch->stance[5]);
send_to_char( skill, ch );
sprintf(skill, "Mantis : %-4d", ch->stance[6]);
send_to_char( skill, ch );
sprintf(skill,"Dragon : %-4d", ch->stance[7]);
send_to_char( skill, ch );
sprintf(skill,"Tiger : %-4d", ch->stance[8]);
send_to_char( skill, ch );
sprintf(skill,"Monkey : %-4d", ch->stance[9]);
send_to_char( skill, ch );
sprintf(skill,"Swallow : %-4d\n\r\n", ch->stance[10]);
send_to_char( skill, ch );
send_to_char("---------------------------=[#6 Spell Levels#n ]=---------------------------------\n\r", ch);
sprintf(skill,"#5Purple#n : %-4d", ch->spl[0]);
send_to_char( skill, ch );
sprintf(skill,"#4Blue#n : %-4d", ch->spl[2]);
send_to_char( skill, ch );
sprintf(skill,"#1Red#n : %-4d", ch->spl[1]);
send_to_char( skill, ch );
sprintf(skill,"#2Green#n : %-4d", ch->spl[3]);
send_to_char( skill, ch );
sprintf(skill, "#3Yellow#n : %-4d\n\r\n", ch->spl[4]);
send_to_char( skill, ch );
send_to_char("---------------------------=[#6 Misc. Things#n ]=---------------------------------\n\r", ch);
sprintf(skill, "Recall Room : %d ", ch->home);
send_to_char( skill, ch );
sprintf(skill, "Trust : %d ", ch->trust);
send_to_char( skill, ch );
if ( ch->stance[11] == 1 )
sprintf(stance, " Viper\n\r" );
else if ( ch->stance[11] == 2 )
sprintf(stance, " Crane\n\r" );
else if ( ch->stance[11] == 3 )
sprintf(stance, " Crab\n\r" );
else if ( ch->stance[11] == 4 )
sprintf(stance, " Mongoose\n\r" );
else if ( ch->stance[11] == 5 )
sprintf(stance, " Bull\n\r" );
else if ( ch->stance[11] == 6 )
sprintf(stance, " Mantis\n\r" );
else if ( ch->stance[11] == 7 )
sprintf(stance, " Dragon\n\r" );
else if ( ch->stance[11] == 8 )
sprintf(stance, " Tiger\n\r" );
else if ( ch->stance[11] == 9 )
sprintf(stance, " Monkey\n\r" );
else if ( ch->stance[11] == 10 )
sprintf(stance, " Swallow\n\r" );
else sprintf(stance, " None\n\r" );
sprintf(skill, "Autostance: %s", stance);
send_to_char( skill, ch );
send_to_char("\n---------------------------=[#6 Class Things#n ]=---------------------------------\n\r", ch);
if ( IS_CLASS(ch, CLASS_DEMON) )
send_to_char("You are a demon!\n\r", ch);
if ( IS_CLASS(ch, CLASS_MAGE) )
send_to_char("You are a mage!\n\r", ch);
if ( IS_CLASS(ch, CLASS_WEREWOLF) )
send_to_char("You are a werewolf!\n\r", ch);
if ( IS_CLASS(ch, CLASS_NINJA) )
send_to_char("You are a ninja!\n\r", ch);
if ( IS_CLASS(ch, CLASS_VAMPIRE) )
send_to_char("You are a vampire!\n\r", ch);
if ( IS_CLASS(ch, CLASS_HIGHLANDER) )
send_to_char("You are a highlander!\n\r", ch);
if ( IS_CLASS(ch, CLASS_DROW) )
send_to_char("You are a drow!\n\r", ch);
if (IS_CLASS(ch, CLASS_VAMPIRE) )
{
sprintf(skill, "Generation : %d ", ch->generation);
send_to_char( skill, ch );
if (ch->pcdata->rank == AGE_METHUSELAH)
send_to_char("You are a Methuselah!\n\r",ch);
else if (ch->pcdata->rank == AGE_ELDER)
send_to_char("You are an Elder!\n\r",ch);
else if (ch->pcdata->rank == AGE_ANCILLA)
send_to_char("You are an Ancilla!\n\r",ch);
else if (ch->pcdata->rank == AGE_NEONATE)
send_to_char("You are a Neonate!\n\r", ch);
else
send_to_char("You are a Childe!\n\r", ch);
if ( IS_SET(ch->special, SPC_PRINCE) )
send_to_char("You are a prince!\n\r", ch);
}
if (IS_CLASS(ch, CLASS_NINJA) )
{
sprintf(skill, "Generation : %d\n\r", ch->generation);
send_to_char( skill, ch );
if ( IS_SET(ch->special, SPC_PRINCE) )
send_to_char("You can discipline people!\n\r", ch);
}
if (IS_CLASS(ch, CLASS_WEREWOLF) )
{
sprintf(skill, "Generation : %d\n\r", ch->generation);
send_to_char( skill, ch );
if ( IS_SET(ch->special, SPC_SIRE) && ch->generation > 2 )
send_to_char("You are able to spread the gift!\n\r", ch);
if ( IS_SET(ch->special, SPC_PRINCE) && ch->generation > 2
)
send_to_char("You are a shaman!\n\r", ch);
}
}
/*
void do_autostance( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
int selection;
one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!str_cmp(arg,"none") )
{
selection = STANCE_NONE;
send_to_char("You're autostance has been removed.\n\r",ch);
REMOVE_BIT(ch->extra, EXTRA_STANCE);
}
else if (!str_cmp(arg,"viper") )
{
selection = STANCE_VIPER;
send_to_char("Viper stance set.\n\r",ch);
}
else if (!str_cmp(arg,"crane") )
{
selection = STANCE_CRANE;
send_to_char("Crane stance set.\n\r",ch);
}
else if (!str_cmp(arg,"crab") )
{
selection = STANCE_CRAB;
send_to_char("Crab stance set.\n\r",ch);
}
else if (!str_cmp(arg,"mongoose"))
{
selection = STANCE_MONGOOSE;
send_to_char("Mongoose stance set.\n\r",ch);
}
else if (!str_cmp(arg,"bull") )
{
selection = STANCE_BULL;
send_to_char("Bull stance set.\n\r",ch);
}
else
{
if (!str_cmp(arg,"mantis") && ch->stance[STANCE_CRANE] >= 200 &&
ch->stance[STANCE_VIPER] >= 200)
{
selection = STANCE_MANTIS;
send_to_char("Mantis stance set.\n\r",ch);
}
else if (!str_cmp(arg,"dragon") && ch->stance[STANCE_BULL] >= 200
&&
ch->stance[STANCE_CRAB] >= 200)
{
selection = STANCE_DRAGON;
send_to_char("Dragon stance set.\n\r",ch);
}
else if (!str_cmp(arg,"tiger") && ch->stance[STANCE_BULL] >= 200
&&
ch->stance[STANCE_VIPER] >= 200)
{
selection = STANCE_TIGER;
send_to_char("Tiger stance set.\n\r",ch);
}
else if (!str_cmp(arg,"monkey") && ch->stance[STANCE_CRANE] >= 200
&&
ch->stance[STANCE_MONGOOSE] >= 200)
{
selection = STANCE_MONKEY;
send_to_char("Monkey stance set.\n\r",ch);
}
else if (!str_cmp(arg,"swallow") && ch->stance[STANCE_CRAB] >= 200
&&
ch->stance[STANCE_MONGOOSE] >= 200)
{
selection = STANCE_SWALLOW;
send_to_char("Swallow stance set.\n\r",ch);
}
else
{
send_to_char("Syntax is: autostance <style>.\n\r",ch);
send_to_char("Autotance being one of: None, Viper, Crane,Crab, Mongoose, Bull.\n\r",ch);
send_to_char(" If you know them: Mantis, Dragon, Tiger, Monkey, Swallow.\n\r",ch);
return;
}
}
ch->stance[11] = selection;
SET_BIT(ch->extra, EXTRA_STANCE);
return;
}
*/
void do_smother( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
char arg[MAX_INPUT_LENGTH];
ROOM_INDEX_DATA *inroom;
one_argument( argument, arg );
if (IS_NPC( ch )) return;
inroom=ch->in_room;
if ( arg[0] == '\0' && !IS_SET(inroom->room_flags,ROOM_FLAMING))
{
send_to_char( "Smother whom?\n\r", ch );
return;
}
if ( ( victim = get_char_room( ch, arg ) ) == NULL )
{
send_to_char( "They aren't here.\n\r", ch );
return;
}
if ( ch == victim )
{
send_to_char( "You cannot smother yourself.\n\r", ch );
return;
}
if (!IS_AFFECTED(victim, AFF_FLAMING))
{
send_to_char( "But they are not on fire!\n\r", ch );
return;
}
if ( number_percent() > (ch->level*2) )
{
act( "You try to smother the flames around $N but fail!", ch, NULL, victim, TO_CHAR );
act( "$n tries to smother the flames around you but fails!", ch, NULL, victim, TO_VICT );
act( "$n tries to smother the flames around $N but fails!", ch, NULL, victim, TO_NOTVICT );
if ( number_percent() > 98 && !IS_AFFECTED(ch,AFF_FLAMING) )
{
act( "A spark of flame from $N's body sets you on fire!", ch, NULL, victim, TO_CHAR );
act( "A spark of flame from your body sets $n on fire!", ch, NULL, victim, TO_VICT );
act( "A spark of flame from $N's body sets $n on fire!", ch, NULL, victim, TO_NOTVICT );
SET_BIT(ch->affected_by, AFF_FLAMING);
do_humanity(ch,"");
}
return;
}
act( "You manage to smother the flames around $M!", ch, NULL, victim, TO_CHAR );
act( "$n manages to smother the flames around you!", ch, NULL, victim, TO_VICT );
act( "$n manages to smother the flames around $N!", ch, NULL, victim, TO_NOTVICT );
REMOVE_BIT(victim->affected_by, AFF_FLAMING);
do_humanity(ch,"");
return;
}
void do_introduce( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
char buf [MAX_STRING_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (IS_CLASS(ch, CLASS_VAMPIRE) && ch->generation > 0 && ch->generation < 14)
{
if ( ch->generation == 1 )
{
sprintf(buf,"My name is %s. I am of the First Generation. I am the Sire of all Kindred.\n\r", ch->name);
do_say(ch,buf);
}
else if ( ch->generation == 2 )
{
sprintf(buf,"My name is %s. I am of the Second Generation. My sire is Sage.\n\r",ch->name );
do_say(ch,buf);
}
else if ( ch->generation == 3 )
{
sprintf(buf,"My name is %s. I am of the Third Generation. My sire is Sage.\n\r",ch->name );
do_say(ch, buf);
}
else if ( ch->generation > 3 )
{
sprintf(buf,"My name is %s. I am of the %dth Generation. My sire is Sage.\n\r",ch->name, ch->generation );
do_say(ch,buf);
}
else return;
}
else if (IS_CLASS(ch, CLASS_WEREWOLF) && IS_HERO(ch) &&
ch->generation > 0 && ch->generation < 7)
{
if ( ch->generation == 1 )
{
sprintf(buf,"My name is %s. I am the chosen champion of Gaia.\n\r",ch->name );
do_say(ch,buf);
}
else if ( ch->generation > 1 )
{
sprintf(buf,"My name is %s. I am the pup of Gaia.",ch->name );
do_say(ch,buf);
}
return;
}
else send_to_char("Huh?\n\r",ch);
return;
}
/* Loads of Vampire powers follow. KaVir */
void do_coil( CHAR_DATA *ch, char *argument )
{
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r", ch);
return;
}
if (ch->power[DISC_VAMP_SERP] < 8)
{
send_to_char("You require level 8 Serpentis to use Body Coil.\n\r", ch);
return;
}
if (!IS_SET(ch->newbits, NEW_COIL))
{
send_to_char("You prepare to coil your victims.\n\r", ch);
SET_BIT(ch->newbits, NEW_COIL);
return;
}
else if (IS_SET(ch->newbits, NEW_COIL))
{
send_to_char("You stand down from your coil posture.\n\r", ch);
REMOVE_BIT(ch->newbits, NEW_COIL);
return;
}
return;
}
void do_tide( CHAR_DATA *ch, char *argument )
{
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r", ch);
return;
}
if (ch->power[DISC_VAMP_THAU] < 5)
{
send_to_char("You require level 5 Thaumaturgy to use Tide of Vitae.\n\r", ch);
return;
}
if (ch->practice < 10)
{
send_to_char("You require at least 10 primal to use Tide of Vitae.\n\r",ch);
return;
}
if (IS_SET(ch->newbits, NEW_TIDE))
{send_to_char("The tide is already with you.\n\r",ch); return;}
SET_BIT(ch->newbits, NEW_TIDE);
ch->practice -= 10;
send_to_char("You feel a tide of vitae rush over you.\n\r",ch);
}
void do_flash( CHAR_DATA *ch, char *argument )
{
char buf[MAX_STRING_LENGTH];
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r", ch);
return;
}
if (ch->power[DISC_VAMP_QUIE] < 9)
{
send_to_char("You require level 9 Quietus to use Flashing
Speed.\n\r", ch);
return;
}
if (IS_EXTRA(ch, EXTRA_FLASH))
{
send_to_char("You are already moving swiftly.\n\r", ch);
return;
}
if (ch->pcdata->condition[COND_THIRST] < 200)
{
send_to_char("You have insufficient blood.\n\r",ch);
return;
}
SET_BIT(ch->extra, EXTRA_FLASH);
ch->power[DISC_VAMP_CELE] += 2;
ch->pcdata->condition[COND_THIRST] -= 200;
sprintf(buf, "%s starts moving with lightening speed.",ch->name);
act(buf,ch,NULL,NULL,TO_ROOM);
send_to_char("You start moving with lightening speed.\n\r",ch);
return;
}
void do_death( CHAR_DATA *ch, char *argument )
{
char buf[MAX_STRING_LENGTH];
ROOM_INDEX_DATA *inroom;
inroom= ch->in_room;
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r", ch);
return;
}
if (ch->power[DISC_VAMP_QUIE] < 5)
{
send_to_char("You require level 5 Quietus to use Silence of Death.\n\r", ch);
return;
}
if (RTIMER(ch->in_room, RTIMER_SILENCE) != 0)
{
sprintf(buf,"The silence leaves the room.\n\r");
act(buf,ch,NULL,NULL,TO_ROOM);
send_to_char("The silence leaves the room.\n\r", ch);
SET_RTIMER(ch->in_room, RTIMER_SILENCE, 0);
return;
}
if (ch->pcdata->condition[COND_THIRST] < 300)
{
send_to_char("You have insufficient blood.\n\r", ch);
return;
}
ch->pcdata->condition[COND_THIRST] -= 300;
SET_RTIMER(inroom, RTIMER_SILENCE, 10);
sprintf(buf,"A look of concentration passes over %s's face.\n\r", ch->name);
act(buf,ch,NULL,NULL,TO_ROOM);
send_to_char("A look of concentration passes over your face.\n\r",ch);
sprintf(buf,"An eerie silence fills the room.\n\r");
act(buf,ch,NULL,NULL,TO_ROOM);
send_to_char(buf,ch);
return;
}
void do_acid( CHAR_DATA *ch, char *argument )
{
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r", ch);
return;
}
if (ch->power[DISC_VAMP_DOMI] < 4)
{
send_to_char("You require level 9 Vicissitude to use Acid Blood.\n\r", ch);
return;
}
if (ch->pcdata->condition[COND_THIRST] < 500)
{
send_to_char("You have insufficient blood.\n\r", ch);
return;
}
if (IS_SET(ch->act, PLR_ACID))
{
send_to_char("Your blood is already acid.\n\r",ch);
return;
}
SET_BIT(ch->act, PLR_ACID);
send_to_char("Your blood turns to a potent acid.\n\r", ch);
return;
}
void do_retrn( CHAR_DATA *ch, char *argument )
{
ROOM_INDEX_DATA *location;
act( "$n raises $s arms to the sky.", ch, NULL, NULL, TO_ROOM );
act( "Your raise your arms to the sky.", ch, NULL, NULL, TO_CHAR );
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char( "Huh?\n\r", ch );
return;
}
location = get_room_index(27000);
if (ch->power[DISC_VAMP_OBFU] < 8)
{
send_to_char("You must obtain at least level 8 in Obuscate to Return to Caine.\n\r", ch);
return;
}
if (ch->pcdata->condition[COND_THIRST] < 250)
{
send_to_char("You have insufficient blood.\n\r", ch);
return;
}
if (ch->practice < 20)
{
send_to_char("You need 20 primal to use Return to Caine.\n\r", ch);
return;
}
if ( ch->in_room == location )
return;
ch->pcdata->condition[COND_THIRST] -= 250;
ch->practice -= 20;
act( "$n disappears.", ch, NULL, NULL, TO_ROOM );
char_from_room( ch );
char_to_room( ch, location );
act( "$n appears in the room.", ch, NULL, NULL, TO_ROOM );
do_look( ch, "auto" );
return;
}
void do_forget( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
char arg1[MAX_INPUT_LENGTH];
char arg2[MAX_INPUT_LENGTH];
argument = one_argument( argument, arg1 );
argument = one_argument( argument, arg2 );
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char( "Huh?\n\r", ch );
return;
}
if (ch->power[DISC_VAMP_DOMI] < 8)
{
send_to_char("You must obtain at least level 8 in Dominate to use Forgetful Mind.\n\r",ch);
return;
}
if ( arg1[0] == '\0' )
{
send_to_char( "Force whom to forget what disc?\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_NPC(victim))
{
send_to_char("Why use Forgetful Mind on a mob?\n\r", ch);
return;
}
if (!IS_CLASS(victim, CLASS_VAMPIRE))
{
send_to_char("Only useful on vamps?\n\r", ch);
return;
}
if ( IS_IMMORTAL(victim) && victim != ch )
{
send_to_char( "You can only use Forgetful Mind on Avatar's or lower.\n\r", ch );
return;
}
if (ch->pcdata->condition[COND_THIRST] < 250)
{
send_to_char("You have insufficient blood.\n\r", ch);
return;
}
if (ch->practice < 25)
{
send_to_char("You need 25 primal to use Forgetful Mind.\n\r", ch);
return;
}
act("You close your eyes and concentrate on $N.", ch,NULL,victim,TO_CHAR);
act("$n closes $s eyes and concentrates on you.", ch,NULL,victim,TO_VICT);
act("$n closes $s eyes and cencentrates on $N.", ch,NULL,victim,TO_NOTVICT);
ch->pcdata->condition[COND_THIRST] -= 250;
ch->practice -= 25;
WAIT_STATE(ch, 12);
if ( number_percent() > 10)
{
send_to_char("You failed.\n\r",ch);
return;
}
if ( !str_cmp(arg2,"animalism") )
{
victim->power[DISC_VAMP_ANIM] -= 1;
act("Your mind becomes hazy about Animalism.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
if ( !str_cmp(arg2,"celerity") )
{
victim->power[DISC_VAMP_CELE] -= 1;
act("Your mind becomes hazy about Celerity.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
if ( !str_cmp(arg2,"dominate") )
{
victim->power[DISC_VAMP_DOMI] -= 1;
act("Your mind becomes hazy about Dominate.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
if ( !str_cmp(arg2,"fortitude") )
{
victim->power[DISC_VAMP_FORT] -= 1;
act("Your mind becomes hazy about Fortitude.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
if ( !str_cmp(arg2,"auspex") )
{
victim->power[DISC_VAMP_AUSP] -= 1;
act("Your mind becomes hazy about Auspex.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
if ( !str_cmp(arg2,"obfuscate") )
{
victim->power[DISC_VAMP_OBFU] -= 1;
act("Your mind becomes hazy about Obfuscate.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
if ( !str_cmp(arg2,"obtenebration") )
{
victim->power[DISC_VAMP_OBTE] -= 1;
act("Your mind becomes hazy about Obtenebration.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
if ( !str_cmp(arg2,"presence") )
{
victim->power[DISC_VAMP_PRES] -= 1;
act("Your mind becomes hazy about Presence.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
if ( !str_cmp(arg2,"potence") )
{
victim->power[DISC_VAMP_POTE] -= 1;
act("Your mind becomes hazy about Potence.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
if ( !str_cmp(arg2,"protean") )
{
victim->power[DISC_VAMP_PROT] -= 1;
act("Your mind becomes hazy about Protean.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
if ( !str_cmp(arg2,"quietus") )
{
victim->power[DISC_VAMP_QUIE] -= 1;
act("Your mind becomes hazy about Quietus.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
if ( !str_cmp(arg2,"serpentis") )
{
victim->power[DISC_VAMP_SERP] -= 1;
act("Your mind becomes hazy about Serpentis.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
if ( !str_cmp(arg2,"thaumaturgy") )
{
victim->power[DISC_VAMP_THAU] -= 1;
act("Your mind becomes hazy about Thaumaturgy.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
if ( !str_cmp(arg2,"vicissitude") )
{
victim->power[DISC_VAMP_VICI] -= 1;
act("Your mind becomes hazy about Vicissitude.", victim,NULL,NULL,TO_CHAR);
act("$n blinks $s eyes for a moment.", victim,NULL,NULL,TO_ROOM);
return;
}
return;
}
void do_rot( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
char arg [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char( "Huh?\n\r", ch );
return;
}
if (ch->power[DISC_VAMP_VICI] < 2)
{
send_to_char("You must obtain at level 2 in Thanatosis to use Putrefaction.\n\r",ch);
return;
}
if ( arg[0] == '\0' )
{
send_to_char( "Who do you wish to use Putrefaction on?\n\r", ch );
return;
}
if ( ( victim = get_char_room( ch, arg ) ) == NULL )
{
send_to_char( "They aren't here.\n\r", ch );
return;
}
if (IS_NPC(victim))
{
send_to_char("Why use Putrefaction on a mob?\n\r", ch);
return;
}
if ( IS_IMMORTAL(victim) && victim != ch )
{
send_to_char( "You can only use Putrefaction on Avatar's or lower.\n\r", ch );
return;
}
if (is_safe(ch,victim) == TRUE) return;
if (victim->hit < victim->max_hit)
{
send_to_char("They are hurt and suspicious.\n\r", ch);
return;
}
act("You close your eyes and concentrate on $N.", ch,NULL,victim,TO_CHAR);
act("$n closes $s eyes and concentrates on you.", ch,NULL,victim,TO_VICT);
act("$n closes $s eyes and cencentrates on $N.", ch,NULL,victim,TO_NOTVICT);
WAIT_STATE(ch, 12);
if (number_percent( ) < 50)
{
send_to_char("You failed.\n\r",ch);
return;
}
act("Your flesh begins to rot!", victim,NULL,NULL,TO_CHAR);
act("$n's flesh begins to rot!", victim,NULL,NULL,TO_ROOM);
SET_BIT(victim->extra, EXTRA_ROT);
return;
}
void do_dragon (CHAR_DATA *ch, char *argument)
{
CHAR_DATA *victim;
char buf[MAX_STRING_LENGTH];
int dam;
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r", ch);
return;
}
if (ch->power[DISC_VAMP_VICI] < 8)
{
send_to_char("You must have at least level 8 Vicissitude to use Dragon Breath.\n\r",ch);
return;
}
if ((victim = ch->fighting) == NULL)
{
send_to_char("You aren't fighting anyone.\n\r", ch);
return;
}
if (!IS_EXTRA(ch,EXTRA_DRAGON))
{
send_to_char("You must be in Dragonform to use Dragonbreath.\n\r",ch);
return;
}
if (ch->pcdata->condition[COND_THIRST] < 6)
{
send_to_char("You have insufficient blood.\n\r", ch);
return;
}
WAIT_STATE(ch, 12);
if (!IS_NPC(victim))
{
dam = ch->power[DISC_VAMP_VICI] * 50;
}
if (IS_NPC(victim))
{
dam = ch->power[DISC_VAMP_VICI] * 200;
}
ch->pcdata->condition[COND_THIRST] -= 6;
if ((!IS_NPC(victim)) && IS_CLASS(victim, CLASS_VAMPIRE))
{
dam *= 1.5;
}
if ((!IS_NPC(victim)) && IS_CLASS(victim, CLASS_WEREWOLF))
{
if (ch->power[DISC_WERE_BOAR] > 2) dam *= 1.5;
}
if (dam <= 0)
dam = 1;
sprintf(buf,"Your flame fries $N! [%d]\n\r",dam);
act(buf,ch,NULL,victim,TO_CHAR);
sprintf(buf,"$n's flame fries you! [%d]\n\r",dam);
act(buf,ch,NULL,victim,TO_VICT);
sprintf(buf,"$n's flame fries $N! [%d]\n\r",dam);
act(buf,ch,NULL,victim,TO_NOTVICT);
victim->hit -= dam;
if(!IS_AFFECTED(victim,AFF_FLAMING)) SET_BIT(victim->affected_by,AFF_FLAMING);
return;
}
void do_satan( CHAR_DATA *ch, char *argument )
{
char buf [MAX_INPUT_LENGTH];
CHAR_DATA *victim;
AFFECT_DATA af;
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r", ch);
return;
}
if (ch->power[DISC_VAMP_DAIM] < 10)
{
send_to_char("You require level 10 Daimoinon to use Call of Satan.\n\r", ch);
return;
}
if (ch->pcdata->followers > 0)
{
send_to_char("Only one Satan can exist in this world.\n\r",ch);
return;
}
if (ch->pcdata->condition[COND_THIRST] < 750)
{
send_to_char("You have insufficient blood.\n\r", ch);
return;
}
ch->pcdata->condition[COND_THIRST] = ch->pcdata->condition[COND_THIRST] - 750;
ch->pcdata->followers++;
victim=create_mobile( get_mob_index( MOB_VNUM_SATAN ) );
victim->level = 800;
victim->hit = 30000;
victim->max_hit = 30000;
victim->hitroll = 1500;
victim->damroll = 1500;
victim->armor = 6000;
strcpy(buf,"Lord of all Evil, Join me to crush those who oppose us!");
do_say( ch, buf );
send_to_char( "You hear a loud tremor and Satan appears before you.\n\r",ch );
act( "The ground roars and $N bursts appears before $n.", ch, NULL, victim, TO_ROOM );
char_to_room( victim, ch->in_room );
add_follower( victim, ch );
af.duration = 666;
af.location = APPLY_NONE;
af.modifier = 0;
af.bitvector = AFF_CHARM;
affect_to_char( victim, &af );
SET_BIT(victim->act, ACT_NOEXP);
return;
}
void do_awe ( CHAR_DATA *ch, char *argument )
{
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r", ch);
return;
}
if (ch->power[DISC_VAMP_PRES] < 1)
{
send_to_char("You must obtain at least level 1 in Presence to you Awe.\n\r", ch);
return;
}
if (IS_EXTRA(ch, EXTRA_AWE))
{
REMOVE_BIT(ch->extra, EXTRA_AWE);
send_to_char("You are no longer Awe Inspiring.\n\r", ch);
act("$n is no longer awe inspiring.", ch, NULL, NULL, TO_ROOM);
return;
}
SET_BIT(ch->extra, EXTRA_AWE);
send_to_char("You are now Awe Inspiring.\n\r", ch);
act("$n is now awe inspiring", ch, NULL, NULL, TO_ROOM);
return;
}
void do_potency( CHAR_DATA *ch, char *argument )
{
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r", ch);
return;
}
if (ch->power[DISC_VAMP_THAU] < 3)
{
send_to_char("You must obtain at least level 3 in Thaumaturgy to use Blood Potency.\n\r", ch);
return;
}
if (IS_EXTRA(ch, EXTRA_POTENCY))
{
send_to_char("Your blood is already potent.\n\r", ch);
return;
}
if (ch->pcdata->condition[COND_THIRST] < 300)
{
send_to_char("You have insufficient blood.\n\r", ch);
return;
}
if (ch->generation == 3)
{
send_to_char("Your blood is as potent as it can get.\n\r", ch);
return;
}
ch->pcdata->condition[COND_THIRST] = ch->pcdata->condition[COND_THIRST] - 300;
ch->generation = ch->generation - 1;
SET_BIT(ch->extra, EXTRA_POTENCY);
send_to_char("You feel your blood become more potent.\n\r", ch);
return;
}
void do_plasma( CHAR_DATA *ch, char *argument )
{
OBJ_DATA *obj;
if ( IS_NPC(ch) )
return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r", ch);
return;
}
if (ch->power[DISC_VAMP_VICI] < 5)
{
send_to_char("You must obtain at least level 5 in Vicissitude to use Plasma Form.\n\r", ch);
return;
}
save_char_obj(ch);
if ((obj = create_object(get_obj_index( 30007),60)) == NULL)
{
send_to_char( "Error - Please inform Maser.\n\r", ch);
return;
}
if ( IS_EXTRA(ch, EXTRA_PLASMA) )
{
ch->pcdata->obj_vnum = 0;
REMOVE_BIT(ch->affected_by, AFF_POLYMORPH);
REMOVE_BIT(ch->extra, EXTRA_OSWITCH);
REMOVE_BIT(ch->extra, EXTRA_PLASMA);
ch->pcdata->chobj = NULL;
obj->chobj = NULL;
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 );
return;
}
if ( IS_AFFECTED(ch, AFF_POLYMORPH) )
{
send_to_char( "Not while polymorphed.\n\r", ch );
return;
}
act("$n transforms into $p and splashes to the ground.",ch,obj,NULL,TO_ROOM);
act("You transform into $p and splashes to the ground.",ch,obj,NULL,TO_CHAR);
ch->pcdata->obj_vnum = ch->pcdata->powers[VPOWER_OBJ_VNUM];
obj->chobj = ch;
ch->pcdata->chobj = obj;
SET_BIT(ch->affected_by, AFF_POLYMORPH);
SET_BIT(ch->extra, EXTRA_OSWITCH);
SET_BIT(ch->extra, EXTRA_PLASMA);
free_string(ch->morph);
ch->morph = str_dup("a pool of blood");
obj_to_room(obj,ch->in_room);
return;
}
void do_taste( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
char buf [MAX_STRING_LENGTH];
char age [MAX_STRING_LENGTH];
char lin [MAX_STRING_LENGTH];
char lord [MAX_STRING_LENGTH];
char arg [MAX_INPUT_LENGTH];
argument = one_argument (argument, arg );
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char( "Huh?\n\r", ch );
return;
}
if (ch->power[DISC_VAMP_THAU] < 1)
{
send_to_char("You must obtain at least level 1 in Thaumaturgy to use Taste of Blood.\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_CLASS(victim, CLASS_VAMPIRE))
{
send_to_char( "Only useful on vampire targets.\n\r",ch);
return;
}
if (IS_NPC(victim))
{
send_to_char( "Only useful on vampire targets.\n\r",ch);
return;
}
sprintf(buf,"You examine $N's blood carefully.\n\r");
act(buf,ch,NULL,victim,TO_CHAR);
sprintf(buf,"$n examines your blood carefully.\n\r");
act(buf,ch,NULL,victim,TO_VICT);
sprintf(buf,"$n examines $N's blood carefully.\n\r");
act(buf,ch,NULL,victim,TO_NOTVICT);
send_to_char("\n\r",ch);
send_to_char("\n\r",victim);
if (victim->pcdata->rank == AGE_ANCILLA) sprintf( age, "Ancilla");
else if (victim->pcdata->rank == AGE_CHILDE) sprintf( age, "Childe");
else if (victim->pcdata->rank == AGE_NEONATE) sprintf( age, "Neonate");
else if (victim->pcdata->rank == AGE_ELDER) sprintf( age, "Elder");
else if (victim->pcdata->rank == AGE_METHUSELAH) sprintf( age, "Methuselah");
if (victim->lord == NULL) sprintf(lord, "None");
else sprintf(lord, "%s",victim->lord);
sprintf( lin,
"---------------------------------------------------------------------------\n\r");
send_to_char( lin,ch);
send_to_char(
" Vampire Status\n\r",ch);
send_to_char(lin,ch);
sprintf(buf,
"Generation:%d Bloodpool:%d Age:%s Lord:%s\n\r",
victim->generation,victim->pcdata->condition[COND_THIRST],
age,lord);
send_to_char(buf,ch);
send_to_char(lin,ch);
send_to_char(
" Disciplines\n\r",ch);
send_to_char(lin,ch);
sprintf(buf,
"Animalism: [%d] Celerity: [%d] Fortitude: [%d]\n\r",
victim->power[DISC_VAMP_ANIM],
victim->power[DISC_VAMP_CELE],
victim->power[DISC_VAMP_FORT]);
send_to_char(buf,ch);
sprintf(buf,
"Obtenebration:[%d] Presence: [%d] Quietus: [%d]\n\r",
victim->power[DISC_VAMP_OBTE],
victim->power[DISC_VAMP_PRES],
victim->power[DISC_VAMP_QUIE]);
send_to_char(buf,ch);
sprintf(buf,
"Thaumaturgy: [%d] Auspex: [%d] Dominate: [%d]\n\r",
victim->power[DISC_VAMP_THAU],
victim->power[DISC_VAMP_AUSP],
victim->power[DISC_VAMP_DOMI]);
send_to_char(buf,ch);
sprintf(buf,
"Obfuscate: [%d] Potence: [%d] Protean: [%d]\n\r",
victim->power[DISC_VAMP_OBFU],
victim->power[DISC_VAMP_POTE],
victim->power[DISC_VAMP_PROT]);
send_to_char(buf,ch);
sprintf(buf,
"Serpentis: [%d] Vicissitude:[%d] Daimoinon: [%d]\n\r",
victim->power[DISC_VAMP_SERP],
victim->power[DISC_VAMP_VICI],
victim->power[DISC_VAMP_DAIM]);
send_to_char(buf,ch);
send_to_char(lin,ch);
return;
}
void do_shadowstep( CHAR_DATA *ch, char *argument)
{
CHAR_DATA *victim;
char arg[MAX_INPUT_LENGTH];
if ( IS_NPC(ch) )
return;
argument = one_argument (argument, arg);
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r",ch);
return;
}
if (ch->power[DISC_VAMP_OBTE] < 4)
{
send_to_char("You must obtain at least level 4 in Obtenebration to use this power.\n\r",ch);
return;
}
if ( arg[0] == '\0' )
{
send_to_char( "Shadowstep to who?\n\r", ch );
return;
}
if ( ( victim = get_char_world( ch, arg ) ) == NULL )
{
send_to_char( "They aren't here.\n\r", ch );
return;
}
if (!IS_IMMUNE(victim, IMM_SUMMON))
{
send_to_char("He doesnt want you near him!\n\r",ch);
return;
}
/*
if (IS_NPC(victim))
{
send_to_char("Not to mobs!\n\r",ch);
return;
}
*/
if (ch == victim)
{
send_to_char("But you're already at yourself!\n\r",ch);
return;
}
if (IS_NPC(victim) && (!room_is_dark(victim->in_room)))
{
send_to_char("You cant find a shadow in his room.\n\r",ch);
return;
}
if (victim->in_room == ch->in_room)
{
send_to_char("But you're already there!\n\r",ch);
return;
}
char_from_room(ch);
char_to_room(ch,victim->in_room);
act("You step into the shadows and appear before $N.", ch, NULL, victim, TO_CHAR);
act("$n appears out of the shadows before $N.", ch, NULL, victim, TO_NOTVICT);
act("$n appears from the shadows in front of you.", ch, NULL, victim, TO_VICT);
do_look(ch,"auto");
return;
}
void do_earthmeld( CHAR_DATA *ch, char *argument )
{
char arg[MAX_INPUT_LENGTH];
char buf[MAX_STRING_LENGTH];
CHAR_DATA *mount;
one_argument( argument, arg );
if ( IS_NPC(ch) )
return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r",ch);
return;
}
if ( ch->power[DISC_VAMP_PROT] < 4 )
{
send_to_char("You must obtain at least level 4 Protean to use Earthmeld.\n\r",ch);
return;
}
if ( IS_AFFECTED(ch, AFF_POLYMORPH) )
{
send_to_char( "Not while polymorphed.\n\r", ch );
return;
}
if (has_timer(ch)) return;
if ( IS_NPC(ch) || IS_EXTRA(ch,EXTRA_EARTHMELD) )
{
REMOVE_BIT(ch->affected_by, AFF_SHIFT);
REMOVE_BIT(ch->extra, EXTRA_EARTHMELD);
REMOVE_BIT(ch->act, PLR_WIZINVIS);
if (IS_HEAD(ch,LOST_HEAD)) REMOVE_BIT(ch->loc_hp[0],LOST_HEAD);
free_string(ch->morph);
ch->morph = str_dup("");
ch->level = 3;
ch->trust = 3;
send_to_char( "You rise up from the ground.\n\r", ch );
sprintf(buf, "%s rises up from the ground",ch->name);
act(buf,ch,NULL,NULL,TO_ROOM);
return;
}
if ( (mount = ch->mount) != NULL) do_dismount(ch,"");
SET_BIT(ch->affected_by, AFF_SHIFT);
SET_BIT(ch->extra, EXTRA_EARTHMELD);
SET_BIT(ch->act, PLR_WIZINVIS);
free_string(ch->morph);
ch->morph = str_dup("Someone");
ch->level = 4;
ch->trust = 4;
send_to_char( "You sink into the ground.\n\r", ch );
sprintf(buf, "%s sinks into the ground.",ch->name);
act(buf,ch,NULL,NULL,TO_ROOM);
return;
}
/*
void do_burrow( CHAR_DATA *ch, char *argument )
{
char buf[MAX_STRING_LENGTH];
CHAR_DATA *mount;
if ( IS_NPC(ch) )
return;
if (!IS_CLASS(ch, CLASS_WEREWOLF))
{
send_to_char("Huh?\n\r",ch);
return;
}
if ( ch->power[DISC_WERE_BOAR] < 5 )
{
send_to_char("You must obtain at least level 5 boar to use burrow.\n\r",ch);
return;
}
if ( IS_NPC(ch) || IS_EXTRA(ch,EXTRA_EARTHMELD) )
{
REMOVE_BIT(ch->affected_by, AFF_SHIFT);
REMOVE_BIT(ch->extra, EXTRA_EARTHMELD);
REMOVE_BIT(ch->act, PLR_WIZINVIS);
if (IS_HEAD(ch,LOST_HEAD)) REMOVE_BIT(ch->loc_hp[0],LOST_HEAD);
free_string(ch->morph);
ch->morph = str_dup("");
ch->level = 3;
ch->trust = 3;
send_to_char( "You rise up from your burrow.\n\r", ch );
sprintf(buf, "%s rises up from a hole",ch->name);
act(buf,ch,NULL,NULL,TO_ROOM);
return;
}
if ( (mount = ch->mount) != NULL) do_dismount(ch,"");
SET_BIT(ch->affected_by, AFF_SHIFT);
SET_BIT(ch->extra, EXTRA_EARTHMELD);
SET_BIT(ch->act, PLR_WIZINVIS);
free_string(ch->morph);
ch->morph = str_dup("Someone");
ch->level = 4;
ch->trust = 4;
send_to_char( "You burrow into the ground.\n\r", ch );
sprintf(buf, "%s burrow into the ground.",ch->name);
act(buf,ch,NULL,NULL,TO_ROOM);
return;
}
void do_burrow( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
CHAR_DATA *victim;
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if ( !IS_CLASS(ch, CLASS_WEREWOLF) )
{
send_to_char("Huh?\n\r",ch);
return;
}
if ( ch->power[DISC_WERE_BOAR] < 5 )
{
send_to_char("You need the Boar totem to 5!\n\r", ch);
return;
}
if ( arg[0] == '\0' )
{
send_to_char("Burrow to who?\n\r", ch);
return;
}
if ( ( victim = get_char_world( ch, arg ) ) == NULL )
{
send_to_char( "They are not here.\n\r", ch );
return;
}
if ( IS_NPC(victim) )
{
send_to_char( "Not on NPC's.\n\r", ch );
return;
}
if (IS_IMMUNE(victim, IMM_TRAVEL))
{
send_to_char("I don't think they want you to do that.\n\r",ch);
return;
}
if ( victim == ch )
{
send_to_char( "You cannot burrow to yourself.\n\r", ch);
return;
}
if ( victim->level != LEVEL_AVATAR || !IS_CLASS(victim, CLASS_WEREWOLF))
{
send_to_char( "Nothing happens.\n\r", ch );
return;
}
if (victim->in_room == NULL)
{
send_to_char( "Nothing happens.\n\r", ch );
return;
}
send_to_char("You burrow into the ground.\n\r",ch);
act("$n burrows into the ground.",ch,NULL,NULL,TO_ROOM);
char_from_room(ch);
char_to_room(ch,victim->in_room);
do_look(ch,"");
send_to_char("You burrow out of the ground.\n\r",ch);
act("$n burrows out of the ground.",ch,NULL,NULL,TO_ROOM);
return;
}
*/
void do_serenity( CHAR_DATA *ch, char *argument )
{
if ( IS_NPC(ch) )
return;
if(!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("huh?.\n\r",ch);
return;
}
if (ch->power[DISC_VAMP_ANIM] < 2)
{
send_to_char("You must obtain at least level 2 in Animalism to use Song of Serenity.\n\r",ch);
return;
}
if (IS_CLASS(ch, CLASS_VAMPIRE) && ch->beast < 1)
{
if ( ch->rage < 1 )
{
send_to_char("Your beast doesn't control your actions.\n\r",ch);
return;
}
send_to_char("You chant a soft tune and pacify your inner beast.\n\r",ch);
act("$n chants a soft tune and pacifies their inner beast.",ch,NULL,NULL,TO_ROOM);
ch->rage = 0;
if (IS_VAMPAFF(ch, VAM_NIGHTSIGHT)) do_nightsight(ch,"");
if (IS_VAMPAFF(ch, VAM_FANGS)) do_fangs(ch,"");
if (IS_VAMPAFF(ch, VAM_CLAWS)) do_claws(ch,"");
WAIT_STATE(ch,12);
return;
}
else
{
send_to_char("Only those who achieve Golconda can sing the Song of Serenity.\n\r",ch);
return;
}
}
void do_theft( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
char arg [MAX_INPUT_LENGTH];
char buf [MAX_INPUT_LENGTH];
int bloodpool;
int blpr; /* Blood sucked storage variable. Shakti */
argument = one_argument( argument, arg );
if (ch->generation <= 0)
ch->generation = 4;
{
if (IS_SET(ch->newbits, NEW_TIDE))
bloodpool = (3000 / ch->generation);
else bloodpool = (2000 / ch->generation);
}
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char( "Huh?\n\r", ch );
return;
}
if (ch->power[DISC_VAMP_THAU] < 4)
{
send_to_char("You must obtain at least level 4 in Thaumaturgy to use Theft of Vitae.\n\r",ch);
return;
}
if ( arg[0] == '\0' )
{
send_to_char( "Steal blood from whom?\n\r", ch );
return;
}
if (IS_AFFECTED(ch,AFF_POLYMORPH) && !IS_VAMPAFF(ch,VAM_DISGUISED))
{
send_to_char( "Not while polymorphed.\n\r", ch );
return;
}
if ( ( victim = get_char_room( ch, arg ) ) == NULL )
{
send_to_char( "They aren't here.\n\r", ch );
return;
}
if (IS_NPC(victim) && IS_SET(victim->act, ACT_NOAUTOKILL)) {
send_to_char("You can't do that to them.\n\r", ch );
return;}
/*
if ( IS_NPC(victim) )
{
send_to_char( "Lower life forms are immune to Theft of Vitae.\n\r", ch);
return;
}
*/
if (!IS_NPC(victim) && victim->pcdata->condition[COND_THIRST] <= 0)
{
send_to_char( "There isn't enough blood to steal.\n\r", ch);
return;
}
if (!IS_NPC(victim) && IS_IMMORTAL(victim) && victim != ch )
{
send_to_char( "You can only steal blood from Avatar's or lower.\n\r", ch );
return;
}
if (is_safe(ch,victim) == TRUE) return;
if (!IS_NPC(victim)) {
sprintf(buf,"A stream of blood shoots from %s into your body.",victim->name);
act(buf,ch,NULL,victim,TO_CHAR);
sprintf(buf,"A stream of blood shoots from %s into %s.",victim->name,ch->name);
act(buf,ch,NULL,victim,TO_ROOM);
sprintf(buf,"A stream of blood shoots from your body into %s.",ch->name);
act(buf,ch,NULL,victim,TO_VICT);
} else {
sprintf(buf,"A stream of blood shoots from %s into your body.",victim->short_descr);
act(buf,ch,NULL,victim,TO_CHAR);
sprintf(buf,"A stream of blood shoots from %s into %s.",victim->short_descr,ch->name);
act(buf,ch,NULL,victim,TO_ROOM);
sprintf(buf,"A stream of blood shoots from your body into %s.",ch->name);
act(buf,ch,NULL,victim,TO_VICT);
}
ch->pcdata->condition[COND_THIRST] += number_range(10,15);
if (IS_NPC(victim))
{
/* Raw-killing it from one theft is stupid. Im going to use the primal */
/* stat on the mobs for blood its quick, effective, and straightford, AND */
/* no new fields have to be added to the mob.Shakti 09/07/98 */
(blpr = number_range (30,40) );
(victim->practice -=blpr);
(ch->pcdata->condition[COND_THIRST] += blpr);
if (victim->practice < 0) {
sprintf(buf,"%s falls over dead.",victim->short_descr);
act(buf,ch,NULL,victim,TO_ROOM);
act(buf,ch,NULL,victim,TO_CHAR);
raw_kill(victim);}
if (ch->pcdata->condition[COND_THIRST] >= bloodpool /ch->generation)
{
ch->pcdata->condition[COND_THIRST] = bloodpool / ch->generation;
}
if (ch->fighting == NULL) set_fighting(ch,victim);
return;
}
if (IS_SET(victim->act, PLR_ACID))
{
send_to_char("Their blood is a deadly acid!\n\r", ch);
ch->hit -= 300;
victim->pcdata->condition[COND_THIRST] -= 30;
return;
}
if (!IS_NPC(victim))
{
victim->pcdata->condition[COND_THIRST] -=number_range(30,40);
}
if (ch->pcdata->condition[COND_THIRST] >= bloodpool / ch->generation)
{
ch->pcdata->condition[COND_THIRST] = bloodpool /ch->generation;
}
if (victim->pcdata->condition[COND_THIRST] <= 0)
{
victim->pcdata->condition[COND_THIRST] = 0;
}
if (ch->fighting == NULL) set_fighting(ch,victim);
return;
}
void do_demonform( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
char buf [MAX_STRING_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_DEMON))
{
send_to_char("Huh?\n\r",ch);
return;
}
/*if (ch->power[DISC_VAMP_VICI] < 4)
{
send_to_char("You must obtain at least level 4 in Vicissitude to
use Zuloform.\n\r",ch);
return;
}*/
if (!IS_DEMPOWER( ch, DEM_FORM) && IS_CLASS(ch,CLASS_DEMON))
{
send_to_char("You haven't been granted the gift of demonform.\n\r",ch);
return;
}
/*if (IS_EXTRA(ch,EXTRA_DRAGON))
{
send_to_char("You cannot unzulo while a dragon.\n\r",ch);
return;
}*/
if (IS_POLYAFF(ch, POLY_ZULOFORM))
{
REMOVE_BIT(ch->polyaff, POLY_ZULOFORM);
REMOVE_BIT(ch->affected_by, AFF_POLYMORPH);
act( "You transform into human form.", ch, NULL, NULL, TO_CHAR );
act( "$n's shrinks back into human form.", ch, NULL, NULL, TO_ROOM
);
/* ch->max_hit = ch->max_hit - 1500;
ch->hit = ch->hit - 1500;
if (ch->hit < 1) ch->hit = 1;
*/
ch->damroll = - 150;
ch->hitroll = - 150;
clear_stats(ch);
free_string( ch->morph );
ch->morph = str_dup( "" );
return;
}
else if (IS_AFFECTED(ch,AFF_POLYMORPH))
{
send_to_char("You cant demon form when changed.\n\r",ch);
return;
}
/*if ( ch->pcdata->condition[COND_THIRST] < 200 )
{
send_to_char("You have insufficient blood.\n\r",ch);
return;
}*/
if (ch->stance[0] != -1) do_stance(ch,"");
if (ch->mounted == IS_RIDING) do_dismount(ch,"");
/*ch->pcdata->condition[COND_THIRST] -= number_range(100,200);*/
act( "You transform into a huge demon.", ch, NULL, NULL, TO_CHAR
);
act( "$n's body grows and distorts into a huge demon.", ch, NULL,
NULL, TO_ROOM );
/*
clear_stats(ch);
if (ch->wpn[0] > 0)
{
ch->hitroll += (ch->wpn[0]);
ch->damroll += (ch->wpn[0]);
ch->armor -= (ch->wpn[0] * 3);
}
*/
ch->pcdata->mod_str = 15;
ch->pcdata->mod_dex = 15;
SET_BIT(ch->polyaff, POLY_ZULOFORM);
SET_BIT(ch->affected_by, AFF_POLYMORPH);
if (!str_cmp(ch->name,"Sage")) sprintf(buf,"Sage the Coder");
else sprintf(buf, "A huge hulking demon");
free_string( ch->morph );
ch->morph = str_dup( buf );
/*ch->max_hit = + 500;
ch->hit = + 500;*/
ch->damroll = + 150;
ch->hitroll = + 150;
return;
}
void do_zuloform( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
char buf [MAX_STRING_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r",ch);
return;
}
if (ch->power[DISC_VAMP_VICI] < 2)
{
send_to_char("You must obtain at least level 2 in Vicissitude to use Zuloform.\n\r",ch);
return;
}
if (IS_EXTRA(ch,EXTRA_DRAGON))
{
send_to_char("You cannot unzulo while a dragon.\n\r",ch);
return;
}
if (IS_POLYAFF(ch, POLY_ZULOFORM))
{
REMOVE_BIT(ch->polyaff, POLY_ZULOFORM);
REMOVE_BIT(ch->affected_by, AFF_POLYMORPH);
act( "You transform into human form.", ch, NULL, NULL, TO_CHAR );
act( "$n's shrinks back into human form.", ch, NULL, NULL, TO_ROOM );
ch->max_hit = ch->max_hit - 1500;
ch->hit = ch->hit - 1500;
if (ch->hit < 1) ch->hit = 1;
ch->damroll = ch->damroll / 1.4;
ch->hitroll = ch->hitroll / 1.4;
free_string( ch->morph );
ch->morph = str_dup( "" );
return;
}
else if (IS_AFFECTED(ch,AFF_POLYMORPH))
{
send_to_char("You cant zulo when changed.\n\r",ch);
return;
}
if ( ch->pcdata->condition[COND_THIRST] < 200 )
{
send_to_char("You have insufficient blood.\n\r",ch);
return;
}
if (ch->stance[0] != -1) do_stance(ch,"");
if (ch->mounted == IS_RIDING) do_dismount(ch,"");
ch->pcdata->condition[COND_THIRST] -= number_range(100,200);
act( "You transform into large beast.", ch, NULL, NULL, TO_CHAR );
act( "$n's body grows and distorts into a large beast.", ch, NULL, NULL, TO_ROOM );
/*
clear_stats(ch);
if (ch->wpn[0] > 0)
{
ch->hitroll += (ch->wpn[0]);
ch->damroll += (ch->wpn[0]);
ch->armor -= (ch->wpn[0] * 3);
}
*/
ch->pcdata->mod_str = 15;
ch->pcdata->mod_dex = 15;
SET_BIT(ch->polyaff, POLY_ZULOFORM);
SET_BIT(ch->affected_by, AFF_POLYMORPH);
if (!str_cmp(ch->name,"Infidel")) sprintf(buf,"Infidel the Coder");
else sprintf(buf, "A big black monster");
free_string( ch->morph );
ch->morph = str_dup( buf );
ch->max_hit = ch->max_hit + 1500;
ch->hit = ch->hit + 1500;
ch->damroll = ch->damroll * 1.4;
ch->hitroll = ch->hitroll * 1.4;
return;
}
void do_shift( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
int toform = 0;
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_WEREWOLF))
{
send_to_char("Huh?\n\r",ch);
return;
}
if ( arg[0] == '\0' )
{
send_to_char( "You can shift between the following forms: Homid, Glabro, Crinos, Hispo, Lupus.\n\r", ch );
return;
}
if ( !str_cmp(arg,"homid" ) ) toform = 1;
else if ( !str_cmp(arg,"glabro") ) toform = 2;
else if ( !str_cmp(arg,"crinos") ) toform = 3;
else if ( !str_cmp(arg,"hispo" ) ) toform = 4;
else if ( !str_cmp(arg,"lupus" ) ) toform = 5;
else
{
send_to_char( "You can shift between the following forms: Homid, Glabro, Crinos, Hispo, Lupus.\n\r", ch );
return;
}
if ( ch->pcdata->stats[UNI_FORM0] < 1 || ch->pcdata->stats[UNI_FORM0] > 5)
ch->pcdata->stats[UNI_FORM0] = 1;
if ( ch->pcdata->stats[UNI_FORM0] == toform )
{
send_to_char( "You are already in that form.\n\r", ch );
return;
}
ch->pcdata->stats[UNI_FORM1] = toform;
return;
}
void horn args((CHAR_DATA *ch));
/* claw and fang commands */
void declaw(CHAR_DATA *ch)
{
if (!IS_VAMPAFF(ch, VAM_CLAWS)) return;
send_to_char("You retract your claws.\n\r",ch);
act("$n retracts $s claws.",ch, NULL, NULL, TO_ROOM);
REMOVE_BIT(ch->pcdata->stats[UNI_AFF], VAM_CLAWS);
}
void dehorn(CHAR_DATA *ch)
{
if (!IS_VAMPAFF(ch, VAM_HORNS)) return;
send_to_char("Your horns burrow back into your skull.\n\r",ch);
act("$n's horns retract into $s skull.",ch, NULL, NULL, TO_ROOM);
REMOVE_BIT(ch->pcdata->stats[UNI_AFF], VAM_HORNS);
}
/*
void do_horns(CHAR_DATA *ch, char *argument)
{
if (IS_CLASS(ch, CLASS_DEMON))
{
if (ch->power[DISC_DAEM_ATTA] < 4)
{
stc("Huh?\n\r",ch);
return;
}
}
else
{
stc("Huh?\n\r",ch);
return;
}
WAIT_STATE(ch, 8);
if (IS_VAMPAFF(ch, VAM_HORNS)) dehorn(ch);
else horn(ch);
}
*/
void horn(CHAR_DATA *ch)
{
OBJ_DATA *obj;
if (IS_VAMPAFF(ch, VAM_HORNS)) return;
/* Only certain demons may use their horns */
if (ch->power[DISC_DAEM_ATTA] < 4) return;
send_to_char("Sharp horns grow out of your skull.\n\r",ch);
act("Sharp horns grow out of $n's skull.",ch, NULL, NULL, TO_ROOM);
if ( (obj = get_eq_char(ch, WEAR_HEAD)) != NULL)
{
act("Your horns shred $p.", ch, obj, NULL, TO_CHAR);
act("$n's horns shred $p.", ch, obj, NULL, TO_ROOM);
extract_obj(obj);
}
SET_BIT(ch->pcdata->stats[UNI_AFF], VAM_HORNS);
}
void defang(CHAR_DATA *ch)
{
if (!IS_VAMPAFF(ch, VAM_FANGS)) return;
send_to_char("Your fangs slide back into your gums.\n\r",ch);
act("$n retracts $s fangs back into $s gums.",ch, NULL, NULL, TO_ROOM);
REMOVE_BIT(ch->pcdata->stats[UNI_AFF], VAM_FANGS);
}
void do_claws(CHAR_DATA *ch, char *argument)
{
if (ch->cur_form != 0 && !form_data[ch->cur_form].can_use_claws )
{
send_to_char("You cannot use your claws in this form.\n\r", ch);
return;
}
if (IS_CLASS(ch, CLASS_WEREWOLF))
{
if (ch->power[DISC_WERE_WOLF] < 1)
{
stc("Huh?\n\r",ch);
return;
}
}
else if (IS_CLASS(ch, CLASS_DEMON) || IS_SET(ch->special, SPC_CHAMPION))
{
if (!IS_DEMPOWER( ch, DEM_CLAWS))
{
send_to_char("You haven't been granted the gift of claws.\n\r",ch);
return;
}
}
else if (IS_CLASS(ch, CLASS_VAMPIRE))
{
if (ch->power[DISC_VAMP_PROT] < 2)
{
stc("Huh?\n\r",ch);
return;
}
}
else
{
stc("Huh?\n\r",ch);
return;
}
if (IS_VAMPAFF(ch, VAM_CLAWS))
{
if (IS_CLASS(ch, CLASS_VAMPIRE) || IS_CLASS(ch, CLASS_DEMON))
{
if (ch->rage >0)
{
send_to_char("You cannot retract your claws while the beast is within you.\n\r", ch);
return;
}
}
send_to_char("You retract your claws.\n\r",ch);
act("$n retracts $s claws.",ch, NULL, NULL, TO_ROOM);
REMOVE_BIT(ch->pcdata->stats[UNI_AFF], VAM_CLAWS);
}
else
{
send_to_char("Wicked claws extend from your fingers.\n\r",ch);
act("Long sharp claws extend from $n's fingers.",ch, NULL, NULL, TO_ROOM);
remove_obj( ch, WEAR_WIELD, TRUE );
remove_obj( ch, WEAR_HOLD, TRUE );
remove_obj( ch, WEAR_THIRD, TRUE );
remove_obj( ch, WEAR_FOURTH, TRUE );
SET_BIT(ch->pcdata->stats[UNI_AFF], VAM_CLAWS);
}
}
void do_fangs(CHAR_DATA *ch, char *argument)
{
if (ch->cur_form != 0 && !form_data[ch->cur_form].can_use_claws )
{
send_to_char("You cannot use your fangs in this form.\n\r", ch);
return;
}
if (IS_CLASS(ch, CLASS_WEREWOLF))
{
if (ch->power[DISC_WERE_WOLF] < 2)
{
stc("Huh?\n\r",ch);
return;
}
}
else if (IS_CLASS(ch, CLASS_DEMON) || IS_SET(ch->special, SPC_CHAMPION))
{
if (!IS_DEMPOWER( ch, DEM_FANGS))
{
send_to_char("You haven't been granted the gift of fangs.\n\r",ch);
return;
}
}
else if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
stc("Huh?\n\r",ch);
return;
}
if (IS_VAMPAFF(ch, VAM_FANGS))
{
if (IS_CLASS(ch, CLASS_VAMPIRE) || IS_CLASS(ch, CLASS_DEMON))
{
if (ch->rage >0)
{
send_to_char("You cannot retract your fangs while the beast is within you.\n\r", ch);
return;
}
}
send_to_char("Your fangs slide back into your gums.\n\r",ch);
act("$n retracts $s fangs back into $s gums.",ch, NULL, NULL, TO_ROOM);
REMOVE_BIT(ch->pcdata->stats[UNI_AFF], VAM_FANGS);
}
else
{
send_to_char("Sharp fangs slide out of your gums.\n\r",ch);
act("Sharp fangs slide out of $n's gums.",ch, NULL, NULL, TO_ROOM);
SET_BIT(ch->pcdata->stats[UNI_AFF], VAM_FANGS);
}
}
void do_nightsight( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (IS_CLASS(ch, CLASS_WEREWOLF))
{
if ( ch->gifts[METIS] < 3 )
{
send_to_char("You haven't learned the Metis gift Eyes of the Cat.\n\r",ch);
return;
}
}
else if (IS_CLASS(ch, CLASS_DEMON) || IS_SET(ch->special, SPC_CHAMPION))
{
if (!IS_DEMPOWER( ch, DEM_EYES))
{
send_to_char("You haven't been granted the gift of nightsight.\n\r",ch);
return;
}
}
else if (IS_CLASS(ch, CLASS_MONK) )
{
if ( ch->monkab[AWARE] < 1 )
{
stc("You must obtain level one in Awareness to use Nightsight.\n\r",ch);
return;
}
}
else if (!IS_CLASS(ch, CLASS_VAMPIRE) )
{
send_to_char("Huh?\n\r",ch);
return;
}
if (IS_CLASS(ch, CLASS_VAMPIRE) && ch->power[DISC_VAMP_PROT] < 1 &&
ch->power[DISC_VAMP_OBTE] < 3)
{
send_to_char("You must obtain at least level 1 in Protean or 3 in Obtenebration.\n\r",ch);
return;
}
if (IS_CLASS(ch, CLASS_VAMPIRE) && ch->rage > 0)
{
send_to_char("Not while your beast is in control.\n\r",ch);
return;
}
if (IS_VAMPAFF(ch,VAM_NIGHTSIGHT) )
{
send_to_char("The red glow in your eyes fades.\n\r",ch);
act("The red glow in $n's eyes fades.", ch, NULL, NULL, TO_ROOM);
REMOVE_BIT(ch->pcdata->stats[UNI_AFF], VAM_NIGHTSIGHT);
return;
}
send_to_char("Your eyes start glowing red.\n\r",ch);
act("$n's eyes start glowing red.", ch, NULL, NULL, TO_ROOM);
SET_BIT(ch->pcdata->stats[UNI_AFF], VAM_NIGHTSIGHT);
return;
}
void do_inconnu( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
char buf [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE) )
{
send_to_char("Huh?\n\r",ch);
return;
}
if (ch->pcdata->rank == AGE_ELDER && ch->generation > 2)
{
send_to_char("You must be at least an Elder to become an Inconnu.\n\r",ch);
return;
}
if (IS_SET(ch->special, SPC_INCONNU))
{
send_to_char("But you are already an Inconnu!\n\r",ch);
return;
}
if (ch->exp < 1000000)
{
send_to_char("It costs 1000000 exp to become an Inconnu.\n\r",ch);
return;
}
if (IS_SET(ch->special, SPC_ANARCH)) REMOVE_BIT(ch->special, SPC_ANARCH);
ch->exp -= 1000000;
send_to_char("You are now an Inconnu.\n\r",ch);
sprintf(buf,"%s is now an Inconnu!",ch->name);
do_info(ch,buf);
SET_BIT(ch->special, SPC_INCONNU);
return;
}
void do_shadowsight( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (IS_CLASS(ch, CLASS_WEREWOLF) && ch->power[DISC_WERE_HAWK] < 2)
{
stc("Huh?\n\r",ch);
return;
}
else if ( IS_CLASS(ch, CLASS_MONK) && ch->monkab[AWARE] < 2 )
{
stc("Huh?\n\r",ch);
return;
}
else if ( IS_CLASS(ch, CLASS_VAMPIRE) && ch->power[DISC_VAMP_OBTE] < 2)
{
send_to_char("Huh?\n\r",ch);
return;
}
/*
if (ch->power[DISC_VAMP_OBTE] < 2 )
{
send_to_char("You must obtain at least Level 2 Obtenebration to use Shadowsight.\n\r",ch);
return;
}
*/
// }
if (IS_AFFECTED(ch,AFF_SHADOWSIGHT) )
{
send_to_char("You can no longer see between planes.\n\r",ch);
REMOVE_BIT(ch->affected_by, AFF_SHADOWSIGHT);
return;
}
if (IS_CLASS(ch, CLASS_VAMPIRE) && ch->pcdata->condition[COND_THIRST] < 10)
{
send_to_char("You have insufficient blood.\n\r",ch);
return;
}
if (IS_CLASS(ch, CLASS_VAMPIRE))
ch->pcdata->condition[COND_THIRST] -= number_range(5,10);
send_to_char("You can now see between planes.\n\r",ch);
SET_BIT(ch->affected_by, AFF_SHADOWSIGHT);
return;
}
void do_bite( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
char arg [MAX_INPUT_LENGTH];
char buf [MAX_INPUT_LENGTH];
int clancount;
bool outcast = FALSE;
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char("Huh?\n\r",ch);
return;
}
clancount = 0;
if (ch->power[DISC_VAMP_PROT] >= 1) clancount = clancount + 1;
if (ch->power[DISC_VAMP_CELE] >= 1) clancount = clancount + 1;
if (ch->power[DISC_VAMP_FORT] >= 1) clancount = clancount + 1;
if (ch->power[DISC_VAMP_POTE] >= 1) clancount = clancount + 1;
if (ch->power[DISC_VAMP_OBFU] >= 1) clancount = clancount + 1;
if (ch->power[DISC_VAMP_OBTE] >= 1) clancount = clancount + 1;
if (ch->power[DISC_VAMP_SERP] >= 1) clancount = clancount + 1;
if (ch->power[DISC_VAMP_AUSP] >= 1) clancount = clancount + 1;
if (ch->power[DISC_VAMP_DOMI] >= 1) clancount = clancount + 1;
if (ch->power[DISC_VAMP_PRES] >= 1) clancount = clancount + 1;
if (ch->power[DISC_VAMP_VICI] >= 1) clancount = clancount + 1;
if (ch->power[DISC_VAMP_THAU] >= 1) clancount = clancount + 1;
if (ch->power[DISC_VAMP_ANIM] >= 1) clancount = clancount + 1;
if (ch->power[DISC_VAMP_QUIE] >= 1) clancount = clancount + 1;
if ( clancount < 3 )
{
send_to_char( "First you need to master 3 disciplines.\n\r", ch );
return;
}
if ( arg[0] == '\0' )
{
send_to_char( "Bite whom?\n\r", ch );
return;
}
if ( ( victim = get_char_room( ch, arg ) ) == NULL )
{
send_to_char( "They aren't here.\n\r", ch );
return;
}
if ( IS_NPC(victim) )
{
send_to_char( "Not on NPC's.\n\r", ch );
return;
}
if ( IS_IMMORTAL(victim) )
{
send_to_char( "Not on Immortal's.\n\r", ch );
return;
}
if ( ch == victim )
{
send_to_char( "You cannot bite yourself.\n\r", ch );
return;
}
if (victim->class != 0) {
send_to_char("Not on them.\n\r", ch );
return;}
if ( victim->level != LEVEL_AVATAR && !IS_IMMORTAL(victim) )
{
send_to_char( "You can only bite avatars.\n\r", ch );
return;
}
if (!IS_NEWFLAG(victim, AFF_ALLOW_VAMP))
{
stc("They are not a willing subject.\n\r",ch);
return;
}
if (!IS_VAMPAFF(ch,VAM_FANGS))
{
send_to_char("First you better get your fangs out!\n\r",ch);
return;
}
if (IS_VAMPAFF(ch,VAM_DISGUISED))
{
send_to_char("You must reveal your true nature to bite someone.\n\r",ch);
return;
}
if (ch->exp < 1000)
{
send_to_char("You cannot afford the 1000 exp to create a childe.\n\r",ch);
return;
}
if (ch->beast > 0)
ch->beast += 1;
ch->exp = ch->exp - 1000;
act("You sink your teeth into $N.", ch, NULL, victim, TO_CHAR);
act("$n sinks $s teeth into $N.", ch, NULL, victim, TO_NOTVICT);
act("$n sinks $s teeth into your neck.", ch, NULL, victim, TO_VICT);
victim->class=CLASS_VAMPIRE;
set_learnable_disciplines(victim);
if ( victim->generation != 0 && (victim->generation <= ( ch->generation = 13 ) ) )
if ( victim->generation != 0 )
{
save_char_obj(ch);
save_char_obj(victim);
send_to_char( "Your vampiric status has been restored.\n\r", victim );
return;
}
else outcast = TRUE;
send_to_char( "You are now a vampire.\n\r", victim );
victim->generation = ch->generation = 13;
free_string(victim->lord);
if (ch->generation == 1)
victim->lord=str_dup(ch->name);
else
{
sprintf(buf,"%s %s",ch->lord,ch->name);
victim->lord=str_dup(buf);
}
if (ch->generation != 1)
{
if (victim->pcdata->stats[UNI_CURRENT] == -1)
victim->pcdata->stats[UNI_CURRENT] = victim->pcdata->stats[UNI_AFF];
/* Remove hp bonus from fortitude */
if (IS_VAMPPASS(victim,VAM_FORTITUDE) && !IS_VAMPAFF(victim,VAM_FORTITUDE))
{
victim->max_hit = victim->max_hit - 50;
victim->hit = victim->hit - 50;
if (victim->hit < 1) victim->hit = 1;
}
/* Remove any old powers they might have */
if (IS_VAMPPASS(victim,VAM_PROTEAN))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_PROTEAN);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_PROTEAN);}
if (IS_VAMPPASS(victim,VAM_CELERITY))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_CELERITY);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_CELERITY);}
if (IS_VAMPPASS(victim,VAM_FORTITUDE))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_FORTITUDE);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_FORTITUDE);}
if (IS_VAMPPASS(victim,VAM_POTENCE))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_POTENCE);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_POTENCE);}
if (IS_VAMPPASS(victim,VAM_OBFUSCATE))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_OBFUSCATE);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_OBFUSCATE);}
if (IS_VAMPPASS(victim,VAM_OBTENEBRATION))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_OBTENEBRATION);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_OBTENEBRATION);}
if (IS_VAMPPASS(victim,VAM_SERPENTIS))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_SERPENTIS);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_SERPENTIS);}
if (IS_VAMPPASS(victim,VAM_AUSPEX))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_AUSPEX);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_AUSPEX);}
if (IS_VAMPPASS(victim,VAM_DOMINATE))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_DOMINATE);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_DOMINATE);}
if (IS_VAMPPASS(victim,VAM_PRESENCE))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_PRESENCE);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_PRESENCE);}
if (IS_VAMPPASS(victim,VAM_VICISSITUDE))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_VICISSITUDE);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_VICISSITUDE);}
if (IS_VAMPPASS(victim,VAM_THAU))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_THAU);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_THAU);}
if (IS_VAMPPASS(victim,VAM_ANIMAL))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_ANIMAL);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_ANIMAL);}
if (IS_VAMPPASS(victim,VAM_QUIETUS))
{REMOVE_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_QUIETUS);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_QUIETUS);}
/* Give the vampire the base powers of their sire */
if (IS_VAMPPASS(ch,VAM_FORTITUDE) && !IS_VAMPAFF(victim,VAM_FORTITUDE))
{
victim->max_hit = victim->max_hit + 50;
victim->hit = victim->hit + 50;
}
if (IS_VAMPPASS(ch,VAM_PROTEAN))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_PROTEAN);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_PROTEAN);}
if (IS_VAMPPASS(ch,VAM_CELERITY))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_CELERITY);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_CELERITY);}
if (IS_VAMPPASS(ch,VAM_FORTITUDE))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_FORTITUDE);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_FORTITUDE);}
if (IS_VAMPPASS(ch,VAM_POTENCE))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_POTENCE);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_POTENCE);}
if (IS_VAMPPASS(ch,VAM_OBFUSCATE))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_OBFUSCATE);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_OBFUSCATE);}
if (IS_VAMPPASS(ch,VAM_OBTENEBRATION))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_OBTENEBRATION);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_OBTENEBRATION);}
if (IS_VAMPPASS(ch,VAM_SERPENTIS))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_SERPENTIS);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_SERPENTIS);}
if (IS_VAMPPASS(ch,VAM_AUSPEX))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_AUSPEX);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_AUSPEX);}
if (IS_VAMPPASS(ch,VAM_DOMINATE))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_DOMINATE);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_DOMINATE);}
if (IS_VAMPPASS(ch,VAM_PRESENCE))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_PRESENCE);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_PRESENCE);}
if (IS_VAMPPASS(ch,VAM_VICISSITUDE))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_VICISSITUDE);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_VICISSITUDE);}
if (IS_VAMPPASS(ch,VAM_THAU))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_THAU);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_THAU);}
if (IS_VAMPPASS(ch,VAM_ANIMAL))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_ANIMAL);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_ANIMAL);}
if (IS_VAMPPASS(ch,VAM_QUIETUS))
{SET_BIT(victim->pcdata->stats[UNI_CURRENT], VAM_QUIETUS);
SET_BIT(victim->pcdata->stats[UNI_AFF], VAM_QUIETUS);}
}
save_char_obj(ch);
save_char_obj(victim);
return;
}
void do_claw( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
char arg [MAX_INPUT_LENGTH];
char buf [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_WEREWOLF))
{
do_claws(ch,"");
return;
}
if ( arg[0] == '\0' )
{
send_to_char( "Claw whom?\n\r", ch );
return;
}
if ( ( victim = get_char_room( ch, arg ) ) == NULL )
{
send_to_char( "They aren't here.\n\r", ch );
return;
}
if ( IS_NPC(victim) )
{
send_to_char( "Not on NPC's.\n\r", ch );
return;
}
if ( ch == victim )
{
send_to_char( "You cannot claw yourself.\n\r", ch );
return;
}
if (victim->class != 0) {
send_to_char("Not on them.\n\r", ch );
return;}
if ( victim->level != LEVEL_AVATAR && !IS_IMMORTAL(victim) )
{
send_to_char( "You can only claw avatars.\n\r", ch );
return;
}
if (!IS_NEWFLAG(victim, AFF_ALLOW_WERE))
{
stc("You are unable to infect your victim.\n\r",ch);
return;
}
if (!IS_VAMPAFF(ch,VAM_CLAWS))
{
send_to_char("First you better get your claws out!\n\r",ch);
return;
}
if (ch->exp < 10000)
{
send_to_char("You cannot afford the 10000 exp to pass on the gift.\n\r",ch);
return;
}
ch->exp = ch->exp - 10000;
if (ch->pcdata->stats[UNI_CURRENT] < 1) ch->pcdata->stats[UNI_CURRENT] = 1;
else ch->pcdata->stats[UNI_CURRENT] += 1;
if (IS_SET(ch->special,SPC_SIRE)) REMOVE_BIT(ch->special,SPC_SIRE);
act("You plunge your claws into $N.", ch, NULL, victim, TO_CHAR);
act("$n plunges $s claws into $N.", ch, NULL, victim, TO_NOTVICT);
act("$n plunges $s claws into your chest.", ch, NULL, victim, TO_VICT);
victim->class=CLASS_WEREWOLF;
set_learnable_disciplines(victim);
send_to_char( "You are now a werewolf.\n\r", victim );
victim->generation = ch->generation + 1;
free_string(victim->lord);
if (ch->generation == 1)
victim->lord=str_dup(ch->name);
else
{
sprintf(buf,"%s %s",ch->lord,ch->name);
victim->lord=str_dup(buf);
}
victim->pcdata->stats[UNI_AFF] = 0;
victim->pcdata->stats[UNI_CURRENT] = 0;
save_char_obj(ch);
save_char_obj(victim);
return;
}
void do_class( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
char arg1 [MAX_INPUT_LENGTH];
char arg2 [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg1 );
argument = one_argument( argument, arg2 );
if ( IS_NPC(ch) ) return;
if ( arg1[0] == '\0' || arg2[0] == '\0' )
{
send_to_char( "Syntax: class <char> <class>.\n\r", ch );
send_to_char(" Classes:\n\r", ch );
send_to_char("None, ", ch);
send_to_char("Demon, ", ch);
send_to_char("Demon Lord , ", ch);
send_to_char("Purple Mage, Blue Mage, Yellow Mage, Green Mage, Red Mage, ", ch);
send_to_char("Werewolf, ", ch);
send_to_char("Monk, ", ch);
send_to_char("Vampire, ", ch);
send_to_char("Drow. ", ch);
return;
}
if ( ( victim = get_char_world( ch, arg1 ) ) == NULL )
{
send_to_char( "That player is not here.\n\r", ch);
return;
}
if ( !str_cmp( arg2, "none" ) )
{
/* Used to make sure the person has enough "stuff" to change */
victim->pcdata->condition[COND_THIRST] = 10000;
victim->move = 10000;
victim->mana = 10000;
victim->power[DISC_WERE_BEAR] = 4;
victim->power[DISC_WERE_LYNX] = 4;
victim->power[DISC_WERE_BOAR] = 4;
victim->power[DISC_WERE_OWL] = 4;
victim->power[DISC_WERE_SPID] = 4;
victim->power[DISC_WERE_WOLF] = 4;
victim->power[DISC_WERE_HAWK] = 4;
victim->power[DISC_WERE_MANT] = 4;
if ( IS_CLASS(victim, CLASS_WEREWOLF)
|| IS_CLASS(victim, CLASS_VAMPIRE) ) do_unwerewolf(victim,"");
if (IS_VAMPAFF(victim,VAM_DISGUISED) ) do_mask(victim,"self");
victim->pcdata->stats[UNI_FORM0] = 0;
/* All classes in general */
if (IS_VAMPAFF(victim,VAM_FANGS) )
{
send_to_char("Your fangs slide back into your gums.\n\r",victim);
act("$N's fangs slide back into $s gums.", ch, NULL, victim, TO_ROOM);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_FANGS);
}
if (IS_CLASS(victim, CLASS_VAMPIRE) && IS_VAMPAFF(victim,VAM_CLAWS) )
{
send_to_char("Your claws slide back under your nails.\n\r",victim);
act("$N's claws slide back under $s nails.", ch, NULL, victim, TO_ROOM);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_CLAWS);
}
else if (IS_CLASS(victim, CLASS_WEREWOLF) && IS_VAMPAFF(victim,VAM_CLAWS) )
{
send_to_char("Your talons slide back into your fingers.\n\r",victim);
act("$N's talons slide back into $s fingers.",ch,NULL,victim,TO_ROOM);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_CLAWS);
}
if (IS_VAMPAFF(victim,VAM_NIGHTSIGHT) )
{
send_to_char("The red glow in your eyes fades.\n\r",victim);
act("The red glow in $N's eyes fades.", ch, NULL, victim, TO_ROOM);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_NIGHTSIGHT);
}
if (IS_AFFECTED(victim,AFF_SHADOWSIGHT) )
{
send_to_char("You can no longer see between planes.\n\r",victim);
REMOVE_BIT(victim->affected_by, AFF_SHADOWSIGHT);
}
if (IS_IMMUNE(victim,IMM_SHIELDED) )
{
send_to_char("You stop shielding your aura.\n\r",victim);
REMOVE_BIT(victim->immune, IMM_SHIELDED);
}
if (IS_VAMPAFF(victim,VAM_DISGUISED) )
{
free_string( victim->morph );
victim->morph = str_dup( victim->name );
send_to_char("You transform into yourself.\n\r", victim);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_DISGUISED);
}
if (IS_AFFECTED(victim,AFF_SHADOWPLANE) )
{
send_to_char("You fade back into the real world.\n\r",victim);
act("The shadows flicker and $N fades into existance.",ch,NULL,victim,TO_ROOM);
REMOVE_BIT(victim->affected_by,AFF_SHADOWPLANE);
do_look(ch,"auto");
}
if (IS_SET(victim->act, PLR_WIZINVIS) )
{
REMOVE_BIT(victim->act, PLR_WIZINVIS);
send_to_char( "You slowly fade into existence.\n\r", victim );
}
if (IS_SET(victim->act, PLR_HOLYLIGHT) )
{
REMOVE_BIT(victim->act, PLR_HOLYLIGHT);
send_to_char( "Your senses return to normal.\n\r", victim );
}
/* Demon Stuff */
if (IS_DEMAFF(victim,DEM_HORNS) && IS_CLASS(victim, CLASS_DEMON) )
{
send_to_char("Your horns slide back into your head.\n\r",victim);
act("$N's horns slide back into $s head.", ch, NULL, victim, TO_ROOM);
REMOVE_BIT(victim->pcdata->powers[DPOWER_CURRENT], DEM_HORNS);
}
if (IS_DEMAFF(victim,DEM_HOOVES) && IS_CLASS(victim, CLASS_DEMON) )
{
send_to_char("Your hooves transform into feet.\n\r",victim);
act("$N's hooves transform back into $s feet.", ch, NULL,victim,TO_ROOM);
REMOVE_BIT(victim->pcdata->powers[DPOWER_CURRENT], DEM_HOOVES);
}
if (IS_DEMAFF(victim,DEM_WINGS) && IS_CLASS(victim, CLASS_DEMON) )
{
if (IS_DEMAFF(victim,DEM_UNFOLDED) && IS_CLASS(victim, CLASS_DEMON) )
{
send_to_char("Your wings fold up behind your back.\n\r",victim);
act("$N's wings fold up behind $s back.", ch, NULL, victim, TO_ROOM);
REMOVE_BIT(victim->pcdata->powers[DPOWER_CURRENT], DEM_UNFOLDED);
}
send_to_char("Your wings slide into your back.\n\r",victim);
act("$N's wings slide into $s back.", ch, NULL, victim, TO_ROOM);
REMOVE_BIT(victim->pcdata->powers[DPOWER_CURRENT], DEM_WINGS);
}
if ( IS_EXTRA(victim, EXTRA_OSWITCH) )
{
do_humanform(victim,"");
}
REMOVE_BIT(victim->special, SPC_CHAMPION );
REMOVE_BIT(victim->special, SPC_INCONNU );
REMOVE_BIT(victim->special, SPC_ANARCH );
REMOVE_BIT(victim->special, SPC_DEMON_LORD);
REMOVE_BIT(victim->special, SPC_DROW_WAR );
REMOVE_BIT(victim->special, SPC_DROW_MAG );
REMOVE_BIT(victim->special, SPC_DROW_CLE );
REMOVE_BIT(victim->affected_by, AFF_POLYMORPH);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_CHANGED);
REMOVE_BIT(victim->pcdata->powers[WOLF_POLYAFF], POLY_MIST);
REMOVE_BIT(victim->affected_by, AFF_ETHEREAL);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_FLYING);
REMOVE_BIT(victim->pcdata->stats[UNI_AFF], VAM_SONIC);
REMOVE_BIT(victim->pcdata->powers[WOLF_POLYAFF], POLY_BAT);
REMOVE_BIT(victim->pcdata->powers[WOLF_POLYAFF], POLY_WOLF);
victim->pcdata->powers[DPOWER_FLAGS] = 0;
victim->pcdata->stats[DEMON_TOTAL] = 0;
victim->pcdata->stats[DEMON_CURRENT] = 0;
victim->power[DISC_WERE_BEAR] = 0;
victim->power[DISC_WERE_LYNX] = 0;
victim->power[DISC_WERE_BOAR] = 0;
victim->power[DISC_WERE_OWL] = 0;
victim->power[DISC_WERE_SPID] = 0;
victim->power[DISC_WERE_WOLF] = 0;
victim->power[DISC_WERE_HAWK] = 0;
victim->pcdata->powers[1] = 0;
victim->pcdata->condition[COND_THIRST] = 0;
victim->move = victim->max_move;
victim->mana = victim->max_mana;
victim->hit = victim->max_hit;
victim->pcdata->rank = 0;
victim->rage = 0;
free_string(victim->lord);
victim->lord = str_dup( "" );
victim->generation = 0;
victim->pcdata->stats[UNI_AFF] = 0;
victim->pcdata->stats[UNI_CURRENT] = -1;
victim->beast = 15;
victim->class = 0;
victim->trust = 0;
victim->level = 2;
send_to_char("You are classless now!\n\r", victim);
}
else if ( !str_cmp( arg2, "demon" ) )
{
victim->class = CLASS_DEMON;
set_learnable_disciplines(victim);
send_to_char("You are now a demon!\n\r", victim);
}
else if (!str_cmp(arg2,"drow" )){
victim->class = CLASS_DROW;}
else if ( !str_cmp( arg2, "dlord" ) )
{
victim->class = 1;
victim->level = 3;
set_learnable_disciplines(victim);
send_to_char("You are now a Demon Lord!\n\r", victim);
}
else if ( !str_cmp( arg2, "purplemage" ) )
{
victim->class = 2;
if ( victim->trust > 6 )
{
victim->trust = victim->trust;
}
else
{
victim->trust = 6;
}
victim->level = 6;
victim->pcdata->powers[MPOWER_RUNE0] = 0;
victim->pcdata->powers[MPOWER_RUNE1] = 2047;
victim->pcdata->powers[MPOWER_RUNE2] = 1023;
victim->pcdata->powers[MPOWER_RUNE3] = 15;
send_to_char("You are now a purple mage!\n\r", victim);
}
else if ( !str_cmp( arg2, "redmage" ) )
{
victim->class = 2;
if ( victim->trust > 6 )
{
victim->trust=victim->trust;
}
else
{
victim->trust = 6;
}
victim->level = 6;
victim->pcdata->powers[MPOWER_RUNE0] = 1;
victim->pcdata->powers[MPOWER_RUNE1] = 2047;
victim->pcdata->powers[MPOWER_RUNE2] = 1023;
victim->pcdata->powers[MPOWER_RUNE3] = 15;
send_to_char("You are now a red mage!\n\r", victim);
}
else if ( !str_cmp( arg2, "yellowmage" ) )
{
victim->class = 2;
if ( victim->trust > 6 )
{
victim->trust=victim->trust;
}
else
{
victim->trust = 6;
}
victim->level = 6;
victim->pcdata->powers[MPOWER_RUNE0] = 4;
victim->pcdata->powers[MPOWER_RUNE1] = 2047;
victim->pcdata->powers[MPOWER_RUNE2] = 1023;
victim->pcdata->powers[MPOWER_RUNE3] = 15;
send_to_char("You are now a yellow mage!\n\r", victim);
}
else if ( !str_cmp( arg2, "bluemage" ) )
{
victim->class = 2;
if ( victim->trust > 6 )
{
victim->trust=victim->trust;
}
else
{
victim->trust = 6;
}
victim->level = 6;
victim->pcdata->powers[MPOWER_RUNE0] = 2;
victim->pcdata->powers[MPOWER_RUNE1] = 2047;
victim->pcdata->powers[MPOWER_RUNE2] = 1023;
victim->pcdata->powers[MPOWER_RUNE3] = 15;
send_to_char("You are now a blue mage!\n\r", victim);
}
else if ( !str_cmp( arg2, "greenmage" ) )
{
victim->class = 2;
if ( victim->trust > 6 )
{
victim->trust=victim->trust;
}
else
{
victim->trust = 6;
}
victim->level = 6;
victim->pcdata->powers[MPOWER_RUNE0] = 3;
victim->pcdata->powers[MPOWER_RUNE1] = 2047;
victim->pcdata->powers[MPOWER_RUNE2] = 1023;
victim->pcdata->powers[MPOWER_RUNE3] = 15;
send_to_char("You are now a green mage!\n\r", victim);
}
else if ( !str_cmp( arg2, "werewolf" ) )
{
victim->class = CLASS_WEREWOLF;
victim->generation = 5;
set_learnable_disciplines(victim);
send_to_char("You are now a werewolf!\n\r", victim);
}
else if ( !str_cmp( arg2, "vampire" ) )
{
victim->class = CLASS_VAMPIRE;
victim->generation = 13;
victim->beast = 30;
set_learnable_disciplines(victim);
send_to_char("You are now a vampire!\n\r", victim);
}
else if ( !str_cmp( arg2, "highlander" ) )
{
victim->class = 16;
victim->level = 3;
send_to_char("You are now a highlander!\n\r", victim);
}
else if ( !str_cmp( arg2, "monk" ) )
{
victim->class = CLASS_MONK;
victim->level = 3;
send_to_char("You are now a monk!\n\r", victim);
}
else if ( !str_cmp( arg2, "drow" ) )
{
victim->class = 32;
send_to_char("You are now a drow!\n\r", victim);
}
else if ( !str_cmp( arg2, "ninja" ) )
{
victim->class = 128;
send_to_char("You are now a ninja!\n\r", victim);
}
else
{
send_to_char( "Syntax: class <char> <class>.\n\r", ch );
send_to_char(" Classes:\n\r", ch );
send_to_char("None, ", ch);
send_to_char("Demon, ", ch);
send_to_char("Demon Lord , ", ch);
send_to_char("Purple Mage, Blue Mage, Yellow Mage, \n\rGreen Mage, Red Mage, ", ch);
send_to_char("Werewolf, ", ch);
send_to_char("Vampire, ", ch);
send_to_char("Monk, ", ch);
send_to_char("Drow.\n\r",ch);
send_to_char("Ninja.\n\r",ch);
return;
}
send_to_char("Class Set.\n\r",ch);
return;
}
void do_generation( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
int gen;
char arg1 [MAX_INPUT_LENGTH];
char arg2 [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg1 );
argument = one_argument( argument, arg2 );
if ( IS_NPC(ch) ) return;
if ( arg1[0] == '\0' || arg2[0] == '\0' )
{
send_to_char( "Syntax: generation <char> <generation>.\n\r", ch );
send_to_char("Generation 1 is a Master <Class> and 2 is clan leader.\n\r", ch);
return;
}
if ( ( victim = get_char_world( ch, arg1 ) ) == NULL )
{
send_to_char( "That player is not here.\n\r", ch);
return;
}
gen = is_number( arg2 ) ? atoi( arg2 ) : -1;
send_to_char("Generation Set.\n\r",ch);
victim->generation = gen;
return;
}
void do_darkside( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_IMMUNE(ch, IMM_DEMON))
{
/*
send_to_char("That would be a very bad idea...\n\r",ch);
return;
*/
send_to_char("You will now allow Lloth to turn you to the dark side.\n\r",ch);
SET_BIT(ch->immune, IMM_DEMON);
return;
}
send_to_char("You will no longer allow Lloth into your mind.\n\r",ch);
REMOVE_BIT(ch->immune, IMM_DEMON);
return;
}
void do_arms( CHAR_DATA *ch, char *argument )
{
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_HIGHLANDER))
{
send_to_char("Huh?\n\r", ch);
return;
}
if (ch->practice < 75)
{
send_to_char( "It costs at least 75 points of primal energy to grow arms.\n\r", ch);
return;
}
SET_BIT(ch->newbits, THIRD_HAND);
SET_BIT(ch->newbits, FOURTH_HAND);
stc("You scream in pain as two hulking arms grow from your sides.\n\r",ch);
return;
}
void do_clan( CHAR_DATA *ch, char *argument )
{
char buf[MAX_STRING_LENGTH];
char arg[MAX_INPUT_LENGTH];
char lord[MAX_INPUT_LENGTH];
CHAR_DATA *gch;
one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_HIGHLANDER))
{
send_to_char("Huh?\n\r",ch);
return;
}
if (ch->generation < 3)
strcpy(lord,ch->name);
else strcpy(lord,ch->lord);
sprintf( buf, "The Highlanders of %s:\n\r", lord );
send_to_char( buf, ch );
send_to_char("#2[ Name ] [ Hits ] [ Mana ] [ Move ] [ Exp ]#n\n\r",ch);
for ( gch = char_list; gch != NULL; gch = gch->next )
{
if ( IS_NPC(gch) ) continue;
if ( !IS_CLASS(gch, CLASS_HIGHLANDER))
continue;
if ( !str_cmp(ch->lord,lord) || !str_cmp(ch->name,lord))
{
sprintf( buf,
"#2[#n%-18s#2] [#n%-6d#2] [#n%-6d#2] [#n%-6d#2] [#n%7d#2]#n\n\r",
capitalize( gch->name ),
gch->hit,gch->mana,gch->move, gch->exp);
send_to_char( buf, ch );
}
}
return;
}
void do_weaponteach( CHAR_DATA *ch, char *argument )
{
char buf [MAX_INPUT_LENGTH];
CHAR_DATA *victim;
char arg [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_HIGHLANDER))
{
send_to_char("Huh?\n\r",ch);
return;
}
if (arg[0] == '\0')
{
send_to_char( "Teach who the basics of weapons?\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 ( ch == victim )
{
send_to_char("Not on yourself.\n\r", ch );
return;
}
if (victim->class != 0)
{
send_to_char("You can't make a classed person a highlander.\n\r", ch);
return;}
if ( victim->level != LEVEL_AVATAR && !IS_IMMORTAL(victim) )
{
send_to_char( "Only on avatars.\n\r", ch );
return;
}
if (!IS_IMMUNE(victim,IMM_DEMON))
{
send_to_char( "Not on an unwilling person.\n\r", ch);
return;
}
if (ch->exp < 10000)
{
send_to_char("You cannot afford the 10,000 exp.\n\r",ch);
return;
}
ch->exp = ch->exp - 10000;
act("You make $N a highlander!", ch, NULL, victim, TO_CHAR);
act("$n makes $N a highlander!", ch, NULL, victim, TO_NOTVICT);
act("$n makes you a highlander!", ch, NULL, victim, TO_VICT);
victim->class=16;
victim->class=CLASS_HIGHLANDER;
victim->special=0;
if (IS_CLASS(victim, CLASS_VAMPIRE)) do_mortalvamp(victim,"");
REMOVE_BIT(victim->act, PLR_HOLYLIGHT);
REMOVE_BIT(victim->act, PLR_WIZINVIS);
REMOVE_BIT(victim->special, SPC_SIRE);
REMOVE_BIT(victim->special, SPC_ANARCH);
victim->rage = 0;
victim->generation = ch->generation + 1;
victim->special = 0;
free_string(victim->morph);
victim->morph=str_dup("");
free_string(victim->lord);
if (ch->generation == 1)
victim->lord=str_dup(ch->name);
else
{
sprintf(buf,"%s %s",ch->lord,ch->name);
victim->lord=str_dup(buf);
}
save_char_obj(ch);
save_char_obj(victim);
return;
}
void reset_weapon( CHAR_DATA *ch, int dtype )
{
if ( ch->wpn[dtype] > 200 )
ch->wpn[dtype] = 200;
return;
}
void reset_spell( CHAR_DATA *ch, int dtype )
{
if ( ch->spl[dtype] > 200 )
ch->spl[dtype] = 200;
return;
}
void do_stake( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
OBJ_DATA *stake;
char arg [MAX_INPUT_LENGTH];
int blood;
stc("You plunge a stake into a Fuzzy little bunny, who is a wizended whore, which spreads it's plagues throughout the lands with a large dildo and a man named Thomas. On Tuesdays he spanks his father. Thank you.\n\r",ch);
return;
argument = one_argument( argument, arg );
if (IS_NPC( ch )) return;
if ( arg[0] == '\0' )
{
send_to_char( "Stake whom?\n\r", ch );
return;
}
if ( ( victim = get_char_room( ch, arg ) ) == NULL )
{
send_to_char( "They aren't here.\n\r", ch );
return;
}
stake = get_eq_char( ch, WEAR_HOLD );
if ( stake == NULL || stake->item_type != ITEM_STAKE )
{
stake = get_eq_char( ch, WEAR_WIELD );
if ( stake == NULL || stake->item_type != ITEM_STAKE )
{
send_to_char( "How can you stake someone down without holding a stake?\n\r", ch );
return;
}
}
if ( IS_NPC(victim) )
{
send_to_char( "Not on NPC's.\n\r", ch );
return;
}
if ( ch == victim )
{
send_to_char( "You cannot stake yourself.\n\r", ch );
return;
}
if (!IS_CLASS(victim, CLASS_VAMPIRE))
{
send_to_char( "You can only stake vampires.\n\r", ch );
return;
}
if (victim->position > POS_MORTAL)
{
send_to_char( "You can only stake down a vampire who is mortally wounded.\n\r", ch );
return;
}
act("You plunge $p into $N's heart.", ch, stake, victim, TO_CHAR);
act("$n plunges $p into $N's heart.", ch, stake, victim, TO_NOTVICT);
send_to_char( "You feel a stake plunged through your heart.\n\r", victim );
if (IS_IMMUNE(victim,IMM_STAKE)) return;
/* Have to make sure they have enough blood to change back */
blood = victim->pcdata->condition[COND_THIRST];
victim->pcdata->condition[COND_THIRST] = 666;
/* To take care of vampires who have powers in affect. */
if (IS_VAMPAFF(victim,VAM_DISGUISED) ) do_mask(victim,"self");
if (IS_IMMUNE(victim,IMM_SHIELDED) ) do_shield(victim,"");
if (IS_AFFECTED(victim,AFF_SHADOWPLANE) ) do_shadowplane(victim,"");
if (IS_VAMPAFF(victim,VAM_FANGS) ) do_fangs(victim,"");
if (IS_VAMPAFF(victim,VAM_CLAWS) ) do_claws(victim,"");
if (IS_VAMPAFF(victim,VAM_NIGHTSIGHT) ) do_nightsight(victim,"");
if (IS_AFFECTED(victim,AFF_SHADOWSIGHT) ) do_shadowsight(victim,"");
if (IS_SET(victim->act,PLR_HOLYLIGHT) ) do_truesight(victim,"");
if (IS_VAMPAFF(victim,VAM_CHANGED) ) do_change(victim,"human");
if (IS_POLYAFF(victim,POLY_SERPENT) ) do_serpent(victim,"");
victim->rage = 0;
victim->pcdata->condition[COND_THIRST] = blood;
REMOVE_BIT(victim->class, CLASS_VAMPIRE);
obj_from_char(stake);
obj_to_char(stake,victim);
ch->exp = ch->exp + 1000;
victim->home = 3001;
return;
}
void do_mask( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
char arg [MAX_INPUT_LENGTH];
char buf [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_VAMPIRE))
{
send_to_char( "Huh?\n\r", ch );
return;
}
if (ch->power[DISC_VAMP_OBFU] < 2 )
{
send_tShowing the first 100 KB of 207.7 KB. Download the archive for the full file.