clan.c
myth/src/clan.c · 251.7 KB
From the archive myth.v3.0.tgz
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. *
***************************************************************************/
/**************************************************************
* Myth Mud improvements ALL by David Spink aka Morglum. *
* This mud is NOT to be copied in whole or in part! No one *
* has the permission to authorise the use of this code. *
* In order to use this code you MUST comply with the terms *
* and conditions in 'license.myth' (as shipped). *
**************************************************************/
#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 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_smother( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
char arg[MAX_INPUT_LENGTH];
one_argument( argument, arg );
if ( arg[0] == '\0' )
{
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() > 10 )
{
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);
}
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);
REMOVE_BIT(victim->more, MORE_FLAMES);
return;
}
/* Loads of Vampire powers follow. KaVir */
void do_fangs( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (IS_DEMON(ch) && !IS_VAMPIRE(ch) && !IS_WEREWOLF(ch))
{
if (!IS_SET(ch->pcdata->disc[C_POWERS], DEM_FANGS))
{
send_to_char("You haven't been granted the gift of fangs.\n\r",ch);
return;
}
}
else if (!IS_VAMPIRE(ch) && !IS_WEREWOLF(ch))
{
send_to_char("Huh?\n\r",ch);
return;
}
if (IS_VAMPIRE(ch) && ch->pcdata->wolf > 0)
{
send_to_char("Your beast won't let you retract your fangs.\n\r",ch);
return;
}
if (IS_VAMPAFF(ch,VAM_FANGS) )
{
send_to_char("Your fangs slide back into your gums.\n\r",ch);
act("$n's fangs slide back into $s gums.", ch, NULL, NULL, TO_ROOM);
REMOVE_BIT(ch->vampaff, VAM_FANGS);
return;
}
send_to_char("Your fangs extend out of your gums.\n\r",ch);
act("A pair of razor sharp fangs extend from $n's mouth.", ch, NULL, NULL, TO_ROOM);
SET_BIT(ch->vampaff, VAM_FANGS);
return;
}
void do_shift( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
char buf [MAX_INPUT_LENGTH];
/*
int toform = 0;
*/
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_WEREWOLF(ch))
{
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->wolfform[0] < 1 || ch->pcdata->wolfform[0] > 5)
ch->pcdata->wolfform[0] = 1;
if ( ch->pcdata->wolfform[0] == toform )
{
send_to_char( "You are already in that form.\n\r", ch );
return;
}
ch->pcdata->wolfform[1] = toform;
*/
if ( ch->pcdata->wolfform[1] <= FORM_HOMID )
{
if (IS_AFFECTED(ch, AFF_POLYMORPH))
{
send_to_char( "You can only change from homid form.\n\r", ch );
return;
}
if (ch->stance[0] != -1) do_stance(ch,"");
if (ch->mounted == IS_RIDING) do_dismount(ch,"");
if (!IS_VAMPAFF(ch,VAM_NIGHTSIGHT)) SET_BIT(ch->vampaff, VAM_NIGHTSIGHT);
if (!IS_VAMPAFF(ch,VAM_FANGS)) SET_BIT(ch->vampaff, VAM_FANGS);
if (!IS_VAMPAFF(ch,VAM_CLAWS)) SET_BIT(ch->vampaff, VAM_CLAWS);
send_to_char( "You transform into lupus form.\n\r", ch );
act( "$n transforms into a wolf.", ch, NULL, NULL, TO_ROOM );
clear_stats(ch);
SET_BIT(ch->polyaff, POLY_WOLF);
SET_BIT(ch->affected_by, AFF_POLYMORPH);
sprintf(buf, "%s the wolf", ch->name);
free_string( ch->morph );
ch->morph = str_dup( buf );
ch->pcdata->wolfform[1] = FORM_LUPUS;
return;
}
else
{
if ( ch->pcdata->wolfform[1] != FORM_LUPUS )
{
send_to_char( "You can only change from lupus form.\n\r", ch );
return;
}
if (IS_VAMPAFF(ch,VAM_CLAWS)) REMOVE_BIT(ch->vampaff, VAM_CLAWS);
if (IS_VAMPAFF(ch,VAM_FANGS)) REMOVE_BIT(ch->vampaff, VAM_FANGS);
if (IS_VAMPAFF(ch,VAM_NIGHTSIGHT)) REMOVE_BIT(ch->vampaff, VAM_NIGHTSIGHT);
send_to_char( "You transform into homid form.\n\r", ch );
act( "$n transforms into human form.", ch, NULL, NULL, TO_ROOM );
REMOVE_BIT(ch->polyaff, POLY_WOLF);
REMOVE_BIT(ch->affected_by, AFF_POLYMORPH);
clear_stats(ch);
free_string( ch->morph );
ch->morph = str_dup( "" );
ch->pcdata->wolfform[1] = FORM_HOMID;
if (ch->pcdata->wolf >= 100) ch->pcdata->wolf = 99;
return;
}
return;
}
void do_claws( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (IS_SET(ch->act, PLR_DEMON) || IS_SET(ch->act, PLR_CHAMPION))
{
if (!IS_SET(ch->pcdata->disc[C_POWERS], DEM_CLAWS))
{
send_to_char("You haven't been granted the gift of claws.\n\r",ch);
return;
}
}
else if (!IS_VAMPIRE(ch) && !IS_GHOUL(ch) && !IS_WEREWOLF(ch))
{
send_to_char("Huh?\n\r",ch);
return;
}
if ((IS_VAMPIRE(ch) || IS_GHOUL(ch)) && get_disc(ch,DISC_PROTEAN) < 2)
{
send_to_char("You require level 2 Protean to use Claws.\n\r",ch);
return;
}
if ((IS_VAMPIRE(ch) || IS_GHOUL(ch)) && !IS_ABOMINATION(ch) && ch->pcdata->wolf > 0)
{
send_to_char("Your beast won't let you retract your claws.\n\r",ch);
return;
}
if (IS_VAMPAFF(ch,VAM_CLAWS) )
{
if (IS_VAMPIRE(ch) || IS_GHOUL(ch))
{
send_to_char("Your claws slide back under your nails.\n\r",ch);
act("$n's claws slide back under $s nails.", ch, NULL, NULL, TO_ROOM);
}
else if (IS_WEREWOLF(ch) && get_auspice(ch, AUSPICE_AHROUN) > 3)
{
send_to_char("Your gleaming silver talons slide back into your fingers.\n\r",ch);
act("$n's gleaming silver talons slide back into $s fingers.",ch,NULL,NULL,TO_ROOM);
}
else
{
send_to_char("Your talons slide back into your fingers.\n\r",ch);
act("$n's talons slide back into $s fingers.",ch,NULL,NULL,TO_ROOM);
}
REMOVE_BIT(ch->vampaff, VAM_CLAWS);
return;
}
if (IS_VAMPIRE(ch) || IS_GHOUL(ch))
{
send_to_char("Sharp claws extend from under your finger nails.\n\r",ch);
act("Sharp claws extend from under $n's finger nails.", ch, NULL, NULL, TO_ROOM);
}
else if (IS_WEREWOLF(ch) && get_auspice(ch, AUSPICE_AHROUN) > 3)
{
send_to_char("Gleaming silver talons extend from your fingers.\n\r",ch);
act("Gleaming silver talons extend from $n's fingers.",ch,NULL,NULL,TO_ROOM);
}
else
{
send_to_char("Razor sharp talons extend from your fingers.\n\r",ch);
act("Razor sharp talons extend from $n's fingers.",ch,NULL,NULL,TO_ROOM);
}
SET_BIT(ch->vampaff, VAM_CLAWS);
return;
}
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_DEMON(ch))
{
if (!IS_SET(ch->pcdata->disc[C_POWERS], DEM_EYES))
{
send_to_char("You haven't been granted the gift of nightsight.\n\r",ch);
return;
}
}
else if (IS_WEREWOLF(ch))
{
if (get_breed(ch, BREED_METIS) < 1 && get_disc(ch, DISC_PROTEAN) < 1 &&
!IS_POLYAFF(ch, POLY_ZULO))
{
send_to_char("You require the level 1 Metis power to use Eyes of the Cat.\n\r",ch);
return;
}
}
else if (!IS_VAMPIRE(ch) && !IS_GHOUL(ch) )
{
send_to_char("Huh?\n\r",ch);
return;
}
if (((!IS_WEREWOLF(ch) || IS_ABOMINATION(ch)) && !IS_DEMON(ch)) &&
get_disc(ch,DISC_PROTEAN) < 1)
{
send_to_char("You require level 1 Protean to use Gleam of Red Eyes.\n\r",ch);
return;
}
else if ((IS_VAMPIRE(ch) || IS_GHOUL(ch)) && ch->pcdata->wolf > 0)
{
send_to_char("Not while your beast is in control.\n\r",ch);
return;
}
if (IS_VAMPAFF(ch,VAM_NIGHTSIGHT) )
{
if (IS_WEREWOLF(ch) && get_disc(ch, DISC_PROTEAN) < 1)
{
send_to_char("The green glow in your eyes fades.\n\r",ch);
act("The green glow in $n's eyes fades.", ch, NULL, NULL, TO_ROOM);
}
else
{
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->vampaff, VAM_NIGHTSIGHT);
return;
}
if (IS_WEREWOLF(ch) && get_disc(ch, DISC_PROTEAN) < 1)
{
send_to_char("Your eyes start glowing green.\n\r",ch);
act("$n's eyes start glowing green.", ch, NULL, NULL, TO_ROOM);
}
else
{
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->vampaff, VAM_NIGHTSIGHT);
return;
}
void do_majesty( 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_WEREWOLF(ch) && get_tribe(ch, TRIBE_SHADOW_LORDS) > 2)
{
do_icy(ch,"");
return;
}
if (!IS_VAMPIRE(ch) && !IS_GHOUL(ch) )
{
send_to_char("Huh?\n\r",ch);
return;
}
if (get_disc(ch,DISC_PRESENCE) < 5)
{
send_to_char("You require level 5 Presence to use Majesty.\n\r",ch);
return;
}
if (IS_ITEMAFF(ch,ITEMA_PEACE) )
{
send_to_char("You lower your Majesty.\n\r",ch);
act("$n no longer seems so imposing.", ch, NULL, NULL, TO_ROOM);
REMOVE_BIT(ch->itemaffect, ITEMA_PEACE);
ch->pcdata->majesty = 60;
return;
}
if (ch->pcdata->majesty > 0)
{
if (ch->pcdata->majesty > 1)
sprintf(buf,"You cannot raise your Majesty for another %d seconds.\n\r",ch->pcdata->majesty);
else
sprintf(buf,"You cannot raise your Majesty for another 1 second.\n\r");
send_to_char(buf,ch);
return;
}
send_to_char("Your raise your Majesty.\n\r",ch);
act("$n suddenly appears very imposing.", ch, NULL, NULL, TO_ROOM);
SET_BIT(ch->itemaffect, ITEMA_PEACE);
return;
}
void do_awe( 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_PRESENCE) < 1)
{
send_to_char("You require level 1 Presence to use Awe.\n\r",ch);
return;
}
if (IS_EXTRA(ch,EXTRA_AWE) )
{
send_to_char("You are no longer awe-inspiring.\n\r",ch);
act("$n no longer appears so awe-inspiring.", ch, NULL, NULL, TO_ROOM);
REMOVE_BIT(ch->extra, EXTRA_AWE);
return;
}
send_to_char("Your are now awe-inspiring.\n\r",ch);
act("$n suddenly appears very awe-inspiring.", ch, NULL, NULL, TO_ROOM);
SET_BIT(ch->extra, EXTRA_AWE);
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_DEMON(ch))
{
if (!IS_SET(ch->pcdata->disc[C_POWERS], DEM_SHADOWSIGHT))
{
send_to_char("You haven't been granted the gift of shadowsight.\n\r",ch);
return;
}
}
else if (!IS_WEREWOLF(ch))
{
send_to_char("Huh?\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;
}
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];
bool can_sire = FALSE;
int blood, sn, improve;
int ch_gen = ch->vampgen;
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_VAMPIRE(ch) || (ch->vampgen < 1))
{
send_to_char("Huh?\n\r",ch);
return;
}
if (is_affected(ch, gsn_potency)) ch_gen++;
if (ch->vampgen == 2 && strlen(ch->clan) < 2)
{
send_to_char("First you need to get a clan name.\n\r",ch);
return;
}
if (ch->pcdata->cland[0] == -1 ||
ch->pcdata->cland[1] == -1 ||
ch->pcdata->cland[2] == -1)
{
send_to_char("First you need to buy your disciplines.\n\r",ch);
return;
}
if (ch_gen > 6 || true_generation(ch,ch->lord) > 6)
can_sire = FALSE;
else if (ch->vampgen <= 2)
can_sire = TRUE;
else if (IS_EXTRA(ch, EXTRA_PRINCE))
can_sire = TRUE;
else if (IS_EXTRA(ch, EXTRA_SIRE))
can_sire = TRUE;
else
can_sire = FALSE;
if ( strlen( ch->clan ) < 3 )
can_sire = FALSE;
if (!can_sire)
{
send_to_char("You are not able to create any childer.\n\r",ch);
return;
}
if ( arg[0] == '\0' )
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_IMMUNE(victim, IMM_VAMPIRE))
{
send_to_char("They refuse to drink your blood.\n\r",ch);
return;
}
if ( ch == victim )
{
send_to_char( "You are already a vampire!\n\r", ch );
return;
}
if (IS_MAGE(victim))
{
send_to_char("They refuse to drink your blood.\n\r",ch);
return;
}
if ( victim->level != LEVEL_AVATAR && !IS_IMMORTAL(victim) )
{
send_to_char( "You can only make avatars into vampires.\n\r", ch );
return;
}
if (IS_WEREWOLF(victim))
{
send_to_char( "You are unable to create werevamps!\n\r", ch );
return;
}
if (IS_VAMPIRE(victim))
{
send_to_char( "But they are already a vampire!\n\r", ch );
return;
}
if (IS_DEMON(victim))
{
send_to_char( "Nothing happens.\n\r", ch );
return;
}
/*
if (IS_BORG(victim))
{
send_to_char( "You cannot turn the borg into vampires.\n\r", ch );
return;
}
*/
if ( ch->blood[BLOOD_CURRENT] < 10 )
{
send_to_char("You don't have enough blood.\n\r",ch);
return;
}
blood = number_range(5,10) * ch->blood[BLOOD_POTENCY];
ch->blood[BLOOD_CURRENT] -= blood;
victim->blood[BLOOD_CURRENT] += blood;
if (ch->beast > 0 && ch->beast < 100) ch->beast += 1;
act("You feed $N some blood from your open wrist.",ch,NULL,victim,TO_CHAR);
act("$n feeds $N some blood from $s open wrist.",ch,NULL,victim,TO_NOTVICT);
act("$n feeds you some blood from $s open wrist.", ch, NULL, victim, TO_VICT);
/* For Abominations */
if (IS_WEREWOLF(ch) && get_tribe(ch,TRIBE_GET_OF_FENRIS) > 0)
{
act("You scream in agony as the blood burns through your body!", victim, NULL, NULL, TO_CHAR);
act("$n screams in agony and falls to the ground...DEAD!", victim, NULL, NULL, TO_ROOM);
group_gain(ch,victim);
victim->form = 1;
killperson(ch,victim);
return;
}
if (IS_MAGE(victim))
{
send_to_char("You have lost your avatar!\n\r",victim);
victim->trust = 0;
victim->level = 3;
}
victim->class = CLASS_VAMPIRE;
if ( victim->vampgen != 0 )
{
do_autosave(ch,"");
do_autosave(victim,"");
send_to_char( "Your vampiric status has been restored.\n\r", victim );
return;
}
send_to_char( "You are now a vampire.\n\r", victim );
REMOVE_BIT(victim->extra, EXTRA_PREGNANT);
REMOVE_BIT(victim->extra, EXTRA_LABOUR);
REMOVE_BIT(ch->extra,EXTRA_SIRE);
victim->vampgen = ch_gen + 1;
update_gen(victim);
if (ch->vampgen == 1)
{
FILL_STRING( victim->lord, ch->name );
}
else
{
sprintf(buf,"%s %s",ch->lord,ch->name);
FILL_STRING( victim->lord, buf );
}
if (strlen(ch->clan) > 1)
{
FILL_STRING( victim->clan, ch->clan );
}
if (IS_MORE(ch, MORE_ANTITRIBU)) SET_BIT(victim->more, MORE_ANTITRIBU);
if ( ch->vampgen == 1 )
{
/* Second generation vampires chose all their disciplines */
victim->pcdata->cland[0] = -1;
victim->pcdata->cland[1] = -1;
victim->pcdata->cland[2] = -1;
}
else
{
/* They get the clan discipline */
improve = victim->pcdata->cland[0] = ch->pcdata->cland[0];
if ( improve >= 0 ) victim->pcdata->powers[improve] = -1;
/* They get their sires personal discipline */
improve = victim->pcdata->cland[1] = ch->pcdata->cland[2];
if ( improve >= 0 ) victim->pcdata->powers[improve] = -1;
/* They get to chose a discipline of their own */
victim->pcdata->cland[2] = -1;
}
for ( sn = 0; sn <= DISC_MAX; sn++ )
{
victim->pcdata->powers[sn] = 0;
}
do_autosave(victim,"");
return;
}
void do_claw( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
char arg [MAX_INPUT_LENGTH];
char buf [MAX_INPUT_LENGTH];
bool can_sire = FALSE;
int gifts;
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_WEREWOLF(ch) || (ch->vampgen < 1))
{
do_claws(ch,"");
return;
}
if (IS_EXTRA(ch,EXTRA_PRINCE)) can_sire = TRUE;
else if (IS_EXTRA(ch,EXTRA_SIRE)) can_sire = TRUE;
else if (ch->vampgen == 1 || ch->vampgen == 2) can_sire = TRUE;
else can_sire = FALSE;
if (ch->vampgen > 3) can_sire = FALSE;
if ( ch->class != CLASS_WEREWOLF )
can_sire = FALSE;
if ( strlen( ch->clan ) < 3 )
can_sire = FALSE;
if (!can_sire)
{
send_to_char("You are unable to spread your gift.\n\r",ch);
return;
}
if ( ch->vampgen == 2 )
{
if ( strlen(ch->clan) < 2 )
{
send_to_char( "First you need to create a tribe.\n\r", ch );
return;
}
if ( ch->pcdata->cland[2] == -1 )
{
send_to_char( "First you need to select a tribe gift.\n\r", 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 (IS_MAGE(victim))
{
send_to_char( "You cannot claw mages.\n\r", ch );
return;
}
if ( IS_IMMORTAL(victim) )
{
send_to_char( "You cannot claw immortals.\n\r", ch );
return;
}
if (IS_VAMPIRE(victim))
{
send_to_char( "You are unable to create werevamps!\n\r", ch );
return;
}
if (IS_DEMON(victim))
{
send_to_char( "But they have no soul!\n\r", ch );
return;
}
if (IS_GHOUL(victim))
{
send_to_char( "They have been tainted with Kindred blood.\n\r", ch );
return;
}
/*
if (IS_BORG(victim))
{
send_to_char( "You cannot turn the borg into werewolves.\n\r", ch );
return;
}
*/
if (IS_WEREWOLF(victim))
{
send_to_char( "But they are already a werewolf!\n\r", ch );
return;
}
if (!IS_IMMUNE(victim,IMM_VAMPIRE))
{
send_to_char( "You cannot claw an unwilling person.\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 (IS_EXTRA(ch,EXTRA_SIRE)) REMOVE_BIT(ch->extra,EXTRA_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;
victim->level = LEVEL_AVATAR;
victim->pcdata->cland[0] = gifts = number_range(0,2);
victim->pcdata->breed[gifts] = -1;
victim->pcdata->cland[1] = gifts = number_range(0,4);
victim->pcdata->auspice[gifts] = -1;
if ( ch->vampgen > 2 )
{
victim->pcdata->cland[2] = gifts = ch->pcdata->cland[2];
victim->pcdata->tribes[gifts] = -1;
}
else victim->pcdata->cland[2] = -1;
send_to_char( "You are now a werewolf.\n\r", victim );
victim->vampgen = ch->vampgen + 1;
free_string(victim->lord);
if (ch->vampgen == 1)
victim->lord=str_dup(ch->name);
else
{
sprintf(buf,"%s %s",ch->lord,ch->name);
victim->lord=str_dup(buf);
}
if (strlen(ch->clan) > 1)
{
FILL_STRING( victim->clan, ch->clan );
}
do_autosave(ch,"");
do_autosave(victim,"");
return;
}
void do_clanname( 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_VAMPIRE(ch) && !IS_WEREWOLF(ch))
|| ch->vampgen != 1 )
{
send_to_char( "Huh?\n\r", ch );
return;
}
if ( arg[0] == '\0' )
{
if (IS_VAMPIRE(ch))
send_to_char( "Who's clan do you wish to name?\n\r", ch );
else
send_to_char( "Who do you wish to give a tribe to?\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) ) return;
if ( victim->vampgen != 2 )
{
if (IS_VAMPIRE(ch))
send_to_char( "Only the Antediluvians may have clans.\n\r", ch );
else
send_to_char( "Only greater werewolves may own a tribe.\n\r", ch );
return;
}
if ( str_cmp(victim->clan,"") )
{
if (IS_VAMPIRE(ch))
send_to_char( "But they already have a clan!\n\r", ch );
else
send_to_char( "But they already have a tribe!\n\r", ch );
return;
}
smash_tilde( argument );
if ( strlen(argument) < 3 || strlen(argument) > 13 )
{
if (IS_VAMPIRE(ch))
send_to_char( "Clan name should be between 3 and 13 letters long.\n\r", ch );
else
send_to_char( "Tribe name should be between 3 and 13 letters long.\n\r", ch );
return;
}
free_string( victim->clan );
victim->clan = str_dup( argument );
if (IS_VAMPIRE(ch))
send_to_char( "Clan name set.\n\r", ch );
else
send_to_char( "Tribe name set.\n\r", ch );
return;
}
void do_clandisc( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
char buf [MAX_INPUT_LENGTH];
int improve, sn, col;
argument = one_argument( argument, arg );
if ( IS_NPC(ch) ) return;
if ( !IS_VAMPIRE(ch) )
{
send_to_char( "Huh?\n\r", ch );
return;
}
if ( arg[0] == '\0' )
{
send_to_char("--------------------------------------------------------------------------------\n\r",ch);
send_to_char(" -= Disciplines =-\n\r",ch);
send_to_char("--------------------------------------------------------------------------------\n\r",ch);
if ( ch->vampgen <= 2 )
{
/* Clan discipline */
improve = ch->pcdata->cland[0];
sprintf( buf, "Clan Discipline: %s.\n\r", disc_name(improve) );
send_to_char( buf, ch );
/* Personal discipline 1 */
improve = ch->pcdata->cland[1];
sprintf( buf, "Personal Discipline: %s.\n\r", disc_name(improve) );
send_to_char( buf, ch );
/* Personal discipline 2 */
improve = ch->pcdata->cland[2];
sprintf( buf, "Personal Discipline: %s.\n\r", disc_name(improve) );
send_to_char( buf, ch );
}
else
{
/* Clan discipline */
improve = ch->pcdata->cland[0];
sprintf( buf, "Clan Discipline: %s.\n\r", disc_name(improve) );
send_to_char( buf, ch );
/* Sires discipline */
improve = ch->pcdata->cland[1];
sprintf( buf, "Sires Discipline: %s.\n\r", disc_name(improve) );
send_to_char( buf, ch );
/* Personal discipline */
improve = ch->pcdata->cland[2];
sprintf( buf, "Personal Discipline: %s.\n\r", disc_name(improve) );
send_to_char( buf, ch );
}
send_to_char("--------------------------------------------------------------------------------\n\r",ch);
if ( ch->pcdata->cland[2] >= 0 ) return;
send_to_char("Please select another discipline from the list below.\n\r",ch);
send_to_char("--------------------------------------------------------------------------------\n\r",ch);
col = 0;
for ( sn = 0; sn <= DISC_MAX; sn++ )
{
if ( ch->pcdata->powers[sn] != 0 ) continue;
sprintf( buf, "%-15s ", disc_name( sn ) );
send_to_char( buf, ch );
if ( ++col % 3 == 0 ) send_to_char( "\n\r", ch );
}
if ( col % 3 != 0 ) send_to_char( "\n\r", ch );
send_to_char("--------------------------------------------------------------------------------\n\r",ch);
return;
}
if (!str_cmp(arg,"animalism"))
improve = DISC_ANIMALISM;
else if (!str_cmp(arg,"auspex"))
improve = DISC_AUSPEX;
else if (!str_cmp(arg,"celerity"))
improve = DISC_CELERITY;
else if (!str_cmp(arg,"chimerstry"))
improve = DISC_CHIMERSTRY;
else if (!str_cmp(arg,"daimoinon"))
improve = DISC_DAIMOINON;
else if (!str_cmp(arg,"dominate"))
improve = DISC_DOMINATE;
else if (!str_cmp(arg,"fortitude"))
improve = DISC_FORTITUDE;
else if (!str_cmp(arg,"melpominee"))
improve = DISC_MELPOMINEE;
else if (!str_cmp(arg,"necromancy"))
improve = DISC_NECROMANCY;
else if (!str_cmp(arg,"obeah"))
improve = DISC_OBEAH;
else if (!str_cmp(arg,"obfuscate"))
improve = DISC_OBFUSCATE;
else if (!str_cmp(arg,"obtenebration"))
improve = DISC_OBTENEBRATION;
else if (!str_cmp(arg,"potence"))
improve = DISC_POTENCE;
else if (!str_cmp(arg,"presence"))
improve = DISC_PRESENCE;
else if (!str_cmp(arg,"protean"))
improve = DISC_PROTEAN;
else if (!str_cmp(arg,"quietus"))
improve = DISC_QUIETUS;
else if (!str_cmp(arg,"serpentis"))
improve = DISC_SERPENTIS;
else if (!str_cmp(arg,"thanatosis"))
improve = DISC_THANATOSIS;
else if (!str_cmp(arg,"thaumaturgy"))
improve = DISC_THAUMATURGY;
else if (!str_cmp(arg,"vicissitude"))
improve = DISC_VICISSITUDE;
else
{
send_to_char("You know of no such discipline.\n\r",ch);
return;
}
if (ch->pcdata->cland[0] == improve ||
ch->pcdata->cland[1] == improve ||
ch->pcdata->cland[2] == improve)
{
send_to_char("You already know that discipline.\n\r",ch);
return;
}
if ( ch->vampgen < 3 || ch->class != CLASS_VAMPIRE )
{
if ( ch->pcdata->cland[0] < 0 )
ch->pcdata->cland[0] = improve;
else if ( ch->pcdata->cland[1] < 0 )
ch->pcdata->cland[1] = improve;
else if ( ch->pcdata->cland[2] < 0 )
ch->pcdata->cland[2] = improve;
else
{
send_to_char("All of your discipline slots are full.\n\r",ch);
return;
}
ch->pcdata->powers[improve] = -1;
send_to_char("Ok.\n\r",ch);
}
else
{
if ( ch->pcdata->cland[2] < 0 )
ch->pcdata->cland[2] = improve;
else
{
send_to_char("Your discipline slot is full.\n\r",ch);
return;
}
ch->pcdata->powers[improve] = -1;
send_to_char("Ok.\n\r",ch);
}
return;
}
void do_mask( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
char arg [MAX_INPUT_LENGTH];
char buf [MAX_STRING_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if ( get_disc(ch,DISC_OBFUSCATE) < 2 && get_breed(ch,BREED_HOMID) < 5)
{
send_to_char( "Huh?\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_EXTRA(ch, EXTRA_VICISSITUDE))
{
send_to_char( "You are unable to change your appearance.\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 mask avatars or lower.\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_MASK))
{
send_to_char("Nothing happens.\n\r",ch);
return;
}
sprintf(buf,"$n's form shimmers and transforms into a clone of %s.",ch->name);
act(buf,ch,NULL,NULL,TO_ROOM);
REMOVE_BIT(ch->affected_by, AFF_POLYMORPH);
REMOVE_BIT(ch->vampaff, VAM_DISGUISED);
REMOVE_BIT(ch->polyaff, POLY_MASK);
free_string( ch->morph );
ch->morph = str_dup( "" );
act("Your form shimmers and transforms into a clone of $n.",ch,NULL,NULL,TO_CHAR);
return;
}
if (IS_VAMPAFF(ch,VAM_DISGUISED))
{
if (!IS_POLYAFF(ch, POLY_MASK))
{
send_to_char("Nothing happens.\n\r",ch);
return;
}
act("Your form shimmers and transforms into a clone of $N.",ch,NULL,victim,TO_CHAR);
act("$n's form shimmers and transforms into a clone of you.",ch,NULL,victim,TO_VICT);
act("$n's form shimmers and transforms into a clone of $N.",ch,NULL,victim,TO_NOTVICT);
free_string( ch->morph );
ch->morph = str_dup( victim->name );
SET_BIT(ch->polyaff, POLY_MASK);
return;
}
act("Your form shimmers and transforms into a clone of $N.",ch,NULL,victim,TO_CHAR);
act("$n's form shimmers and transforms into a clone of you.",ch,NULL,victim,TO_VICT);
act("$n's form shimmers and transforms into a clone of $N.",ch,NULL,victim,TO_NOTVICT);
SET_BIT(ch->affected_by, AFF_POLYMORPH);
SET_BIT(ch->vampaff, VAM_DISGUISED);
SET_BIT(ch->polyaff, POLY_MASK);
free_string( ch->morph );
ch->morph = str_dup( victim->name );
return;
}
void do_change( 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_VAMPIRE(ch) && !IS_GHOUL(ch))
{
send_to_char("Huh?\n\r",ch);
return;
}
if (get_disc(ch,DISC_PROTEAN) < 4)
{
send_to_char("You require level 4 Protean to Change Shape.\n\r",ch);
return;
}
if ( arg[0] == '\0' )
{
send_to_char( "You can change between 'human', 'bat', 'wolf' and 'mist' forms.\n\r", ch );
return;
}
if ( !str_cmp(arg,"bat") )
{
if (IS_AFFECTED(ch, AFF_POLYMORPH))
{
send_to_char( "You can only polymorph from human form.\n\r", ch );
return;
}
if (ch->stance[0] != -1) do_stance(ch,"");
if (ch->mounted == IS_RIDING) do_dismount(ch,"");
SET_BIT(ch->polyaff, POLY_BAT);
clear_stats(ch);
act( "You transform into bat form.", ch, NULL, NULL, TO_CHAR );
act( "$n transforms into a bat.", ch, NULL, NULL, TO_ROOM );
SET_BIT(ch->vampaff, VAM_FLYING);
SET_BIT(ch->vampaff, VAM_SONIC);
SET_BIT(ch->vampaff, VAM_CHANGED);
SET_BIT(ch->affected_by, AFF_POLYMORPH);
sprintf(buf, "%s the vampire bat", ch->name);
free_string( ch->morph );
ch->morph = str_dup( buf );
return;
}
else if ( !str_cmp(arg,"wolf") )
{
if (IS_AFFECTED(ch, AFF_POLYMORPH))
{
send_to_char( "You can only polymorph from human form.\n\r", ch );
return;
}
if (ch->stance[0] != -1) do_stance(ch,"");
if (ch->mounted == IS_RIDING) do_dismount(ch,"");
act( "You transform into wolf form.", ch, NULL, NULL, TO_CHAR );
act( "$n transforms into a dire wolf.", ch, NULL, NULL, TO_ROOM );
SET_BIT(ch->polyaff, POLY_WOLF);
clear_stats(ch);
SET_BIT(ch->affected_by, AFF_POLYMORPH);
SET_BIT(ch->vampaff, VAM_CHANGED);
sprintf(buf, "%s the dire wolf", ch->name);
free_string( ch->morph );
ch->morph = str_dup( buf );
return;
}
else if ( !str_cmp(arg,"mist") )
{
if (IS_AFFECTED(ch, AFF_POLYMORPH))
{
send_to_char( "You can only polymorph from human form.\n\r", ch );
return;
}
if (ch->stance[0] != -1) do_stance(ch,"");
if (ch->mounted == IS_RIDING) do_dismount(ch,"");
act( "You transform into mist form.", ch, NULL, NULL, TO_CHAR );
act( "$n transforms into a white mist.", 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, AFF_WEBBED))
{
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);
REMOVE_BIT(ch->affected_by, AFF_WEBBED);
}
if (is_affected(ch, gsn_tendrils))
{
act("The tendrils of darkness entrapping $n fall through $s ethereal form.",ch,NULL,NULL,TO_ROOM);
send_to_char("The tendrils of darkness entrapping you fall through your ethereal 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 ethereal form.",ch,NULL,NULL,TO_ROOM);
send_to_char("The tendrils of darkness entrapping you fall through your ethereal 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);
}
SET_BIT(ch->polyaff, POLY_MIST);
clear_stats(ch);
SET_BIT(ch->vampaff, VAM_CHANGED);
SET_BIT(ch->affected_by, AFF_POLYMORPH);
SET_BIT(ch->affected_by, AFF_ETHEREAL);
sprintf(buf, "%s the white mist", ch->name);
free_string( ch->morph );
ch->morph = str_dup( buf );
return;
}
else if ( !str_cmp(arg,"human") )
{
if (!IS_AFFECTED(ch, AFF_POLYMORPH))
{
send_to_char( "You are already in human form.\n\r", ch );
return;
}
if (IS_VAMPAFF(ch, VAM_CHANGED) && IS_POLYAFF(ch, POLY_BAT))
{
REMOVE_BIT(ch->vampaff, VAM_FLYING);
REMOVE_BIT(ch->vampaff, VAM_SONIC);
REMOVE_BIT(ch->polyaff, POLY_BAT);
}
else if (IS_VAMPAFF(ch, VAM_CHANGED) && IS_POLYAFF(ch, POLY_WOLF))
REMOVE_BIT(ch->polyaff, POLY_WOLF);
else if (IS_VAMPAFF(ch, VAM_CHANGED) && IS_POLYAFF(ch, POLY_MIST))
{
REMOVE_BIT(ch->polyaff, POLY_MIST);
REMOVE_BIT(ch->affected_by, AFF_ETHEREAL);
}
else
{
/* In case they try to change to human from a non-vamp form */
send_to_char( "You seem to be stuck in this form.\n\r", ch );
return;
}
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);
REMOVE_BIT(ch->vampaff, VAM_CHANGED);
clear_stats(ch);
free_string( ch->morph );
ch->morph = str_dup( "" );
return;
}
else
send_to_char( "You can change between 'human', 'bat', 'wolf' and 'mist' forms.\n\r", ch );
return;
}
void do_vampire( 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_VAMPIRE))
{
send_to_char("You lower your defences.\n\r",ch);
SET_BIT(ch->immune, IMM_VAMPIRE);
return;
}
send_to_char("You raise your defences.\n\r",ch);
REMOVE_BIT(ch->immune, IMM_VAMPIRE);
return;
}
void do_shadowplane( CHAR_DATA *ch, char *argument )
{
OBJ_DATA *obj;
char arg [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_WEREWOLF(ch))
{
send_to_char("Huh?\n\r",ch);
return;
}
if ( arg[0] == '\0' )
{
if (!IS_AFFECTED(ch, AFF_SHADOWPLANE))
{
send_to_char("You fade into the Umbra.\n\r",ch);
act("$n slowly fades out of existance.",ch,NULL,NULL,TO_ROOM);
SET_BIT(ch->affected_by, AFF_SHADOWPLANE);
do_look(ch,"auto");
return;
}
REMOVE_BIT(ch->affected_by, AFF_SHADOWPLANE);
send_to_char("You fade back into the real world.\n\r",ch);
act("$n slowly fades into existance.",ch,NULL,NULL,TO_ROOM);
do_look(ch,"auto");
return;
}
if ( ( obj = get_obj_carry( ch, arg ) ) == NULL )
{
send_to_char( "You are not carrying that object.\n\r", ch );
return;
}
if (IS_AFFECTED(ch, AFF_SHADOWPLANE))
{
act( "You toss $p to the ground and it vanishes into the real world.", ch, obj, NULL, TO_CHAR );
act( "$n tosses $p to the ground and it vanishes.", ch, obj, NULL, TO_ROOM );
obj_from_char(obj);
obj_to_room(obj,ch->in_room);
}
else
{
act( "You toss $p to the ground and it vanishes into the Umbra.", ch, obj, NULL, TO_CHAR );
act( "$n tosses $p to the ground and it vanishes.", ch, obj, NULL, TO_ROOM );
obj_from_char(obj);
obj_to_room(obj,ch->in_room);
SET_BIT(obj->extra_flags, ITEM_SHADOWPLANE);
}
return;
}
void do_introduce( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (IS_VAMPIRE(ch) && ch->vampgen > 0 && ch->vampgen < 14)
do_tradition(ch,ch->lord);
else if (IS_WEREWOLF(ch) && IS_HERO(ch) &&
ch->vampgen > 0 && ch->vampgen < 5)
do_bloodline(ch,ch->lord);
else send_to_char("Huh?\n\r",ch);
return;
}
void do_bloodline( CHAR_DATA *ch, char *argument )
{
char arg1 [MAX_INPUT_LENGTH];
char arg2 [MAX_INPUT_LENGTH];
char arg3 [MAX_INPUT_LENGTH];
char buf [MAX_STRING_LENGTH];
char buf2 [MAX_STRING_LENGTH];
argument = one_argument( argument, arg1 );
argument = one_argument( argument, arg2 );
argument = one_argument( argument, arg3 );
if (IS_NPC(ch)) return;
if (arg1 != '\0') arg1[0] = UPPER(arg1[0]);
if (arg2 != '\0') arg2[0] = UPPER(arg2[0]);
if (arg3 != '\0') arg3[0] = UPPER(arg3[0]);
if (!str_cmp(arg1,"Morglum")) strcpy(arg1,"Morglum");
if ( strlen(ch->clan) < 2 && ch->vampgen != 1 )
{
strcpy(buf,"In the name of Gaia, I announce my Garou heritage.");
do_say(ch,buf);
sprintf(buf,"My name is %s, I am Orphan of no tribe.", ch->name);
do_say(ch,buf);
return;
}
if ( strlen(ch->clan) > 16)
strcpy(buf,"In the name of the Wyrm, I announce my Garou heritage.");
else
strcpy(buf,"In the name of Gaia, I announce my Garou heritage.");
do_say(ch,buf);
if (ch->vampgen != 1)
{
if (ch->vampgen == 4) sprintf(buf2,"%s",arg3);
else if (ch->vampgen == 3) sprintf(buf2,"%s",arg2);
else if (ch->vampgen == 2) sprintf(buf2,"%s",arg1);
if (ch->vampgen == 1)
{
if ( strlen(ch->clan) > 16)
sprintf(buf,"My name is %s, chosen Champion of the Wyrm.", ch->name);
else
sprintf(buf,"My name is %s, chosen Champion of Gaia.", ch->name);
}
if (ch->vampgen == 2)
sprintf(buf,"My name is %s, Chieftain of the %s tribe, pup of %s.", ch->name,ch->clan,buf2);
else
sprintf(buf,"My name is %s, of the %s tribe, pup of %s.", ch->name,ch->clan,buf2);
do_say(ch,buf);
}
if ( arg3[0] != '\0' )
{
sprintf(buf,"My name is %s, of the %s tribe, pup of %s.",
arg3,ch->clan,arg2);
do_say(ch,buf);
}
if ( arg2[0] != '\0' )
{
if ( arg1[0] != '\0' )
sprintf(buf,"My name is %s, Chieftain of the %s tribe, pup of %s.",arg2,ch->clan,arg1);
else
sprintf(buf,"My name is %s, of the %s tribe, pup of %s.",arg2,ch->clan,arg1);
do_say(ch,buf);
}
if ( ch->vampgen == 1 )
{
if ( strlen(ch->clan) > 16)
sprintf(buf,"My name is %s, chosen Champion of the Wyrm.", ch->name);
else
sprintf(buf,"My name is %s, chosen Champion of Gaia.", ch->name);
}
else
{
if ( strlen(ch->clan) > 16)
sprintf(buf,"My name is %s, chosen Champion of the Wyrm.", arg1);
else
sprintf(buf,"My name is %s, chosen Champion of Gaia.", arg1);
}
do_say(ch,buf);
return;
}
void do_tradition( CHAR_DATA *ch, char *argument )
{
char arg1 [MAX_INPUT_LENGTH];
char arg2 [MAX_INPUT_LENGTH];
char arg3 [MAX_INPUT_LENGTH];
char arg4 [MAX_INPUT_LENGTH];
char arg5 [MAX_INPUT_LENGTH];
char arg6 [MAX_INPUT_LENGTH];
char buf [MAX_STRING_LENGTH];
char buf2 [MAX_INPUT_LENGTH];
char buf3 [MAX_INPUT_LENGTH];
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 );
if (IS_NPC(ch)) return;
if (arg1 != '\0') arg1[0] = UPPER(arg1[0]);
if (arg2 != '\0') arg2[0] = UPPER(arg2[0]);
if (arg3 != '\0') arg3[0] = UPPER(arg3[0]);
if (arg4 != '\0') arg4[0] = UPPER(arg4[0]);
if (arg5 != '\0') arg5[0] = UPPER(arg5[0]);
if (arg6 != '\0') arg6[0] = UPPER(arg6[0]);
if (!str_cmp(arg1,"Morglum")) strcpy(arg1,"Morglum");
if (!IS_VAMPIRE(ch) || (ch->vampgen < 1) || (ch->vampgen > 7))
{
send_to_char("Huh?\n\r",ch);
return;
}
if ( !str_cmp(ch->clan,"") && ch->vampgen == 2 )
{
send_to_char( "Not until you have a clan.\n\r", ch );
return;
}
if (ch->vampgen == 7) {sprintf(buf2,"Seventh");sprintf(buf3,"Fledgling");}
else if (ch->vampgen == 6) {sprintf(buf2,"Sixth");sprintf(buf3,"Neonate");}
else if (ch->vampgen == 5) {sprintf(buf2,"Fifth");sprintf(buf3,"Ancilla");}
else if (ch->vampgen == 4) {sprintf(buf2,"Fourth");sprintf(buf3,"Elder");}
else if (ch->vampgen == 3) {sprintf(buf2,"Third");sprintf(buf3,"Methuselah");}
else if (ch->vampgen == 2) {sprintf(buf2,"Second");sprintf(buf3,"Antediluvian");}
if (ch->vampgen == 1)
sprintf(buf,"As is the tradition, I recite the lineage of %s, Sire of all Kindred.",ch->name);
else
sprintf(buf,"As is the tradition, I recite the lineage of %s, %s of the %s Generation.",ch->name,buf3,buf2);
do_say(ch,buf);
if ( ch->vampgen != 1 )
{
if (ch->vampgen == 7) sprintf(buf2,"%s",arg6);
else if (ch->vampgen == 6) sprintf(buf2,"%s",arg5);
else if (ch->vampgen == 5) sprintf(buf2,"%s",arg4);
else if (ch->vampgen == 4) sprintf(buf2,"%s",arg3);
else if (ch->vampgen == 3) sprintf(buf2,"%s",arg2);
else if (ch->vampgen == 2) sprintf(buf2,"%s",arg1);
if (ch->vampgen == 2)
sprintf(buf,"I am %s, founder of clan %s. My sire is %s.", ch->name,ch->clan,buf2);
else
sprintf(buf,"I am %s of clan %s. My sire is %s.", ch->name,ch->clan,buf2);
do_say(ch,buf);
}
if ( arg6[0] != '\0' )
{
sprintf(buf,"I am %s of clan %s. My sire is %s.",
arg6,ch->clan,arg5);
do_say(ch,buf);
}
if ( arg5[0] != '\0' )
{
sprintf(buf,"I am %s of clan %s. My sire is %s.",
arg5,ch->clan,arg4);
do_say(ch,buf);
}
if ( arg4[0] != '\0' )
{
sprintf(buf,"I am %s of clan %s. My sire is %s.",
arg4,ch->clan,arg3);
do_say(ch,buf);
}
if ( arg3[0] != '\0' )
{
sprintf(buf,"I am %s of clan %s. My sire is %s.",
arg3,ch->clan,arg2);
do_say(ch,buf);
}
if ( arg2[0] != '\0' )
{
if ( arg1[0] != '\0' )
sprintf(buf,"I am %s, founder of %s. My sire is %s.",arg2,ch->clan,arg1);
else
sprintf(buf,"I am %s of clan %s. My sire is %s.",arg2,ch->clan,arg1);
do_say(ch,buf);
}
if ( ch->vampgen == 1 )
sprintf(buf,"I am %s, cursed by God to drink only blood and eat only ashes.", ch->name);
else
sprintf(buf,"I am %s. All Kindred are my childer.",arg1);
do_say(ch,buf);
if ( ch->vampgen == 7 ) sprintf(buf,"My name is %s, childe of %s, childe of %s, childe of %s, childe of %s, childe of %s, childe of %s. Recognize my lineage.",ch->name,arg6,arg5,arg4,arg3,arg2,arg1);
if ( ch->vampgen == 6 ) sprintf(buf,"My name is %s, childe of %s, childe of %s, childe of %s, childe of %s, childe of %s. Recognize my lineage.",ch->name,arg5,arg4,arg3,arg2,arg1);
if ( ch->vampgen == 5 ) sprintf(buf,"My name is %s, childe of %s, childe of %s, childe of %s, childe of %s. Recognize my lineage.",ch->name,arg4,arg3,arg2,arg1);
if ( ch->vampgen == 4 ) sprintf(buf,"My name is %s, childe of %s, childe of %s, childe of %s. Recognize my lineage.",ch->name,arg3,arg2,arg1);
if ( ch->vampgen == 3 ) sprintf(buf,"My name is %s, childe of %s, childe of %s. Recognize my lineage.",ch->name,arg2,arg1);
if ( ch->vampgen == 2 ) sprintf(buf,"My name is %s, childe of %s. Recognize my lineage.",ch->name,arg1);
if ( ch->vampgen == 1 ) sprintf(buf,"My name is %s. Recognize my lineage.",ch->name);
do_say(ch,buf);
return;
}
void do_darkheart( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
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_SERPENTIS) < 4)
{
send_to_char("You require level 4 Serpentis to use Dark Heart.\n\r",ch);
return;
}
if (IS_IMMUNE(ch,IMM_STAKE) )
{
send_to_char("But you've already torn your heart out!\n\r",ch);
return;
}
send_to_char("You rip your heart from your body and toss it to the ground.\n\r",ch);
act("$n rips $s heart out and tosses it to the ground.", ch, NULL, NULL, TO_ROOM);
make_part( ch, "heart" );
if (!IS_VAMPIRE(ch)) ch->hit = -10;
else ch->hit = ch->hit - number_range(10,20);
update_pos(ch);
if (!IS_VAMPIRE(ch) || (ch->position == POS_DEAD && !IS_HERO(ch)))
{
ch->form = 2;
killperson(ch,ch);
return;
}
SET_BIT(ch->immune, IMM_STAKE);
return;
}
void do_truesight( CHAR_DATA *ch, char *argument )
{
if ( IS_NPC(ch) )
return;
if (!IS_WEREWOLF(ch) || (get_breed(ch, BREED_LUPUS) < 1 && get_disc(ch,DISC_AUSPEX) < 1))
{
if (IS_WEREWOLF(ch))
{
send_to_char("You require the level 1 Lupis power to use Heightened Senses.\n\r",ch);
return;
}
if (!IS_VAMPIRE(ch) && !IS_GHOUL(ch) && !IS_DEMON(ch))
{
send_to_char("Huh?\n\r",ch);
return;
}
if (get_disc(ch,DISC_AUSPEX) < 1 && (IS_VAMPIRE(ch) || IS_GHOUL(ch) || IS_DEMON(ch)))
{
if ( IS_DEMON(ch) )
send_to_char("You require Basic Vision to use Heightened Senses.\n\r",ch);
else
send_to_char("You require level 1 Auspex to use Heightened Senses.\n\r",ch);
return;
}
}
if ( IS_SET(ch->act, PLR_HOLYLIGHT) )
{
REMOVE_BIT(ch->act, PLR_HOLYLIGHT);
send_to_char( "Your senses return to normal.\n\r", ch );
}
else
{
SET_BIT(ch->act, PLR_HOLYLIGHT);
send_to_char( "Your senses increase to incredible proportions.\n\r", ch );
}
return;
}
void do_soulmask( CHAR_DATA *ch, char *argument )
{
char arg1[MAX_INPUT_LENGTH];
char arg2[MAX_INPUT_LENGTH];
char buf[MAX_STRING_LENGTH];
int value, max_stat;
smash_tilde( argument );
argument = one_argument( argument, arg1 );
strcpy( arg2, 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_OBFUSCATE) < 5)
{
send_to_char("You require level 5 Obfuscate to use Soul Mask.\n\r",ch);
return;
}
if (arg1[0] != '\0' && !str_cmp(arg1,"on"))
{
if (IS_EXTRA(ch, EXTRA_FAKE_CON))
{send_to_char("You already have Soul Mask on.\n\r",ch); return;}
SET_BIT(ch->extra, EXTRA_FAKE_CON);
send_to_char("Your Soul Mask is now ON.\n\r",ch);
return;
}
if (arg1[0] != '\0' && !str_cmp(arg1,"off"))
{
if (!IS_EXTRA(ch, EXTRA_FAKE_CON))
{send_to_char("You already have Soul Mask off.\n\r",ch); return;}
REMOVE_BIT(ch->extra, EXTRA_FAKE_CON);
send_to_char("Your Soul Mask is now OFF.\n\r",ch);
return;
}
if ( arg1[0] == '\0' || arg2[0] == '\0' )
{
send_to_char("--------------------------------------------------------------------------------\n\r",ch);
send_to_char(" -= Soul Mask =-\n\r",ch);
send_to_char("--------------------------------------------------------------------------------\n\r",ch);
send_to_char("You have the following stats:\n\r",ch);
sprintf(buf,"Weapon skill: %d, Stance: %d.\n\r",
ch->pcdata->fake_skill, ch->pcdata->fake_stance);
send_to_char(buf, ch);
sprintf(buf,"Hitroll: %d, Actual: %d.\n\r",
ch->pcdata->fake_hit, char_hitroll(ch));
send_to_char(buf, ch);
sprintf(buf,"Damroll: %d, Actual: %d.\n\r",
ch->pcdata->fake_dam, char_damroll(ch));
send_to_char(buf, ch);
sprintf(buf,"Armour: %d, Actual: %d.\n\r",
ch->pcdata->fake_ac, char_ac(ch));
send_to_char(buf, ch);
sprintf(buf,"Hp: %d/%d, Actual: %d/%d.\n\r",
ch->pcdata->fake_hp, ch->pcdata->fake_max_hp,
ch->hit, ch->max_hit);
send_to_char(buf, ch);
sprintf(buf,"Vitality: %d/%d, Actual: %d/%d.\n\r",
ch->pcdata->fake_move, ch->pcdata->fake_max_move,
ch->move, ch->max_move);
send_to_char(buf, ch);
sprintf(buf,"Str: %d/%d, Int: %d/%d, Wis: %d/%d, Dex: %d/%d, Con: %d/%d.\n\r",
ch->pcdata->fake_stats[STAT_STR], get_curr_str(ch),
ch->pcdata->fake_stats[STAT_INT], get_curr_int(ch),
ch->pcdata->fake_stats[STAT_WIS], get_curr_wis(ch),
ch->pcdata->fake_stats[STAT_DEX], get_curr_dex(ch),
ch->pcdata->fake_stats[STAT_CON], get_curr_con(ch));
send_to_char(buf, ch);
send_to_char("--------------------------------------------------------------------------------\n\r",ch);
send_to_char("You can set: Skill, Stance, Str, Int, Wis, Dex, Con, Hit, Dam, Ac,\n\r",ch);
send_to_char("Hp, Max_Hp, Vitality, Max_Vitality.\n\r",ch);
send_to_char("--------------------------------------------------------------------------------\n\r",ch);
return;
}
value = is_number( arg2 ) ? atoi( arg2 ) : -10000;
switch (ch->vampgen)
{
default: max_stat = 5; break;
case 1: max_stat = 10; break;
case 2:
case 3:
case 4: max_stat = 9; break;
case 5: max_stat = 8; break;
case 6: max_stat = 7; break;
case 7: max_stat = 6; break;
}
if (!str_cmp(arg1,"skill"))
{
if (value < 0 || value > 200)
{
send_to_char("Please enter a value between 0 and 200.\n\r",ch);
return;
}
ch->pcdata->fake_skill = value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"stance"))
{
if (value < 0 || value > 200)
{
send_to_char("Please enter a value between 0 and 200.\n\r",ch);
return;
}
ch->pcdata->fake_stance = value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"hit") || !str_cmp(arg1,"hitroll"))
{
if (value < 0 || value > 1000)
{
send_to_char("Please enter a value between 0 and 1000.\n\r",ch);
return;
}
ch->pcdata->fake_hit = value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"dam") || !str_cmp(arg1,"damroll"))
{
if (value < 0 || value > 1000)
{
send_to_char("Please enter a value between 0 and 1000.\n\r",ch);
return;
}
ch->pcdata->fake_dam = value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"ac") || !str_cmp(arg1,"armour") || !str_cmp(arg1,"armor"))
{
send_to_char("Please use ac+ or ac- to choose a positive or negative value.\n\r",ch);
return;
}
if (!str_cmp(arg1,"ac+") || !str_cmp(arg1,"armour+") || !str_cmp(arg1,"armor+"))
{
if (value < 0 || value > 100)
{
send_to_char("Please enter a value between 0 and 100.\n\r",ch);
return;
}
ch->pcdata->fake_ac = value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"ac-") || !str_cmp(arg1,"armour-") || !str_cmp(arg1,"armor-"))
{
if (value < 1 || value > 2000)
{
send_to_char("Please enter a value between 1 and 2000.\n\r",ch);
return;
}
ch->pcdata->fake_ac = 0 - value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"hp") || !str_cmp(arg1,"hits"))
{
if (value < 1 || value > 30000)
{
send_to_char("Please enter a value between 1 and 30000.\n\r",ch);
return;
}
if (value > ch->pcdata->fake_max_hp)
{
send_to_char("You cannot have more hp than your max_hp.\n\r",ch);
return;
}
ch->pcdata->fake_hp = value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"max_hp") || !str_cmp(arg1,"max_hits"))
{
if (value < 1 || value > 30000)
{
send_to_char("Please enter a value between 1 and 30000.\n\r",ch);
return;
}
if (value < ch->pcdata->fake_hp)
{
send_to_char("You cannot have less max_hp than your hp.\n\r",ch);
return;
}
ch->pcdata->fake_max_hp = value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"vitality"))
{
if (value < 1 || value > 30000)
{
send_to_char("Please enter a value between 1 and 30000.\n\r",ch);
return;
}
if (value > ch->pcdata->fake_max_move)
{
send_to_char("You cannot have more vitality than your max_vatality.\n\r",ch);
return;
}
ch->pcdata->fake_move = value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"max_vitality"))
{
if (value < 1 || value > 30000)
{
send_to_char("Please enter a value between 1 and 30000.\n\r",ch);
return;
}
if (value < ch->pcdata->fake_max_move)
{
send_to_char("You cannot have less max_vitality than your vatality.\n\r",ch);
return;
}
ch->pcdata->fake_max_move = value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"str") || !str_cmp(arg1,"strength"))
{
if (value < 3 || value > max_stat)
{
sprintf(buf, "Please enter a value between 3 and %d.\n\r", max_stat);
send_to_char(buf, ch);
return;
}
ch->pcdata->fake_stats[STAT_STR] = value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"int") || !str_cmp(arg1,"intelligence"))
{
if (value < 3 || value > max_stat)
{
sprintf(buf, "Please enter a value between 3 and %d.\n\r", max_stat);
send_to_char(buf, ch);
return;
}
ch->pcdata->fake_stats[STAT_INT] = value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"wis") || !str_cmp(arg1,"wisdom"))
{
if (value < 3 || value > max_stat)
{
sprintf(buf, "Please enter a value between 3 and %d.\n\r", max_stat);
send_to_char(buf, ch);
return;
}
ch->pcdata->fake_stats[STAT_WIS] = value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"dex") || !str_cmp(arg1,"dexterity"))
{
if (value < 3 || value > max_stat)
{
sprintf(buf, "Please enter a value between 3 and %d.\n\r", max_stat);
send_to_char(buf, ch);
return;
}
ch->pcdata->fake_stats[STAT_DEX] = value;
send_to_char("Ok.\n\r",ch);
return;
}
if (!str_cmp(arg1,"con") || !str_cmp(arg1,"constitution"))
{
if (value < 3 || value > max_stat)
{
sprintf(buf, "Please enter a value between 3 and %d.\n\r", max_stat);
send_to_char(buf, ch);
return;
}
ch->pcdata->fake_stats[STAT_CON] = value;
send_to_char("Ok.\n\r",ch);
return;
}
send_to_char("You can set: Skill, Stance, Str, Int, Wis, Dex, Con, Hit, Dam, Ac,\n\r",ch);
send_to_char("Hp, Max_Hp, Vitality, Max_Vitality.\n\r",ch);
return;
}
void do_scry( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
ROOM_INDEX_DATA *chroom;
ROOM_INDEX_DATA *victimroom;
DESCRIPTOR_DATA *d;
char arg [MAX_INPUT_LENGTH];
char buf [MAX_STRING_LENGTH];
bool found = FALSE;
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (IS_DEMON(ch))
{
if (!IS_SET(ch->pcdata->disc[C_POWERS], DEM_SCRY))
{
send_to_char("You haven't been granted the gift of scry.\n\r",ch);
return;
}
}
else if (!IS_VAMPIRE(ch) && !IS_GHOUL(ch) && !IS_ITEMAFF(ch, ITEMA_VISION)
&& !IS_WEREWOLF(ch) && !IS_DEMON(ch))
{
send_to_char( "Huh?\n\r", ch );
return;
}
else if ( get_auspice(ch, AUSPICE_PHILODOX) < 3 &&
get_disc(ch, DISC_AUSPEX) < 5 && !IS_ITEMAFF(ch, ITEMA_VISION) )
{
if ( IS_ABOMINATION(ch) )
send_to_char("You require level 3 Philodox or level 5 Auspex to Scry.\n\r",ch);
else if ( IS_WEREWOLF(ch) )
send_to_char("You require the level 3 Philodox power to use Scent of Beyond.\n\r",ch);
else if ( IS_DEMON(ch) )
send_to_char("You require Supreme Vision to use Scry.\n\r",ch);
else
send_to_char("You require level 5 Auspex to use Scry.\n\r",ch);
return;
}
if ( arg[0] == '\0' )
{
send_to_char("You close your eyes and mentally survey the surrounding area.\n\r",ch);
act("$n closes $s eyes and a look of concentration crosses $s face.",ch,NULL,NULL,TO_ROOM);
for ( d = descriptor_list; d != NULL; d = d->next )
{
if ( d->connected != CON_PLAYING ) continue;
if ( (victim = d->character) == NULL ) continue;
if ( IS_NPC(victim) || victim->in_room == NULL ) continue;
if ( victim == ch ) continue;
if ( !can_see(ch,victim) ) continue;
if ( IS_AFFECTED(victim, AFF_POLYMORPH) )
sprintf(buf,"%s: ", victim->morph);
else
sprintf(buf,"%s: ", victim->name);
send_to_char(buf,ch);
if (!IS_IMMUNE(victim,IMM_SHIELDED) )
sprintf(buf,"%s.\n\r", victim->in_room->name);
else
sprintf(buf,"(shielded).\n\r");
send_to_char(buf,ch);
found = TRUE;
}
if (!found) send_to_char("You cannot seem to locate anyone.\n\r",ch);
return;
}
if ( ( victim = get_char_world( ch, arg ) ) == NULL )
{
send_to_char( "You are unable to locate them.\n\r", ch );
return;
}
if (!IS_NPC(victim) && IS_IMMUNE(victim,IMM_SHIELDED) && !IS_ITEMAFF(ch, ITEMA_VISION))
{
send_to_char("You are unable to locate them.\n\r",ch);
if (!IS_NPC(victim) && ch != victim && IS_MORE(victim, MORE_GUARDIAN))
{
guardian_message( victim );
act("$n just failed to use Scry on you.",ch,NULL,victim,TO_VICT);
}
return;
}
chroom = ch->in_room;
victimroom = victim->in_room;
char_from_room(ch);
char_to_room(ch,victimroom);
if (IS_AFFECTED(ch, AFF_SHADOWPLANE) && (!IS_AFFECTED(victim, AFF_SHADOWPLANE)))
{
REMOVE_BIT(ch->affected_by, AFF_SHADOWPLANE);
do_look(ch,"auto");
SET_BIT(ch->affected_by, AFF_SHADOWPLANE);
}
else if (!IS_AFFECTED(ch, AFF_SHADOWPLANE) && (IS_AFFECTED(victim, AFF_SHADOWPLANE)))
{
SET_BIT(ch->affected_by, AFF_SHADOWPLANE);
do_look(ch,"auto");
REMOVE_BIT(ch->affected_by, AFF_SHADOWPLANE);
}
else
do_look(ch,"auto");
char_from_room(ch);
char_to_room(ch,chroom);
if (!IS_NPC(victim) && ch != victim && IS_MORE(victim, MORE_GUARDIAN))
{
guardian_message( victim );
act("$n just used Scry on you.",ch,NULL,victim,TO_VICT);
}
return;
}
DO_COM( do_readaura )
{
CHAR_DATA *victim;
OBJ_DATA *obj;
char arg [MAX_INPUT_LENGTH];
char buf [MAX_INPUT_LENGTH];
int con_hit, con_dam, con_ac, con_hp, con_mana, con_move;
int con_str, con_int, con_dex, con_wis, con_con;
int con_max_hp, con_max_mana, con_max_move;
bool ignore_shield = FALSE;
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if ( get_disc(ch,DISC_AUSPEX) < 2
&& get_tribe(ch,TRIBE_UKTENA) < 3
&& get_auspice(ch,AUSPICE_THEURGE) < 5
&& !IS_ITEMAFF(ch,ITEMA_VISION))
{
send_to_char( "Huh?\n\r", ch );
return;
}
if ( arg[0] == '\0' )
{
send_to_char( "Read the aura on what?\n\r", ch );
return;
}
if ( ( victim = get_char_room( ch, arg ) ) == NULL )
{
if ( ( obj = get_obj_carry( ch, arg ) ) == NULL )
{
send_to_char( "Read the aura on what?\n\r", ch );
return;
}
if ( get_disc( ch, DISC_AUSPEX ) < 2
&& get_tribe( ch, TRIBE_UKTENA ) < 3
&& !IS_ITEMAFF(ch,ITEMA_VISION) )
{
act( "You are unable to read the aura of $p.",ch,obj,NULL,TO_CHAR);
return;
}
spell_identify( skill_lookup( "identify" ), ch->level, ch, obj );
return;
}
if ( get_disc( ch, DISC_AUSPEX ) < 2
&& get_auspice( ch, AUSPICE_THEURGE ) < 5
&& !IS_ITEMAFF(ch,ITEMA_VISION))
{
act( "You are unable to read $S aura.",ch,NULL,victim,TO_CHAR);
return;
}
if ( IS_ITEMAFF( ch, ITEMA_VISION )
|| get_auspice( ch, AUSPICE_THEURGE ) > 4 )
ignore_shield = TRUE;
if (!IS_NPC(victim)
&& (IS_IMMUNE(victim,IMM_SHIELDED))
&& !ignore_shield)
{
send_to_char("You are unable to read their aura.\n\r",ch);
if (!IS_NPC(victim) && ch != victim && IS_MORE(victim, MORE_GUARDIAN))
{
guardian_message( victim );
act4("$n just failed to use Read Aura on you.",ch,NULL,victim,TO_VICT);
}
return;
}
if ( !IS_ITEMAFF( ch, ITEMA_VISION ) )
ignore_shield = FALSE;
act("$n examines $N intently.",ch,NULL,victim,TO_NOTVICT);
act("$n examines you intently.",ch,NULL,victim,TO_VICT);
if (!IS_NPC(victim) && IS_EXTRA(victim, EXTRA_FAKE_CON) && !ignore_shield)
{
con_hit = victim->pcdata->fake_hit;
con_dam = victim->pcdata->fake_dam;
con_ac = victim->pcdata->fake_ac;
con_str = victim->pcdata->fake_stats[STAT_STR];
con_int = victim->pcdata->fake_stats[STAT_INT];
con_wis = victim->pcdata->fake_stats[STAT_WIS];
con_dex = victim->pcdata->fake_stats[STAT_DEX];
con_con = victim->pcdata->fake_stats[STAT_CON];
con_hp = victim->pcdata->fake_hp;
con_mana = victim->pcdata->fake_mana;
con_move = victim->pcdata->fake_move;
con_max_hp = victim->pcdata->fake_max_hp;
con_max_mana = victim->pcdata->fake_max_mana;
con_max_move = victim->pcdata->fake_max_move;
}
else
{
con_hit = char_hitroll(victim);
con_dam = char_damroll(victim);
con_ac = char_ac(victim);
con_str = get_curr_str(victim);
con_int = get_curr_int(victim);
con_wis = get_curr_wis(victim);
con_dex = get_curr_dex(victim);
con_con = get_curr_con(victim);
con_hp = victim->hit;
con_mana = victim->mana;
con_move = victim->move;
con_max_hp = victim->max_hit;
con_max_mana = victim->max_mana;
con_max_move = victim->max_move;
}
if (IS_NPC(victim)) sprintf(buf, "%s is an NPC.\n\r",victim->short_descr);
else
{
if (victim->level == 12) sprintf(buf, "%s is an Implementor.\n\r", victim->name);
else if (victim->level == 11) sprintf(buf, "%s is a High Judge.\n\r", victim->name);
else if (victim->level == 10) sprintf(buf, "%s is a Judge.\n\r", victim->name);
else if (victim->level == 9 ) sprintf(buf, "%s is an Enforcer.\n\r", victim->name);
else if (victim->level == 8 ) sprintf(buf, "%s is a Quest Maker.\n\r", victim->name);
else if (victim->level == 7 ) sprintf(buf, "%s is a Builder.\n\r", victim->name);
else if (victim->level >= 3 ) sprintf(buf, "%s is an Avatar.\n\r", victim->name);
else sprintf(buf, "%s is a Mortal.\n\r", victim->name);
}
send_to_char(buf,ch);
sprintf( buf, "Str: %d. Int: %d. Wis: %d. Dex: %d. Con: %d.\n\r",
con_str, con_int, con_wis, con_dex, con_con);
send_to_char( buf, ch );
if (IS_MAGE(victim))
{
sprintf(buf,"Hp: %d/%d, Mana: %d/%d, Vitality: %d/%d.\n\r",
con_hp, con_max_hp, con_mana, con_max_mana, con_move, con_max_move);
}
else
{
sprintf(buf,"Hp: %d/%d, Vitality: %d/%d.\n\r",
con_hp, con_max_hp, con_move, con_max_move);
}
send_to_char(buf,ch);
sprintf(buf,"Hitroll: %d, Damroll: %d, AC: %d.\n\r",
con_hit, con_dam, con_ac);
send_to_char(buf,ch);
if (!IS_NPC(victim))
{
sprintf(buf,"Status: %d, ",victim->race);
send_to_char(buf,ch);
}
sprintf(buf,"Alignment: %d.\n\r",victim->alignment);
send_to_char(buf,ch);
if (!IS_NPC(victim) && IS_EXTRA(victim, EXTRA_PREGNANT))
act("$N is pregnant.",ch,NULL,victim,TO_CHAR);
if (!IS_NPC(victim) && IS_VAMPIRE(victim) && victim->pcdata->diableries[DIAB_EVER] >= 5)
act("$N's soul is permanently stained with multiple diablerie.",ch,NULL,victim,TO_CHAR);
else if (!IS_NPC(victim) && IS_VAMPIRE(victim) && victim->pcdata->diableries[DIAB_TIME] > 0)
act("$N has recently committed diablerie.",ch,NULL,victim,TO_CHAR);
if (!IS_NPC(victim) && IS_MORE(victim, MORE_INFORM))
{
if (ch->pcdata->lie == LIE_TRUE)
act("$N has recently lied.",ch,NULL,victim,TO_CHAR);
else
act("$N has recently spoken truthfully.",ch,NULL,victim,TO_CHAR);
}
if (!IS_NPC(victim) && ch != victim && IS_MORE(victim, MORE_GUARDIAN))
{
guardian_message( victim );
act4("$n just used Read Aura on you.",ch,NULL,victim,TO_VICT);
}
return;
}
void do_mortalvamp( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
int disc;
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (IS_VAMPIRE(ch) || IS_GHOUL(ch))
{
for ( disc = DISC_ANIMALISM; disc <= DISC_VICISSITUDE; disc++ )
ch->pcdata->powers_mod[disc] += 10;
if (IS_EXTRA(ch, EXTRA_NO_ACTION))
{
if (IS_MORE(ch, MORE_PROJECTION)) do_projection(ch,"");
}
if (IS_VAMPAFF(ch,VAM_EARTHMELDED) ) do_earthmeld(ch,"");
if (IS_MORE(ch, MORE_MUMMIFIED)) do_mummify(ch,"");
if (IS_MORE(ch, MORE_PLASMA)) do_plasmaform(ch,"");
if (IS_MORE(ch, MORE_ASHES)) do_ashes(ch,"");
if (IS_EXTRA(ch, EXTRA_AWE)) do_awe(ch,"");
if (IS_MORE(ch, MORE_GUARDIAN)) do_spiritguardian(ch,"");
if (IS_ITEMAFF(ch, ITEMA_PEACE)) do_majesty(ch,"");
if (get_disc(ch,DISC_AUSPEX) >= 3) do_unveil(ch,"self");
if (IS_POLYAFF(ch,POLY_ZULO) ) do_zuloform(ch,"");
if (IS_POLYAFF(ch,POLY_MASK) ) do_mask(ch,"self");
if (IS_POLYAFF(ch,POLY_TRUE) ) do_truedisguise(ch,"self");
if (IS_POLYAFF(ch,POLY_HAGS) ) do_mask(ch,"self");
if (IS_POLYAFF(ch,POLY_CHANGELING) ) do_mask(ch,"self");
if (IS_POLYAFF(ch,POLY_FLESHCRAFT) ) do_mask(ch,"self");
if (IS_POLYAFF(ch,POLY_BONECRAFT) ) do_mask(ch,"self");
if (IS_VAMPAFF(ch,VAM_CHANGED) ) do_change(ch,"human");
if (IS_POLYAFF(ch,POLY_SERPENT) ) do_serpent(ch,"");
if (IS_POLYAFF(ch,POLY_SHADOW) ) do_shadowbody(ch,"");
if (IS_VAMPAFF(ch,VAM_DISGUISED) )
{
REMOVE_BIT(ch->affected_by, AFF_POLYMORPH);
REMOVE_BIT(ch->vampaff, VAM_DISGUISED);
REMOVE_BIT(ch->extra, EXTRA_VICISSITUDE);
REMOVE_BIT(ch->polyaff, POLY_SPIRIT);
free_string( ch->morph );
ch->morph = str_dup( "" );
free_string( ch->long_descr );
ch->morph = str_dup( "" );
}
if (IS_IMMUNE(ch,IMM_SHIELDED) ) do_shield(ch,"");
if (IS_AFFECTED(ch,AFF_SHADOWPLANE) ) do_shadowplane(ch,"");
if (IS_VAMPAFF(ch,VAM_FANGS) ) do_fangs(ch,"");
if (IS_VAMPAFF(ch,VAM_CLAWS) ) do_claws(ch,"");
if (IS_MORE(ch, MORE_HAND_FLAME)) do_hand(ch,"");
if (IS_VAMPAFF(ch,VAM_SPIRITEYES) ) do_spiriteyes(ch,"");
if (IS_VAMPAFF(ch,VAM_NIGHTSIGHT) ) do_nightsight(ch,"");
if (IS_AFFECTED(ch,AFF_SHADOWSIGHT) ) do_shadowsight(ch,"");
if (IS_SET(ch->act,PLR_HOLYLIGHT) ) do_truesight(ch,"");
if (IS_VAMPAFF(ch,VAM_OBFUSCATE) ) do_vanish(ch,"");
if (IS_MORE(ch, MORE_SILENCE)) do_silencedeath(ch,"");
if (IS_MORE(ch, MORE_DARKNESS)) do_shroudnight(ch,"");
if (IS_MORE(ch, MORE_REINA)) do_reina(ch,"");
if (IS_MORE(ch, MORE_OBEAH)) {ch->pcdata->obeah = 0; do_obeah(ch,"");}
if (IS_MORE(ch, MORE_NEUTRAL)) do_neutral(ch,"");
ch->pcdata->wolf = 0;
for ( disc = DISC_ANIMALISM; disc <= DISC_VICISSITUDE; disc++ )
ch->pcdata->powers_mod[disc] -= 10;
}
return;
}
void do_shield( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (get_disc(ch,DISC_OBFUSCATE) < 4 && get_tribe(ch, TRIBE_SILVER_FANGS) < 4)
{
if ( IS_ABOMINATION(ch) )
send_to_char("You require level 4 Obfuscate or Silver Fangs to Shield your aura.\n\r",ch);
else if ( IS_WEREWOLF(ch) )
send_to_char("You require level 4 Silver Fangs to Shield your aura.\n\r",ch);
else
send_to_char("You require level 4 Obfuscate to Shield your aura.\n\r",ch);
return;
}
if (!IS_IMMUNE(ch,IMM_SHIELDED) )
{
send_to_char("You shield your aura from those around you.\n\r",ch);
SET_BIT(ch->immune, IMM_SHIELDED);
return;
}
send_to_char("You stop shielding your aura.\n\r",ch);
REMOVE_BIT(ch->immune, IMM_SHIELDED);
return;
}
void do_serpent( CHAR_DATA *ch, char *argument )
{
char buf [MAX_STRING_LENGTH];
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) < 3)
{
send_to_char("You require level 3 Serpentis to transform into Serpent Form.\n\r",ch);
return;
}
if (IS_AFFECTED(ch, AFF_POLYMORPH))
{
if (!IS_POLYAFF(ch,POLY_SERPENT))
{
send_to_char( "You cannot polymorph from this form.\n\r", ch );
return;
}
act( "You transform back into human.", ch, NULL, NULL, TO_CHAR );
act( "$n transforms into human form.", ch, NULL, NULL, TO_ROOM );
REMOVE_BIT(ch->polyaff, POLY_SERPENT);
REMOVE_BIT(ch->affected_by, AFF_POLYMORPH);
clear_stats(ch);
free_string( ch->morph );
ch->morph = str_dup( "" );
return;
}
SET_BIT(ch->polyaff, POLY_SERPENT);
clear_stats(ch);
if (ch->stance[0] != -1) do_stance(ch,"");
if (ch->mounted == IS_RIDING) do_dismount(ch,"");
act( "You transform into a huge serpent.", ch, NULL, NULL, TO_CHAR );
act( "$n transforms into a huge serpent.", ch, NULL, NULL, TO_ROOM );
SET_BIT(ch->affected_by, AFF_POLYMORPH);
sprintf(buf, "%s the huge serpent", ch->name);
free_string( ch->morph );
ch->morph = str_dup( buf );
return;
}
void poison_weapon( CHAR_DATA *ch, OBJ_DATA *obj )
{
if ( obj->item_type != ITEM_WEAPON )
{
send_to_char( "You can only poison weapons.\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->value[0] = 53;
return;
}
void do_regenerate( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
int regen;
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->wolf > 0 && !IS_ABOMINATION(ch))
{
send_to_char("You cannot control your regenerative powers while the beast is so strong.\n\r",ch);
return;
}
if ( ch->pcdata->regenerate > 0 )
{
send_to_char("You stop your body regenerating.\n\r",ch);
ch->pcdata->regenerate = 0;
return;
}
if (ch->blood[BLOOD_CURRENT] < 10)
{
send_to_char("You have insufficient blood to regenerate.\n\r",ch);
return;
}
if (ch->hit >= ch->max_hit && ch->move >= ch->max_move)
{
send_to_char("Your body doesn't require regeneration.\n\r",ch);
return;
}
if ( arg[0] == '\0' ) regen = 1;
else if ( ( regen = is_number(arg) ? atoi(arg) : 1 ) < 1 || regen > 10 )
{
send_to_char("Please enter a number between 1 and 10.\n\r",ch);
return;
}
ch->pcdata->regenerate = regen;
send_to_char("You begin regenerating yourself.\n\r",ch);
return;
}
void werewolf_regen( CHAR_DATA *ch )
{
bool mesg = TRUE;
int regen_hp, regen_max;
if (IS_NPC(ch)) return;
if (ch->hit < 1 )
{
ch->hit += number_range(1,3);
update_pos(ch);
}
else
{
if ( !IS_VAMPIRE( ch ) && !IS_GHOUL( ch ) )
ch->blood[BLOOD_CURRENT] = UMIN(ch->blood[BLOOD_CURRENT] + (ch->blood[BLOOD_CURRENT] * 0.05), ch->blood[BLOOD_POOL]);
if (ch->hit >= ch->max_hit)
{
mesg = FALSE;
ch->move = UMIN(ch->move + (ch->max_move * 0.05), ch->max_move);
ch->mana = UMIN(ch->mana + (ch->max_mana * 0.05), ch->max_mana);
}
else if (ch->max_hit > 0)
{
regen_hp = ch->max_hit * 0.05;
if (ch->agg < 0) ch->agg = 0; else if (ch->agg > 100) ch->agg = 100;
if (ch->agg > 0 && (ch->hit + regen_hp) >= (ch->max_hit * ((100 - ch->agg) * 0.01)))
{
if ((ch->hit + 1) < (ch->max_hit * ((100 - ch->agg) * 0.01)))
{
ch->hit = ch->max_hit * ((100 - ch->agg) * 0.01);
send_to_char("Your body has regenerated all non-aggravated damage.\n\r",ch);
}
else if (IS_VAMPIRE(ch))
{
if (ch->position == POS_FIGHTING)
{
send_to_char("You are unable to heal aggravated wounds while fighting.\n\r",ch);
ch->pcdata->regenerate = 0;
return;
}
else if (ch->pcdata->willpower[0] < 1)
{
send_to_char("You have insufficient willpower to heal your aggravated wounds.\n\r",ch);
ch->pcdata->regenerate = 0;
return;
}
ch->pcdata->willpower[0] -= 1;
ch->agg -= 10;
if (ch->agg < 0) ch->agg = 0;
if (ch->agg >= 100) ch->hit = 1;
else
{
regen_max = ch->max_hit * ((100 - ch->agg) * 0.01);
regen_hp = ch->max_hit * 0.05;
if (regen_hp > regen_max) regen_hp = regen_max;
ch->hit += regen_hp;
}
}
else
{
if (ch->position > POS_RESTING) return;
else if (ch->pcdata->willpower[0] < 1)
{
send_to_char("You have insufficient willpower to heal your aggravated wounds.\n\r",ch);
return;
}
ch->pcdata->willpower[0] -= 1;
ch->agg -= 10;
if (ch->agg < 0) ch->agg = 0;
if (ch->agg >= 100) ch->hit = 1;
else
{
regen_max = ch->max_hit * ((100 - ch->agg) * 0.01);
regen_hp = ch->max_hit * 0.05;
if (regen_hp > regen_max) regen_hp = regen_max;
ch->hit += regen_hp;
}
}
}
else ch->hit += ch->max_hit * 0.05;
}
ch->move = UMIN(ch->move + (ch->max_move * 0.05), ch->max_move);
/* Still not sure if mana should regenerate so fast... */
if ( !IS_MAGE( ch ) && !IS_ITEMAFF( ch, ITEMA_REGENERATE ) )
ch->mana = UMIN(ch->mana + (ch->max_mana * 0.05), ch->max_mana);
if ( ch->hit >= ch->max_hit &&
ch->mana >= ch->max_mana && ch->move >= ch->max_move )
{
ch->hit = ch->max_hit;
ch->mana = ch->max_mana;
ch->move = ch->max_move;
if ( mesg )
send_to_char("Your body has completely regenerated itself.\n\r",ch);
if (IS_VAMPIRE(ch)) ch->pcdata->regenerate = 0;
}
}
return;
}
void reg_mend( CHAR_DATA *ch )
{
int ribs = 0;
int teeth = 0;
if (IS_BODY(ch,BROKEN_RIBS_1 )) ribs += 1;
if (IS_BODY(ch,BROKEN_RIBS_2 )) ribs += 2;
if (IS_BODY(ch,BROKEN_RIBS_4 )) ribs += 4;
if (IS_BODY(ch,BROKEN_RIBS_8 )) ribs += 8;
if (IS_BODY(ch,BROKEN_RIBS_16)) ribs += 16;
if (IS_HEAD(ch,LOST_TOOTH_1 )) teeth += 1;
if (IS_HEAD(ch,LOST_TOOTH_2 )) teeth += 2;
if (IS_HEAD(ch,LOST_TOOTH_4 )) teeth += 4;
if (IS_HEAD(ch,LOST_TOOTH_8 )) teeth += 8;
if (IS_HEAD(ch,LOST_TOOTH_16 )) teeth += 16;
if (ribs > 0)
{
if (IS_BODY(ch,BROKEN_RIBS_1 ))
REMOVE_BIT(ch->loc_hp[1],BROKEN_RIBS_1);
if (IS_BODY(ch,BROKEN_RIBS_2 ))
REMOVE_BIT(ch->loc_hp[1],BROKEN_RIBS_2);
if (IS_BODY(ch,BROKEN_RIBS_4 ))
REMOVE_BIT(ch->loc_hp[1],BROKEN_RIBS_4);
if (IS_BODY(ch,BROKEN_RIBS_8 ))
REMOVE_BIT(ch->loc_hp[1],BROKEN_RIBS_8);
if (IS_BODY(ch,BROKEN_RIBS_16))
REMOVE_BIT(ch->loc_hp[1],BROKEN_RIBS_16);
ribs -= 1;
if (ribs >= 16) {ribs -= 16;
SET_BIT(ch->loc_hp[1],BROKEN_RIBS_16);}
if (ribs >= 8 ) {ribs -= 8;
SET_BIT(ch->loc_hp[1],BROKEN_RIBS_8);}
if (ribs >= 4 ) {ribs -= 4;
SET_BIT(ch->loc_hp[1],BROKEN_RIBS_4);}
if (ribs >= 2 ) {ribs -= 2;
SET_BIT(ch->loc_hp[1],BROKEN_RIBS_2);}
if (ribs >= 1 ) {ribs -= 1;
SET_BIT(ch->loc_hp[1],BROKEN_RIBS_1);}
act("One of $n's ribs snap back into place.",ch,NULL,NULL,TO_ROOM);
act("One of your ribs snap back into place.",ch,NULL,NULL,TO_CHAR);
}
else if (IS_HEAD(ch,LOST_EYE_L))
{
act("An eyeball appears in $n's left eye socket.",ch,NULL,NULL,TO_ROOM);
act("An eyeball appears in your left eye socket.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_HEAD],LOST_EYE_L);
}
else if (IS_HEAD(ch,LOST_EYE_R))
{
act("An eyeball appears in $n's right eye socket.",ch,NULL,NULL,TO_ROOM);
act("An eyeball appears in your right eye socket.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_HEAD],LOST_EYE_R);
}
else if (IS_HEAD(ch,LOST_EAR_L))
{
act("An ear grows on the left side of $n's head.",ch,NULL,NULL,TO_ROOM);
act("An ear grows on the left side of your head.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_HEAD],LOST_EAR_L);
}
else if (IS_HEAD(ch,LOST_EAR_R))
{
act("An ear grows on the right side of $n's head.",ch,NULL,NULL,TO_ROOM);
act("An ear grows on the right side of your head.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_HEAD],LOST_EAR_R);
}
else if (IS_HEAD(ch,LOST_NOSE))
{
act("A nose grows on the front of $n's face.",ch,NULL,NULL,TO_ROOM);
act("A nose grows on the front of your face.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_HEAD],LOST_NOSE);
REMOVE_BIT(ch->loc_hp[LOC_HEAD],BROKEN_NOSE);
}
else if (teeth > 0)
{
if (IS_HEAD(ch,LOST_TOOTH_1 ))
REMOVE_BIT(ch->loc_hp[LOC_HEAD],LOST_TOOTH_1);
if (IS_HEAD(ch,LOST_TOOTH_2 ))
REMOVE_BIT(ch->loc_hp[LOC_HEAD],LOST_TOOTH_2);
if (IS_HEAD(ch,LOST_TOOTH_4 ))
REMOVE_BIT(ch->loc_hp[LOC_HEAD],LOST_TOOTH_4);
if (IS_HEAD(ch,LOST_TOOTH_8 ))
REMOVE_BIT(ch->loc_hp[LOC_HEAD],LOST_TOOTH_8);
if (IS_HEAD(ch,LOST_TOOTH_16))
REMOVE_BIT(ch->loc_hp[LOC_HEAD],LOST_TOOTH_16);
teeth -= 1;
if (teeth >= 16) {teeth -= 16;
SET_BIT(ch->loc_hp[LOC_HEAD],LOST_TOOTH_16);}
if (teeth >= 8 ) {teeth -= 8;
SET_BIT(ch->loc_hp[LOC_HEAD],LOST_TOOTH_8);}
if (teeth >= 4 ) {teeth -= 4;
SET_BIT(ch->loc_hp[LOC_HEAD],LOST_TOOTH_4);}
if (teeth >= 2 ) {teeth -= 2;
SET_BIT(ch->loc_hp[LOC_HEAD],LOST_TOOTH_2);}
if (teeth >= 1 ) {teeth -= 1;
SET_BIT(ch->loc_hp[LOC_HEAD],LOST_TOOTH_1);}
act("A missing tooth grows in your mouth.",ch,NULL,NULL,TO_CHAR);
act("A missing tooth grows in $n's mouth.",ch,NULL,NULL,TO_ROOM);
}
else if (IS_HEAD(ch,BROKEN_NOSE))
{
act("$n's nose snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your nose snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_HEAD],BROKEN_NOSE);
}
else if (IS_HEAD(ch,BROKEN_JAW))
{
act("$n's jaw snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your jaw snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_HEAD],BROKEN_JAW);
}
else if (IS_HEAD(ch,BROKEN_SKULL))
{
act("$n's skull knits itself back together.",ch,NULL,NULL,TO_ROOM);
act("Your skull knits itself back together.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_HEAD],BROKEN_SKULL);
}
else if (IS_BODY(ch,BROKEN_SPINE))
{
act("$n's spine knits itself back together.",ch,NULL,NULL,TO_ROOM);
act("Your spine knits itself back together.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_BODY],BROKEN_SPINE);
}
else if (IS_BODY(ch,BROKEN_NECK))
{
act("$n's neck snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your neck snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_BODY],BROKEN_NECK);
}
else if (IS_ARM_L(ch,LOST_ARM))
{
act("An arm grows from the stump of $n's left shoulder.",ch,NULL,NULL,TO_ROOM);
act("An arm grows from the stump of your left shoulder.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],LOST_ARM);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],BROKEN_ARM);
SET_BIT(ch->loc_hp[LOC_ARM_L],LOST_HAND);
}
else if (IS_ARM_R(ch,LOST_ARM))
{
act("An arm grows from the stump of $n's right shoulder.",ch,NULL,NULL,TO_ROOM);
act("An arm grows from the stump of your right shoulder.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],LOST_ARM);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],BROKEN_ARM);
SET_BIT(ch->loc_hp[LOC_ARM_R],LOST_HAND);
}
else if (IS_LEG_L(ch,LOST_LEG))
{
act("A leg grows from the stump of $n's left hip.",ch,NULL,NULL,TO_ROOM);
act("A leg grows from the stump of your left hip.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_LEG_L],LOST_LEG);
REMOVE_BIT(ch->loc_hp[LOC_LEG_L],BROKEN_LEG);
SET_BIT(ch->loc_hp[LOC_LEG_L],LOST_FOOT);
}
else if (IS_LEG_R(ch,LOST_LEG))
{
act("A leg grows from the stump of $n's right hip.",ch,NULL,NULL,TO_ROOM);
act("A leg grows from the stump of your right hip.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_LEG_R],LOST_LEG);
REMOVE_BIT(ch->loc_hp[LOC_LEG_R],BROKEN_LEG);
SET_BIT(ch->loc_hp[LOC_LEG_R],LOST_FOOT);
}
else if (IS_ARM_L(ch,BROKEN_ARM))
{
act("$n's left arm snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your left arm snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],BROKEN_ARM);
}
else if (IS_ARM_R(ch,BROKEN_ARM))
{
act("$n's right arm snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your right arm snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],BROKEN_ARM);
}
else if (IS_LEG_L(ch,BROKEN_LEG))
{
act("$n's left leg snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your left leg snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_LEG_L],BROKEN_LEG);
}
else if (IS_LEG_R(ch,BROKEN_LEG))
{
act("$n's right leg snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your right leg snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_LEG_R],BROKEN_LEG);
}
else if (IS_ARM_L(ch,LOST_HAND))
{
act("A hand grows from the stump of $n's left wrist.",ch,NULL,NULL,TO_ROOM);
act("A hand grows from the stump of your left wrist.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],LOST_HAND);
SET_BIT(ch->loc_hp[LOC_ARM_L],LOST_THUMB);
SET_BIT(ch->loc_hp[LOC_ARM_L],LOST_FINGER_I);
SET_BIT(ch->loc_hp[LOC_ARM_L],LOST_FINGER_M);
SET_BIT(ch->loc_hp[LOC_ARM_L],LOST_FINGER_R);
SET_BIT(ch->loc_hp[LOC_ARM_L],LOST_FINGER_L);
}
else if (IS_ARM_R(ch,LOST_HAND))
{
act("A hand grows from the stump of $n's right wrist.",ch,NULL,NULL,TO_ROOM);
act("A hand grows from the stump of your right wrist.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],LOST_HAND);
SET_BIT(ch->loc_hp[LOC_ARM_R],LOST_THUMB);
SET_BIT(ch->loc_hp[LOC_ARM_R],LOST_FINGER_I);
SET_BIT(ch->loc_hp[LOC_ARM_R],LOST_FINGER_M);
SET_BIT(ch->loc_hp[LOC_ARM_R],LOST_FINGER_R);
SET_BIT(ch->loc_hp[LOC_ARM_R],LOST_FINGER_L);
}
else if (IS_LEG_L(ch,LOST_FOOT))
{
act("A foot grows from the stump of $n's left ankle.",ch,NULL,NULL,TO_ROOM);
act("A foot grows from the stump of your left ankle.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_LEG_L],LOST_FOOT);
}
else if (IS_LEG_R(ch,LOST_FOOT))
{
act("A foot grows from the stump of $n's right ankle.",ch,NULL,NULL,TO_ROOM);
act("A foot grows from the stump of your right ankle.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_LEG_R],LOST_FOOT);
}
else if (IS_ARM_L(ch,LOST_THUMB))
{
act("A thumb slides out of $n's left hand.",ch,NULL,NULL,TO_ROOM);
act("A thumb slides out of your left hand.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],LOST_THUMB);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],BROKEN_THUMB);
}
else if (IS_ARM_L(ch,BROKEN_THUMB))
{
act("$n's left thumb snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your left thumb snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],BROKEN_THUMB);
}
else if (IS_ARM_L(ch,LOST_FINGER_I))
{
act("An index finger slides out of $n's left hand.",ch,NULL,NULL,TO_ROOM);
act("An index finger slides out of your left hand.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],LOST_FINGER_I);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],BROKEN_FINGER_I);
}
else if (IS_ARM_L(ch,BROKEN_FINGER_I))
{
act("$n's left index finger snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your left index finger snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],BROKEN_FINGER_I);
}
else if (IS_ARM_L(ch,LOST_FINGER_M))
{
act("A middle finger slides out of $n's left hand.",ch,NULL,NULL,TO_ROOM);
act("A middle finger slides out of your left hand.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],LOST_FINGER_M);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],BROKEN_FINGER_M);
}
else if (IS_ARM_L(ch,BROKEN_FINGER_M))
{
act("$n's left middle finger snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your left middle finger snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],BROKEN_FINGER_M);
}
else if (IS_ARM_L(ch,LOST_FINGER_R))
{
act("A ring finger slides out of $n's left hand.",ch,NULL,NULL,TO_ROOM);
act("A ring finger slides out of your left hand.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],LOST_FINGER_R);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],BROKEN_FINGER_R);
}
else if (IS_ARM_L(ch,BROKEN_FINGER_R))
{
act("$n's left ring finger snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your left ring finger snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],BROKEN_FINGER_R);
}
else if (IS_ARM_L(ch,LOST_FINGER_L))
{
act("A little finger slides out of $n's left hand.",ch,NULL,NULL,TO_ROOM);
act("A little finger slides out of your left hand.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],LOST_FINGER_L);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],BROKEN_FINGER_L);
}
else if (IS_ARM_L(ch,BROKEN_FINGER_L))
{
act("$n's left little finger snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your left little finger snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],BROKEN_FINGER_L);
}
else if (IS_ARM_R(ch,LOST_THUMB))
{
act("A thumb slides out of $n's right hand.",ch,NULL,NULL,TO_ROOM);
act("A thumb slides out of your right hand.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],LOST_THUMB);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],BROKEN_THUMB);
}
else if (IS_ARM_R(ch,BROKEN_THUMB))
{
act("$n's right thumb snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your right thumb snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],BROKEN_THUMB);
}
else if (IS_ARM_R(ch,LOST_FINGER_I))
{
act("An index finger slides out of $n's right hand.",ch,NULL,NULL,TO_ROOM);
act("An index finger slides out of your right hand.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],LOST_FINGER_I);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],BROKEN_FINGER_I);
}
else if (IS_ARM_R(ch,BROKEN_FINGER_I))
{
act("$n's right index finger snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your right index finger snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],BROKEN_FINGER_I);
}
else if (IS_ARM_R(ch,LOST_FINGER_M))
{
act("A middle finger slides out of $n's right hand.",ch,NULL,NULL,TO_ROOM);
act("A middle finger slides out of your right hand.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],LOST_FINGER_M);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],BROKEN_FINGER_M);
}
else if (IS_ARM_R(ch,BROKEN_FINGER_M))
{
act("$n's right middle finger snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your right middle finger snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],BROKEN_FINGER_M);
}
else if (IS_ARM_R(ch,LOST_FINGER_R))
{
act("A ring finger slides out of $n's right hand.",ch,NULL,NULL,TO_ROOM);
act("A ring finger slides out of your right hand.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],LOST_FINGER_R);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],BROKEN_FINGER_R);
}
else if (IS_ARM_R(ch,BROKEN_FINGER_R))
{
act("$n's right ring finger snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your right ring finger snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],BROKEN_FINGER_R);
}
else if ( IS_ARM_R(ch,LOST_FINGER_L))
{
act("A little finger slides out of $n's right hand.",ch,NULL,NULL,TO_ROOM);
act("A little finger slides out of your right hand.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],LOST_FINGER_L);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],BROKEN_FINGER_L);
}
else if ( IS_ARM_R(ch,BROKEN_FINGER_L))
{
act("$n's right little finger snaps back into place.",ch,NULL,NULL,TO_ROOM);
act("Your right little finger snaps back into place.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],BROKEN_FINGER_L);
}
else if (IS_BODY(ch,CUT_CHEST) && !IS_BLEEDING(ch, BLEEDING_CHEST))
{
act("The wound in $n's chest closes up.",ch,NULL,NULL,TO_ROOM);
act("The wound in your chest closes up.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_BODY],CUT_CHEST);
}
else if (IS_BODY(ch,CUT_STOMACH) && !IS_BLEEDING(ch, BLEEDING_STOMACH))
{
act("The wound in $n's stomach closes up.",ch,NULL,NULL,TO_ROOM);
act("The wound in your stomach closes up.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_BODY],CUT_STOMACH);
}
else if (IS_BODY(ch,CUT_THROAT) && !IS_BLEEDING(ch, BLEEDING_THROAT))
{
act("The wound in $n's throat closes up.",ch,NULL,NULL,TO_ROOM);
act("The wound in your throat closes up.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_BODY],CUT_THROAT);
}
else if (IS_ARM_L(ch,SLIT_WRIST) && !IS_BLEEDING(ch, BLEEDING_WRIST_L))
{
act("The wound in $n's left wrist closes up.",ch,NULL,NULL,TO_ROOM);
act("The wound in your left wrist closes up.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_L],SLIT_WRIST);
}
else if (IS_ARM_R(ch,SLIT_WRIST) && !IS_BLEEDING(ch, BLEEDING_WRIST_R))
{
act("The wound in $n's right wrist closes up.",ch,NULL,NULL,TO_ROOM);
act("The wound in your right wrist closes up.",ch,NULL,NULL,TO_CHAR);
REMOVE_BIT(ch->loc_hp[LOC_ARM_R],SLIT_WRIST);
}
return;
}
void vamp_rage( CHAR_DATA *ch )
{
if (IS_NPC(ch) || !IS_VAMPIRE(ch)) return;
send_to_char("You scream with rage as the beast within consumes you!\n\r",ch);
act("$n screams with rage as $s inner beast consumes $m!.", ch, NULL, NULL, TO_ROOM);
if (ch->beast > 0) do_beastlike(ch,"");
if ( ch->pcdata->wolf >= (ch->beast * 0.5) ) return;
if (!IS_VAMPAFF(ch, VAM_NIGHTSIGHT) && get_disc(ch,DISC_PROTEAN) > 0)
do_nightsight(ch,"");
if (!IS_VAMPAFF(ch, VAM_FANGS)) do_fangs(ch,"");
if (!IS_VAMPAFF(ch, VAM_CLAWS) && get_disc(ch,DISC_PROTEAN) > 1)
do_claws(ch,"");
send_to_char("You bare yours fangs and growl as your inner beast consumes you.\n\r",ch);
act("$n bares $s fangs and growls as $s inner beast consumes $m.",ch,NULL,NULL,TO_ROOM);
ch->pcdata->wolf += number_range(10,20);
WAIT_STATE(ch,12);
return;
}
void do_humanity( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (!IS_NPC(ch) && IS_VAMPIRE(ch) && ch->beast > 0
&& ch->beast < 100 && number_range(1, 500) <= ch->beast)
{
if (ch->beast == 1)
{
send_to_char("You have attained Golconda!\n\r", ch);
if (!IS_IMMUNE(ch, IMM_SUNLIGHT))
SET_BIT(ch->immune, IMM_SUNLIGHT);
}
else
send_to_char("You feel slightly more in control of your beast.\n\r", ch);
ch->beast -= 1;
}
return;
}
void do_beastlike( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (!IS_NPC(ch) && IS_VAMPIRE(ch) && !IS_ABOMINATION(ch) && ch->beast < 100
&& ch->beast > 0 && number_range(1, 500) <= ch->beast)
{
if (get_disc(ch, DISC_OBEAH) != 0) return;
if (ch->beast < 99)
send_to_char("You feel your beast take more control over your actions.\n\r", ch);
else
send_to_char("Your beast has fully taken over control of your actions!\n\r", ch);
ch->beast += 1;
if (get_disc(ch,DISC_PROTEAN) > 0 &&
!IS_VAMPAFF(ch, VAM_NIGHTSIGHT) ) do_nightsight(ch,"");
if (!IS_VAMPAFF(ch, VAM_FANGS)) do_fangs(ch,"");
if (get_disc(ch,DISC_PROTEAN) > 1 &&
!IS_VAMPAFF(ch, VAM_CLAWS) ) do_claws(ch,"");
}
return;
}
void do_feed( CHAR_DATA *ch, char *argument )
{
CHAR_DATA *victim;
char arg [MAX_INPUT_LENGTH];
int blood;
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (!IS_VAMPIRE(ch))
{
send_to_char("Huh?\n\r",ch);
return;
}
if (!IS_ARM_L(ch, SLIT_WRIST) && !IS_ARM_R(ch, SLIT_WRIST))
{
send_to_char("First you need to SLIT your wrist.\n\r",ch);
return;
}
if (arg[0] == '\0')
{
send_to_char("Who do you wish to feed?\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_GHOUL(victim) || victim->class == CLASS_NONE || IS_MAGE(victim)) &&
victim->blood[0] <= 25)
{
if (!IS_HERO(victim))
send_to_char("Blood does them no good at all.\n\r",ch);
else
do_bite(ch, victim->name);
return;
}
else if (!IS_VAMPIRE(victim) && !IS_GHOUL(victim) &&
victim->class != CLASS_NONE)
{
send_to_char("Blood does them no good at all.\n\r",ch);
return;
}
if (ch == victim)
{
send_to_char("There is no point in feeding yourself blood!\n\r",ch);
return;
}
if (!IS_IMMUNE(victim, IMM_VAMPIRE))
{
send_to_char("They refuse to drink your blood.\n\r",ch);
return;
}
if ( ch->blood[BLOOD_CURRENT] < (10 * ch->blood[BLOOD_POTENCY]))
{
send_to_char("You don't have enough blood.\n\r",ch);
return;
}
act("You feed $N some blood from your open wrist.",ch,NULL,victim,TO_CHAR);
act("$n feeds $N some blood from $s open wrist.",ch,NULL,victim,TO_NOTVICT);
if (victim->position < POS_RESTING)
send_to_char("You feel some blood poured down your throat.\n\r",victim);
else
act("$n feeds you some blood from $s open wrist.", ch, NULL, victim, TO_VICT);
blood = number_range(5,10) * ch->blood[BLOOD_POTENCY];
ch->blood[BLOOD_CURRENT] -= blood;
victim->blood[BLOOD_CURRENT] += blood;
if (victim->blood[BLOOD_CURRENT] >= victim->blood[BLOOD_POOL])
{
victim->blood[BLOOD_CURRENT] = victim->blood[BLOOD_POOL];
if (IS_VAMPIRE(victim))
send_to_char("Your blood lust is sated.\n\r",victim);
}
if (IS_HERO(victim) && (victim->class == CLASS_NONE || IS_GHOUL(victim)))
{
power_ghoul(ch, victim);
if (!IS_NPC(victim) && victim->pcdata->dpoints < (ch->blood[2] * 1000))
{
if (!IS_VAMPIRE(ch)) victim->pcdata->dpoints += (blood * 60);
if (victim->pcdata->dpoints > (ch->blood[2] * 100))
victim->pcdata->dpoints = (ch->blood[2] * 100);
}
}
return;
}
void do_upkeep( CHAR_DATA *ch, char *argument )
{
char arg [MAX_INPUT_LENGTH];
char buf [MAX_INPUT_LENGTH];
char buf2 [MAX_INPUT_LENGTH];
argument = one_argument( argument, arg );
if (IS_NPC(ch)) return;
if (IS_DEMON(ch))
{
send_to_char("--------------------------------------------------------------------------------\n\r",ch);
if (IS_NEPHANDI(ch))
send_to_char(" -= Nephandi upkeep =-\n\r",ch);
else if (IS_BAALI(ch))
send_to_char(" -= Baali upkeep =-\n\r",ch);
else if (IS_BLACK_SPIRAL_DANCER(ch))
send_to_char(" -= Black Spiral Dancer upkeep =-\n\r",ch);
else
send_to_char(" -= Demon upkeep =-\n\r",ch);
send_to_char("--------------------------------------------------------------------------------\n\r",ch);
if (ch->pcdata->disc[C_POWERS] < 1 && get_disc(ch, DISC_AUSPEX) < 1)
send_to_char("You have no demonic powers.\n\r",ch);
switch ( get_disc(ch, DISC_AUSPEX) )
{
default: break;
case 1: send_to_char("You have Basic Demonic Vision.\n\r",ch); break;
case 2: send_to_char("You have Intermediate Demonic Vision.\n\r",ch); break;
case 3: send_to_char("You have Advanced Demonic Vision.\n\r",ch); break;
case 4: send_to_char("You have Expert Demonic Vision.\n\r",ch); break;
case 5: send_to_char("You have Supreme Demonic Vision.\n\r",ch); break;
}
if (IS_POLYAFF(ch, POLY_ZULO))
sprintf(buf,"You are in Demon Form.\n\r");
if (IS_MORE(ch, MORE_GUARDIAN))
sprintf(buf,"You have a little imp perched on your shoulder.\n\r");
if ( IS_DEMPOWER(ch,DEM_FANGS) )
{
if (IS_VAMPAFF(ch, VAM_FANGS)) send_to_char("You have a pair of long pointed fangs extending from your gums.\n\r",ch);
else send_to_char("You have a pair of long pointed fangs, but they are not currently extended.\n\r",ch);
}
if ( IS_DEMPOWER(ch,DEM_CLAWS) )
{
if (IS_VAMPAFF(ch, VAM_CLAWS)) send_to_char("You have a pair of razor sharp claws extending from your fingers.\n\r",ch);
else send_to_char("You have a pair of razor sharp claws, but they are not currently extended.\n\r",ch);
}
if ( IS_MOD(ch,MOD_HORNS) )
send_to_char("You have a pair of curved horns extending from your forehead.\n\r",ch);
if ( IS_DEMPOWER(ch,DEM_HOOVES) )
{
if (IS_DEMAFF(ch, DEM_HOOVES)) send_to_char("You have hooves instead of feet.\n\r",ch);
else send_to_char("You are able to transform your feet into hooves at will.\n\r",ch);
}
if ( IS_DEMPOWER(ch,DEM_EYES) )
{
if (IS_VAMPAFF(ch, VAM_NIGHTSIGHT)) send_to_char("Your eyes are glowing bright red, allowing you to see in the dark.\n\r",ch);
else send_to_char("You are able to see in the dark, although that power is not currently activated.\n\r",ch);
}
if ( IS_DEMPOWER(ch,DEM_WINGS) )
{
if (!IS_DEMAFF(ch, DEM_WINGS)) send_to_char("You have the ability to extend wings from your back.\n\r",ch);
else if (IS_DEMAFF(ch, DEM_UNFOLDED)) send_to_char("You have a pair of large leathery wings unfolded behind your back.\n\r",ch);
else send_to_char("You have a pair of large leathery wings folded behind your back.\n\r",ch);
}
if ( IS_DEMPOWER(ch,DEM_MIGHT) )
send_to_char("Your muscles ripple with supernatural strength.\n\r",ch);
if ( IS_DEMPOWER(ch,DEM_TOUGH) )
send_to_char("Your skin reflects blows with supernatural toughness.\n\r",ch);
if ( IS_DEMPOWER(ch,DEM_SPEED) )
send_to_char("You move with supernatural speed and grace.\n\r",ch);
if ( IS_DEMPOWER(ch,DEM_TRAVEL) )
send_to_char("You are able to travel to other demons at will.\n\r",ch);
if ( IS_DEMPOWER(ch,DEM_SCRY) )
send_to_char("You are able to scry over great distances at will.\n\r",ch);
if ( IS_DEMPOWER(ch,DEM_SHADOWSIGHT) )
{
if (IS_AFFECTED(ch, AFF_SHADOWSIGHT)) send_to_char("You are able see things in the Umbra.\n\r",ch);
else send_to_char("You are able to view the Umbra, although you are not currently doing so.\n\r",ch);
}
if (IS_VAMPAFF(ch, VAM_OBFUSCATE))
send_to_char("You are concealed with Obfuscate.\n\r",ch);
if ( IS_DEMPOWER(ch,DEM_EYESPY) )
send_to_char("You have the ability to create Eyespy's.\n\r",ch);
if ( IS_DEMPOWER(ch,DEM_FIREWALL) )
send_to_char("You have the ability to summon Firewalls.\n\r",ch);
if (IS_MORE(ch,MORE_HAND_FLAME) )
send_to_char("Your hands are engulfed in burning flames.\n\r",ch);
}
else if (IS_VAMPIRE(ch) || IS_GHOUL(ch))
{
send_to_char("--------------------------------------------------------------------------------\n\r",ch);
Showing the first 100 KB of 251.7 KB. Download the archive for the full file.