werewolf.c
demise/src/werewolf.c · 161.6 KB
From the archive dodbackup-final.tar.gz
Download the archive « Back to the archive contents
/***************************************************************************
* Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, *
* Michael Seifert, Hans Henrik St{rfeldt, Tom Madsen, and Katja Nyboe. *
* *
* Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael *
* Chastain, Michael Quan, and Mitchell Tse. *
* *
* In order to use any part of this Merc Diku Mud, you must comply with *
* both the original Diku license in 'license.doc' as well the Merc *
* license in 'license.txt'. In particular, you may not remove either of *
* these copyright notices. *
* *
* Much time and thought has gone into this software and you are *
* benefitting. We hope that you share your changes too. What goes *
* around, comes around. *
***************************************************************************/
/***************************************************************************
* God Wars Mud improvements copyright (C) 1994, 1995, 1996 by Richard *
* Woolcock. This mud is NOT to be copied in whole or in part, or to be *
* run without the permission of Richard Woolcock. Nobody else has *
* permission to authorise the use of this code. *
***************************************************************************/
#if defined(macintosh)
#include <types.h>
#else
#include <sys/types.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "merc.h"
/* Local functions */
char *gift_breed_name args ((int gift_no));
char *gift_auspice_name args ((int gift_no));
char *gift_tribe_name args ((int gift_no));
void
do_entrap (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
int sn;
int level;
int spelltype;
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
do_huh (ch, "");
return;
}
if (get_tribe (ch, TRIBE_GLASS_WALKERS) < 1)
{
do_huh (ch, "");
return;
}
if (arg[0] == '\0')
{
stc ("Who do you wish to entrap ?", 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 entrap yourself.\n\r", ch);
return;
}
if (is_safe (ch, victim))
return;
if (get_tribe (ch, TRIBE_GLASS_WALKERS) > 1)
{
if ((sn = skill_lookup ("uberweb")) < 0)
return;
}
else
{
if ((sn = skill_lookup ("web")) < 0)
return;
}
spelltype = skill_table[sn].target;
if (get_tribe (ch, TRIBE_GLASS_WALKERS) > 2)
level = ch->spl[spelltype];
else
level = ch->spl[spelltype] * 0.5;
(*skill_table[sn].spell_fun) (sn, level, ch, victim);
waiting (ch, 9);
return;
}
void
do_wendigoshield (CHAR_DATA * ch, char *argument)
{
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_tribe (ch, TRIBE_WENDIGOS) < 6)
{
stc
("You need 6 in the Wendigo gift before you can call on the shield of the Wendigo.\n\r",
ch);
return;
}
if (IS_COR (ch, COR_FORCE))
{
stc
("You banish the shield of the Wendigo, leaving you more vulnerable to damage.\n\r",
ch);
act
("$n mutters a few words banishing the glowing nimbus around $s body.",
ch, NULL, NULL, TO_ROOM);
REMOVE_BIT (ch->corbits, COR_FORCE);
return;
}
stc
("You call upon the Shield of the Wendigo to protect you.\n\rYou are surrounded by a sparkling white nimbus.\n\r",
ch);
act ("$n is surrounded by a sprakling white nimbus.", ch, NULL, NULL,
TO_ROOM);
SET_BIT (ch->corbits, COR_FORCE);
return;
}
void
do_leapattack (CHAR_DATA * ch, char *argument)
{
ROOM_INDEX_DATA *location;
ROOM_INDEX_DATA *to_room;
EXIT_DATA *pexit;
CHAR_DATA *victim;
char arg1[MIL];
char arg2[MIL];
char buf[MIL];
char revdoor[MIL];
char wall[MIL];
int door;
bool missed;
bool tackle = FALSE;
bool moving = FALSE;
bool firsthit = FALSE;
bool inroom = FALSE;
argument = one_argument (argument, arg1);
argument = one_argument (argument, arg2);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch) || get_tribe (ch, TRIBE_BLACK_FURIES) < 10)
{
if (!IS_CREATOR (ch))
{
do_huh (ch, "");
return;
}
}
if (arg1[0] == '\0')
{
send_to_char ("What direction do you wish to leap ?\n\r", ch);
return;
}
if (arg2[0] == '\0')
{
send_to_char ("Who are you leaping at?\n\r", ch);
return;
}
if (!str_cmp (arg1, "n") || !str_cmp (arg1, "north"))
{
door = 0;
sprintf (arg1, "north");
}
else if (!str_cmp (arg1, "e") || !str_cmp (arg1, "east"))
{
door = 1;
sprintf (arg1, "east");
}
else if (!str_cmp (arg1, "s") || !str_cmp (arg1, "south"))
{
door = 2;
sprintf (arg1, "south");
}
else if (!str_cmp (arg1, "w") || !str_cmp (arg1, "west"))
{
door = 3;
sprintf (arg1, "west");
}
else if (!str_cmp (arg1, "u") || !str_cmp (arg1, "up"))
{
door = 4;
sprintf (arg1, "up");
}
else if (!str_cmp (arg1, "d") || !str_cmp (arg1, "down"))
{
door = 5;
sprintf (arg1, "down");
}
else
{
send_to_char
("You can only leap north, south, east, west, up or down.\n\r", ch);
return;
}
if (!str_cmp (arg1, "north"))
{
door = 0;
sprintf (revdoor, "the south");
sprintf (wall, "north wall");
}
else if (!str_cmp (arg1, "east"))
{
door = 1;
sprintf (revdoor, "the west");
sprintf (wall, "east wall");
}
else if (!str_cmp (arg1, "south"))
{
door = 2;
sprintf (revdoor, "the north");
sprintf (wall, "south wall");
}
else if (!str_cmp (arg1, "west"))
{
door = 3;
sprintf (revdoor, "the east");
sprintf (wall, "west wall");
}
else if (!str_cmp (arg1, "up"))
{
door = 4;
sprintf (revdoor, "below");
sprintf (wall, "ceiling");
}
else if (!str_cmp (arg1, "down"))
{
door = 5;
sprintf (revdoor, "above");
sprintf (wall, "floor");
}
else
return;
if (number_range (1, 10) > 1)
missed = FALSE;
else
missed = FALSE;
waiting (ch, 9);
/* Room Zero */
if ((victim = get_char_room (ch, arg2)) != NULL)
{
inroom = TRUE;
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_icy (ch, "");
if (is_safe (ch, victim))
missed = TRUE;
if (IS_SET (victim->in_room->added_flags, ROOM2_WARDVSWOLF))
missed = TRUE;
if (victim->position <= POS_STUNNED)
missed = TRUE;
if (missed)
{
sprintf (buf, "$n leaps at $N, just missing and carries on %s.",
arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
sprintf (buf,
"You leap at $N, barely missing, unable to stop you fly %s.",
arg1);
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf, "$n leaps at you, just missing and carries on %s.",
arg1);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
tackle = FALSE;
}
else
{
sprintf (buf,
"$n leaps at $N, tearing $M off $S feet and flying %s.",
arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
sprintf (buf,
"$n leaps at you, tearing you off your feet and flying %s with you.",
arg1);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
sprintf (buf,
"You hit $N hard, tearing $M off $S feet and both of you fly %s.",
arg1);
act (buf, ch, NULL, victim, TO_CHAR);
if (!IS_NPC (victim))
{
victim->fight_timer += 30;
ch->fight_timer += 30;
}
tackle = TRUE;
moving = TRUE;
firsthit = TRUE;
}
}
if (!inroom)
{
sprintf (buf, "You leap %s.", arg1);
act (buf, ch, NULL, NULL, TO_CHAR);
sprintf (buf, "$n leaps %s.", arg1);
act (buf, ch, NULL, NULL, TO_ROOM);
}
/* First room */
if ((pexit = ch->in_room->exit[door]) == NULL
|| (to_room = pexit->to_room) == NULL)
{
if (tackle)
{
sprintf (buf,
"You slam $N into the %s, using $S body as a shield against the impact.",
wall);
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf,
"$n slams you into the %s, absorbing the impact with ... YOU!",
wall);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
sprintf (buf,
"$n slams $N into the %s, using $S body as a impact shield.",
wall);
act (buf, ch, NULL, victim, TO_NOTVICT);
victim->hit -= number_range (5000, 10000);
update_pos (victim);
victim->position = POS_STUNNED;
multi_hit (ch, victim, TYPE_UNDEFINED);
multi_hit (ch, victim, TYPE_UNDEFINED);
return;
}
sprintf (buf, "You bounce off the %s, falling over in a daze.", wall);
act (buf, ch, NULL, NULL, TO_CHAR);
sprintf (buf, "$n bounces off the %s, falling over in a daze.", wall);
act (buf, ch, NULL, NULL, TO_ROOM);
ch->hit -= number_range (5000, 10000);
update_pos (ch);
ch->position = POS_STUNNED;
return;
}
pexit = ch->in_room->exit[door];
if (IS_SET (pexit->exit_info, EX_CLOSED))
{
if (tackle)
{
sprintf (buf,
"$n and $N crashes through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
sprintf (buf,
"You and $N crash through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf,
"$n and you crash through the %s door, not even slowing.",
arg1);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
}
else
{
sprintf (buf, "$n crashes through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, NULL, TO_ROOM);
sprintf (buf, "You crash through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, NULL, TO_CHAR);
}
if (IS_SET (pexit->exit_info, EX_LOCKED))
{
REMOVE_BIT (pexit->exit_info, EX_LOCKED);
}
REMOVE_BIT (pexit->exit_info, EX_CLOSED);
}
if (!missed)
{
if (tackle)
{
if (!firsthit)
{
sprintf (buf,
"$n and $N come flying in from %s and carries on %s.",
revdoor, arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
}
firsthit = FALSE;
}
else
{
sprintf (buf, "$n comes flying in from %s and carries on %s.",
revdoor, arg1);
act (buf, ch, NULL, NULL, TO_ROOM);
}
}
char_from_room (ch);
char_to_room (ch, to_room);
stc ("\n\r", ch);
do_look (ch, "");
if (tackle)
{
char_from_room (victim);
char_to_room (victim, to_room);
stc ("\n\r", victim);
do_look (victim, "");
}
if ((victim = get_char_room (ch, arg2)) != NULL)
{
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_icy (ch, "");
if (is_safe (ch, victim))
missed = TRUE;
if (IS_SET (victim->in_room->added_flags, ROOM2_WARDVSWOLF))
missed = TRUE;
if (victim->position <= POS_STUNNED)
missed = TRUE;
if (missed)
{
sprintf (buf,
"$n flies in from %s, just missing $N, and carrying on %s.",
revdoor, arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
sprintf (buf,
"You fly in from %s, barely missing $N, unable to stop you keep flying %s.",
revdoor, arg1);
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf,
"$n flies in from %s, just missing you, and carrying on %s.",
revdoor, arg1);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
tackle = FALSE;
}
else
{
if (!moving)
{
sprintf (buf,
"$n comes flying in from %s, tearing $N off $S feet and carrying on %s.",
revdoor, arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
sprintf (buf,
"$n comes flying in from %s, tearing you off your feet and carrying on with you %s.",
revdoor, arg1);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
sprintf (buf,
"You hit $N hard, tearing $M off $S feet and carrying on %s.",
arg1);
act (buf, ch, NULL, victim, TO_CHAR);
if (!IS_NPC (victim))
{
victim->fight_timer += 30;
ch->fight_timer += 30;
}
tackle = TRUE;
moving = TRUE;
firsthit = TRUE;
}
}
}
/* Second room */
if ((pexit = ch->in_room->exit[door]) == NULL
|| (to_room = pexit->to_room) == NULL)
{
if (tackle)
{
sprintf (buf,
"You slam $N into the %s, using $S body as a shield against the impact.",
wall);
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf,
"$n slams you into the %s, absorbing the impact with ... YOU!",
wall);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
sprintf (buf,
"$n slams $N into the %s, using $S body as a impact shield.",
wall);
act (buf, ch, NULL, victim, TO_NOTVICT);
victim->hit -= number_range (5000, 10000);
update_pos (victim);
victim->position = POS_STUNNED;
multi_hit (ch, victim, TYPE_UNDEFINED);
multi_hit (ch, victim, TYPE_UNDEFINED);
return;
}
sprintf (buf, "You bounce off the %s, falling over in a daze.", wall);
act (buf, ch, NULL, NULL, TO_CHAR);
sprintf (buf, "$n bounces off the %s, falling over in a daze.", wall);
act (buf, ch, NULL, NULL, TO_ROOM);
ch->hit -= number_range (5000, 10000);
update_pos (ch);
ch->position = POS_STUNNED;
return;
}
pexit = ch->in_room->exit[door];
if (IS_SET (pexit->exit_info, EX_CLOSED))
{
if (tackle)
{
sprintf (buf,
"$n and $N crashes through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
sprintf (buf,
"You and $N crash through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf,
"$n and you crash through the %s door, not even slowing.",
arg1);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
}
else
{
sprintf (buf, "$n crashes through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, NULL, TO_ROOM);
sprintf (buf, "You crash through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, NULL, TO_CHAR);
}
if (IS_SET (pexit->exit_info, EX_LOCKED))
{
REMOVE_BIT (pexit->exit_info, EX_LOCKED);
}
REMOVE_BIT (pexit->exit_info, EX_CLOSED);
}
if (!missed)
{
if (tackle)
{
if (!firsthit)
{
sprintf (buf,
"$n and $N come flying in from %s and carries on %s.",
revdoor, arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
}
firsthit = FALSE;
}
else
{
sprintf (buf, "$n comes flying in from %s and carries on %s.",
revdoor, arg1);
act (buf, ch, NULL, NULL, TO_ROOM);
}
}
char_from_room (ch);
char_to_room (ch, to_room);
stc ("\n\r", ch);
do_look (ch, "");
if (tackle)
{
char_from_room (victim);
char_to_room (victim, to_room);
stc ("\n\r", victim);
do_look (victim, "");
}
if ((victim = get_char_room (ch, arg2)) != NULL)
{
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_icy (ch, "");
if (is_safe (ch, victim))
missed = TRUE;
if (IS_SET (victim->in_room->added_flags, ROOM2_WARDVSWOLF))
missed = TRUE;
if (victim->position <= POS_STUNNED)
missed = TRUE;
if (missed)
{
sprintf (buf,
"$n flies in from %s, just missing $N, and carrying on %s.",
revdoor, arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
sprintf (buf,
"You fly in from %s, barely missing $N, unable to stop you keep flying %s.",
revdoor, arg1);
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf,
"$n flies in from %s, just missing you, and carrying on %s.",
revdoor, arg1);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
tackle = FALSE;
}
else
{
if (!moving)
{
sprintf (buf,
"$n comes flying in from %s, tearing $N off $S feet and carrying on %s.",
revdoor, arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
sprintf (buf,
"$n comes flying in from %s, tearing you off your feet and carrying on with you %s.",
revdoor, arg1);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
sprintf (buf,
"You hit $N hard, tearing $M off $S feet and carrying on %s.",
arg1);
act (buf, ch, NULL, victim, TO_CHAR);
if (!IS_NPC (victim))
{
victim->fight_timer += 30;
ch->fight_timer += 30;
}
tackle = TRUE;
moving = TRUE;
firsthit = TRUE;
}
}
}
/* Third room */
if ((pexit = ch->in_room->exit[door]) == NULL
|| (to_room = pexit->to_room) == NULL)
{
if (tackle)
{
sprintf (buf,
"You slam $N into the %s, using $S body as a shield against the impact.",
wall);
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf,
"$n slams you into the %s, absorbing the impact with ... YOU!",
wall);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
sprintf (buf,
"$n slams $N into the %s, using $S body as a impact shield.",
wall);
act (buf, ch, NULL, victim, TO_NOTVICT);
victim->hit -= number_range (5000, 10000);
update_pos (victim);
victim->position = POS_STUNNED;
multi_hit (ch, victim, TYPE_UNDEFINED);
multi_hit (ch, victim, TYPE_UNDEFINED);
return;
}
sprintf (buf, "You bounce off the %s, falling over in a daze.", wall);
act (buf, ch, NULL, NULL, TO_CHAR);
sprintf (buf, "$n bounces off the %s, falling over in a daze.", wall);
act (buf, ch, NULL, NULL, TO_ROOM);
ch->hit -= number_range (5000, 10000);
update_pos (ch);
ch->position = POS_STUNNED;
return;
}
pexit = ch->in_room->exit[door];
if (IS_SET (pexit->exit_info, EX_CLOSED))
{
if (tackle)
{
sprintf (buf,
"$n and $N crashes through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
sprintf (buf,
"You and $N crash through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf,
"$n and you crash through the %s door, not even slowing.",
arg1);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
}
else
{
sprintf (buf, "$n crashes through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, NULL, TO_ROOM);
sprintf (buf, "You crash through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, NULL, TO_CHAR);
}
if (IS_SET (pexit->exit_info, EX_LOCKED))
{
REMOVE_BIT (pexit->exit_info, EX_LOCKED);
}
REMOVE_BIT (pexit->exit_info, EX_CLOSED);
}
if (!missed)
{
if (tackle)
{
if (!firsthit)
{
sprintf (buf,
"$n and $N come flying in from %s and carries on %s.",
revdoor, arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
}
firsthit = FALSE;
}
else
{
sprintf (buf, "$n comes flying in from %s and carries on %s.",
revdoor, arg1);
act (buf, ch, NULL, NULL, TO_ROOM);
}
}
char_from_room (ch);
char_to_room (ch, to_room);
stc ("\n\r", ch);
do_look (ch, "");
if (tackle)
{
char_from_room (victim);
char_to_room (victim, to_room);
stc ("\n\r", victim);
do_look (victim, "");
}
if ((victim = get_char_room (ch, arg2)) != NULL)
{
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_icy (ch, "");
if (is_safe (ch, victim))
missed = TRUE;
if (IS_SET (victim->in_room->added_flags, ROOM2_WARDVSWOLF))
missed = TRUE;
if (victim->position <= POS_STUNNED)
missed = TRUE;
if (missed)
{
sprintf (buf,
"$n flies in from %s, just missing $N, and carrying on %s.",
revdoor, arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
sprintf (buf,
"You fly in from %s, barely missing $N, unable to stop you keep flying %s.",
revdoor, arg1);
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf,
"$n flies in from %s, just missing you, and carrying on %s.",
revdoor, arg1);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
tackle = FALSE;
}
else
{
if (!moving)
{
sprintf (buf,
"$n comes flying in from %s, tearing $N off $S feet and carrying on %s.",
revdoor, arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
sprintf (buf,
"$n comes flying in from %s, tearing you off your feet and carrying on with you %s.",
revdoor, arg1);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
sprintf (buf,
"You hit $N hard, tearing $M off $S feet and carrying on %s.",
arg1);
act (buf, ch, NULL, victim, TO_CHAR);
if (!IS_NPC (victim))
{
victim->fight_timer += 30;
ch->fight_timer += 30;
}
tackle = TRUE;
moving = TRUE;
firsthit = TRUE;
}
}
}
/* Final Room */
if ((pexit = ch->in_room->exit[door]) == NULL
|| (to_room = pexit->to_room) == NULL)
{
if (tackle)
{
sprintf (buf,
"You slam $N into the %s, using $S body as a shield against the impact.",
wall);
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf,
"$n slams you into the %s, absorbing the impact with ... YOU!",
wall);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
sprintf (buf,
"$n slams $N into the %s, using $S body as a impact shield.",
wall);
act (buf, ch, NULL, victim, TO_NOTVICT);
victim->hit -= number_range (5000, 10000);
update_pos (victim);
victim->position = POS_STUNNED;
multi_hit (ch, victim, TYPE_UNDEFINED);
multi_hit (ch, victim, TYPE_UNDEFINED);
return;
}
sprintf (buf, "You bounce off the %s, falling over in a daze.", wall);
act (buf, ch, NULL, NULL, TO_CHAR);
sprintf (buf, "$n bounces off the %s, falling over in a daze.", wall);
act (buf, ch, NULL, NULL, TO_ROOM);
ch->hit -= number_range (5000, 10000);
update_pos (ch);
ch->position = POS_STUNNED;
return;
}
pexit = ch->in_room->exit[door];
if (IS_SET (pexit->exit_info, EX_CLOSED))
{
if (tackle)
{
sprintf (buf,
"$n and $N crashes through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
sprintf (buf,
"You and $N crash through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf,
"$n and you crash through the %s door, not even slowing.",
arg1);
if (victim == NULL && IS_NPC (victim))
act (buf, ch, NULL, victim, TO_VICT);
}
else
{
sprintf (buf, "$n crashes through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, NULL, TO_ROOM);
sprintf (buf, "You crash through the %s door, not even slowing.",
arg1);
act (buf, ch, NULL, NULL, TO_CHAR);
}
if (IS_SET (pexit->exit_info, EX_LOCKED))
{
REMOVE_BIT (pexit->exit_info, EX_LOCKED);
}
REMOVE_BIT (pexit->exit_info, EX_CLOSED);
}
if (!missed)
{
if (tackle)
{
if (!firsthit)
{
sprintf (buf,
"$n and $N come flying in from %s and carries on %s.",
revdoor, arg1);
act (buf, ch, NULL, victim, TO_NOTVICT);
}
firsthit = FALSE;
}
else
{
sprintf (buf, "$n comes flying in from %s and carries on %s.",
revdoor, arg1);
act (buf, ch, NULL, NULL, TO_ROOM);
}
}
char_from_room (ch);
char_to_room (ch, to_room);
stc ("\n\r", ch);
do_look (ch, "");
if (tackle)
{
char_from_room (victim);
char_to_room (victim, to_room);
stc ("\n\r", victim);
do_look (victim, "");
}
if (tackle)
{
sprintf (buf,
"$n and $N come flying in from %s, landing hard, leaving skid marks on the ground.",
revdoor);
act (buf, ch, NULL, victim, TO_NOTVICT);
sprintf (buf,
"You and $N fly into the room landing hard, still sitting on $N chest.");
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf,
"You fly into the room landing hard on your back, with the rabid $n still sitting on your chest.");
act (buf, ch, NULL, victim, TO_VICT);
victim->position = POS_STUNNED;
multi_hit (ch, victim, TYPE_UNDEFINED);
multi_hit (ch, victim, TYPE_UNDEFINED);
return;
}
sprintf (buf,
"$n comes flying in from %s and lands hard, leaving claw marks in the ground.",
revdoor);
act (buf, ch, NULL, NULL, TO_ROOM);
sprintf (buf,
"You fly into the room landing hard, leaving claw marks on the ground.");
act (buf, ch, NULL, NULL, TO_CHAR);
return;
}
void
do_gaiasprison (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
char buf[MSL];
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
do_huh (ch, "");
return;
}
if (get_tribe (ch, TRIBE_WENDIGOS) < 9)
{
stc
("You need atleast the Wendigo tribe gift to 9 before you can make Gaia imprison someone.\n\r",
ch);
return;
}
if (has_fighttimer (ch))
return;
if (arg[0] == '\0')
{
stc ("Who do you wish to imprison?\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)
{
stc ("I think not.\n\r", ch);
return;
}
act ("$n raises $s arms and chants loudly.", ch, NULL, NULL, TO_ROOM);
stc ("You raise your arms and call for Gaia's aid.\n\r", ch);
waiting (ch, 9);
if (IS_NPC (victim))
{
stc ("You can not imprison Mobs.\n\r", ch);
return;
}
if (IS_COR (victim, COR_STONEJAIL))
{
REMOVE_BIT (victim->corbits, COR_STONEJAIL);
act ("You release $N from Gaia's grasp.", ch, NULL, victim, TO_CHAR);
act ("$n releases you from Gaia's grasp.", ch, NULL, victim, TO_VICT);
act ("$n releases $N from Gaia's grasp.", ch, NULL, victim, TO_NOTVICT);
victim->gaiasprison = 0;
return;
}
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to call down Gaia's prison on you.", ch, NULL,
victim, TO_VICT);
}
return;
}
if (ch->gaiasprison > 0)
{
sprintf (buf, "You can not imprison anyone for another %s\n\r",
get_time (ch->gaiasprison, ""));
stc (buf, ch);
return;
}
if (get_tribe (victim, TRIBE_WENDIGOS) > 8)
{
act ("You try to imprison $N but $E easily counters your spell.", ch,
NULL, victim, TO_CHAR);
act ("$n trys to imprison $N but $E easily counters $s spell.", ch,
NULL, victim, TO_CHAR);
act ("$n trys to imprison you but you easily counters $s spell.", ch,
NULL, victim, TO_CHAR);
ch->gaiasprison = 30;
return;
}
if (number_range (1, 10) > 6)
{
stc ("Gaia will not grant you this boon at this time.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to call down Gaia's prison on you.", ch, NULL,
victim, TO_VICT);
}
ch->gaiasprison = 30;
return;
}
if (victim->position == POS_FIGHTING)
stop_fighting (victim, TRUE);
act ("$n's body hums with power as $e is imbued with the essence of Gaia.",
ch, NULL, NULL, TO_ROOM);
act
("Your body hums with power as you are imbued with the essence of Gaia.",
ch, NULL, NULL, TO_CHAR);
sprintf (buf,
"Your time has come %s, here is a little present from my Mistress!",
victim->name);
do_say (ch, buf);
act
("$n's body sparkles violently as $e discharges the magic $e borrowed from Gaia.",
ch, NULL, NULL, TO_ROOM);
act
("Your body sparkles violently as you discharge the magic you borrowed from Gaia.",
ch, NULL, NULL, TO_CHAR);
act ("$N is encased in solid stone as the discharged magic strikes $M.", ch,
NULL, victim, TO_CHAR);
act ("$N is encased in solid stone as the discharged magic strikes $M.", ch,
NULL, victim, TO_NOTVICT);
act ("You are encased in solid stone as the discharged magic strikes you.",
ch, NULL, victim, TO_VICT);
stc ("Damn you really pissed off the wrong servent of Gaia.\n\r", victim);
SET_BIT (victim->corbits, COR_STONEJAIL);
victim->gaiasprison = 240;
ch->gaiasprison = 300;
return;
}
void
do_persuasion (CHAR_DATA * ch, char *argument)
{
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_breed (ch, BREED_HOMID) < 1)
{
send_to_char
("You require the level 1 Homid power to become persuasive.\n\r", ch);
return;
}
if (IS_EXTRA (ch, EXTRA_AWE))
{
send_to_char ("You are no longer so persuasive.\n\r", ch);
act ("$n no longer appears so persuasive.", ch, NULL, NULL, TO_ROOM);
REMOVE_BIT (ch->extra, EXTRA_AWE);
return;
}
send_to_char ("Your are now persuasive.\n\r", ch);
act ("$n suddenly appears very persuasive.", ch, NULL, NULL, TO_ROOM);
SET_BIT (ch->extra, EXTRA_AWE);
return;
}
void
do_hearttwister (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
do_huh (ch, "");
return;
}
if (get_auspice (ch, AUSPICE_GALLIARD) < 5)
{
stc
("You need atleast 5 in Galliard before you can Twist someones Heart.\n\r",
ch);
return;
}
if (arg[0] == '\0')
{
stc ("Who's Heart do you wish to twist?\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_IMMUNE (victim, IMM_VAMPIRE))
{
stc
("You can not twist their heart as long as their defences are up.\n\r",
ch);
return;
}
act ("You stare into $N eyes, searching for the taints of the wyrm.", ch,
NULL, victim, TO_CHAR);
act ("$n stares into $N eyes for a moment.", ch, NULL, victim, TO_NOTVICT);
act ("$n stares into your eyes, you feel like $e is scanning your soul.",
ch, NULL, victim, TO_VICT);
if (strlen (victim->pcdata->conding) < 2
&& strlen (victim->pcdata->love) < 2)
{
stc ("They have no traces of wyrm curruption.\n\r", ch);
return;
}
if (strlen (victim->pcdata->conding) > 2
|| strlen (victim->pcdata->love) > 2)
{
free_string (victim->pcdata->love);
victim->pcdata->love = str_dup ("");
free_string (victim->pcdata->conding);
victim->pcdata->conding = str_dup ("");
if (IS_SET (victim->more, MORE_LOYAL))
{
REMOVE_BIT (victim->more, MORE_LOYAL);
}
act
("You remove the taints of the wyrm, purging $N's conditioning and forced loyalty.\n\r",
ch, NULL, victim, TO_CHAR);
act
("$n removes the taints of the wyrm, purging your conditioning and forced loyalty.\n\r",
ch, NULL, victim, TO_VICT);
act ("$N seems confused for a moment.", ch, NULL, victim, TO_NOTVICT);
}
return;
}
void
do_earthquake (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *vch;
CHAR_DATA *vch_next;
int dam;
int level;
if (IS_NPC (ch))
return;
if (IS_WEREWOLF (ch))
{
if (get_tribe (ch, TRIBE_WENDIGOS) < 2)
{
stc ("You need Wendigo to 2 before Gaia will heave for you.\n\r",
ch);
return;
}
}
else
{
do_huh (ch, "");
return;
}
if (ch->mana < 150)
{
send_to_char ("You need more mystical power.\n\r", ch);
return;
}
level = ch->spl[PURPLE_MAGIC] * get_tribe (ch, TRIBE_WENDIGOS);
ch->mana -= 150;
send_to_char
("You summon the power of Gaia, forcing the earth to heave and shake.\n\r",
ch);
act ("$n causes the earth to quake", ch, NULL, NULL, TO_ROOM);
for (vch = ch->in_room->people; vch != NULL; vch = vch_next)
{
vch_next = vch->next_in_room;
if (is_safe (ch, vch))
continue;
if (vch == ch)
continue;
dam = dice (level, 70);
if (saves_spell (level, vch))
dam /= 2;
sev_hit (ch, vch, dam, skill_lookup ("earthquake"), DAM_NORMAL,
(ch->pcdata->rank + 1), FALSE, TRUE, TRUE);
}
waiting (ch, 12);
return;
}
void
do_minorcreate (CHAR_DATA * ch, char *argument)
{
return;
}
void
do_staredown (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
int sn;
int level;
int spelltype;
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_breed (ch, BREED_HOMID) < 2)
{
send_to_char
("You require the level 2 Homid power to staredown someone.\n\r", ch);
return;
}
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_icy (ch, "");
if (arg[0] == '\0')
{
send_to_char ("Who do you wish to use Staredown on?\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
if (ch == victim)
{
send_to_char ("You're pretty scared of yourself!\n\r", ch);
return;
}
if (IS_AFFECTED (victim, AFF_FEAR))
{
send_to_char ("They are already pretty scared.\n\r", ch);
return;
}
act ("You lock eyes with $N.", ch, NULL, victim, TO_CHAR);
act ("$n locks eyes with $N.", ch, NULL, victim, TO_NOTVICT);
act ("$n locks eyes with you.", ch, NULL, victim, TO_VICT);
if (IS_MORE (victim, MORE_COURAGE))
{
send_to_char ("They are far too brave to be scared so easily.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Staredown on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (IS_XXX (victim, XXX_MINDBLOCK))
{
stc ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Staredown on you.", ch, NULL, victim,
TO_VICT);
}
}
if (!IS_NPC (victim) && victim->pcdata->resist[WILL_PRESENCE] > 0)
{
send_to_char ("Your Staredown has no effect on them.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Staredown on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (!IS_NPC (victim) && IS_WILLPOWER (victim, RES_PRESENCE) &&
victim->pcdata->willpower[0] >= 10)
{
victim->pcdata->willpower[0] -= 10;
victim->pcdata->resist[WILL_PRESENCE] = 60;
if (!IS_WILLPOWER (victim, RES_TOGGLE))
REMOVE_BIT (victim->pcdata->resist[0], RES_PRESENCE);
send_to_char ("Your Staredown has no effect on them.\n\r", ch);
send_to_char ("You burn some willpower to resist Staredown.\n\r",
victim);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Staredown on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if ((sn = skill_lookup ("fear")) < 0)
return;
spelltype = skill_table[sn].target;
level = get_breed (ch, BREED_HOMID) * 10;
(*skill_table[sn].spell_fun) (sn, level, ch, victim);
waiting (ch, 12);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Staredown on you.", ch, NULL, victim, TO_VICT);
}
return;
}
void
do_witherlimb (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
OBJ_DATA *obj;
char arg[MIL];
char buf[MIL];
int critical = number_range (1, 4);
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_breed (ch, BREED_METIS) < 4)
{
send_to_char
("You require the level 4 Metis power to Wither Limbs.\n\r", ch);
return;
}
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_icy (ch, "");
if (arg[0] == '\0')
{
send_to_char ("Who do you wish to use Wither Limb on?\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They are not here.\n\r", ch);
return;
}
if (ch == victim)
{
send_to_char ("Now that would be really silly...\n\r", ch);
return;
}
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
waiting (ch, 12);
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Wither Limb on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (number_percent () > 10 * get_breed (ch, BREED_METIS))
{
send_to_char ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Wither Limb on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (IS_NPC (victim) && victim->pIndexData->vnum == 3011)
{
stc ("The executinor resists your attempt to Wither of his limb's.\n\r",
ch);
if (victim->fighting == NULL)
{
sprintf (buf,
"Heh, that was stupid %s, didn't anyone ever teach you not to pick a fight you can't win? Well time for me to teach you that lesson!",
ch->name);
do_shout (victim, buf);
}
do_kill (victim, ch->name);
return;
}
if (limbsafe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Wither Limb on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (critical == 1)
{
if (IS_ARM_L (victim, LOST_ARM))
{
send_to_char ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Wither Limb on you.", ch, NULL,
victim, TO_VICT);
}
return;
}
SET_BIT (victim->loc_hp[2], LOST_ARM);
if (IS_BLEEDING (victim, BLEEDING_HAND_L))
REMOVE_BIT (victim->loc_hp[6], BLEEDING_HAND_L);
send_to_char ("Your left arm withers up and falls off!\n\r", victim);
act ("$n's left arm withers up and falls off!", victim, NULL, NULL,
TO_ROOM);
make_part (victim, "arm");
if (IS_ARM_L (victim, LOST_ARM) && IS_ARM_R (victim, LOST_ARM))
{
if ((obj = get_eq_char (victim, WEAR_ARMS)) != NULL)
take_item (victim, obj);
}
if ((obj = get_eq_char (victim, WEAR_HOLD)) != NULL)
take_item (victim, obj);
if ((obj = get_eq_char (victim, WEAR_HANDS)) != NULL)
take_item (victim, obj);
if ((obj = get_eq_char (victim, WEAR_WRIST_L)) != NULL)
take_item (victim, obj);
if ((obj = get_eq_char (victim, WEAR_FINGER_L)) != NULL)
take_item (victim, obj);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Wither Limb on you.", ch, NULL, victim, TO_VICT);
}
if (IS_NPC (victim))
do_kill (victim, ch->name);
return;
}
else if (critical == 2)
{
if (IS_ARM_R (victim, LOST_ARM))
{
send_to_char ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Wither Limb on you.", ch, NULL,
victim, TO_VICT);
}
return;
}
SET_BIT (victim->loc_hp[3], LOST_ARM);
if (IS_BLEEDING (victim, BLEEDING_HAND_R))
REMOVE_BIT (victim->loc_hp[6], BLEEDING_HAND_R);
send_to_char ("Your right arm withers up and falls off!\n\r", victim);
act ("$n's right arm withers up and falls off!", victim, NULL, NULL,
TO_ROOM);
make_part (victim, "arm");
if (IS_ARM_L (victim, LOST_ARM) && IS_ARM_R (victim, LOST_ARM))
{
if ((obj = get_eq_char (victim, WEAR_ARMS)) != NULL)
take_item (victim, obj);
}
if ((obj = get_eq_char (victim, WEAR_WIELD)) != NULL)
take_item (victim, obj);
if ((obj = get_eq_char (victim, WEAR_HANDS)) != NULL)
take_item (victim, obj);
if ((obj = get_eq_char (victim, WEAR_WRIST_R)) != NULL)
take_item (victim, obj);
if ((obj = get_eq_char (victim, WEAR_FINGER_R)) != NULL)
take_item (victim, obj);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Wither Limb on you.", ch, NULL, victim, TO_VICT);
}
if (IS_NPC (victim))
do_kill (victim, ch->name);
return;
}
else if (critical == 3)
{
if (IS_LEG_L (victim, LOST_LEG))
{
send_to_char ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Wither Limb on you.", ch, NULL,
victim, TO_VICT);
}
return;
}
SET_BIT (victim->loc_hp[4], LOST_LEG);
if (IS_BLEEDING (victim, BLEEDING_FOOT_L))
REMOVE_BIT (victim->loc_hp[6], BLEEDING_FOOT_L);
send_to_char ("Your left leg withers up and falls off!\n\r", victim);
act ("$n's left leg withers up and falls off!", victim, NULL, NULL,
TO_ROOM);
make_part (victim, "leg");
if (IS_LEG_L (victim, LOST_LEG) && IS_LEG_R (victim, LOST_LEG))
{
if ((obj = get_eq_char (victim, WEAR_LEGS)) != NULL)
take_item (victim, obj);
}
if ((obj = get_eq_char (victim, WEAR_FEET)) != NULL)
take_item (victim, obj);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Wither Limb on you.", ch, NULL, victim, TO_VICT);
}
if (IS_NPC (victim))
do_kill (victim, ch->name);
return;
}
else if (critical == 4)
{
if (IS_LEG_R (victim, LOST_LEG))
{
send_to_char ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Wither Limb on you.", ch, NULL,
victim, TO_VICT);
}
return;
}
SET_BIT (victim->loc_hp[5], LOST_LEG);
if (IS_BLEEDING (victim, BLEEDING_FOOT_R))
REMOVE_BIT (victim->loc_hp[6], BLEEDING_FOOT_R);
send_to_char ("Your right leg withers up and falls off!\n\r", victim);
act ("$n's right leg withers up and falls off!", victim, NULL, NULL,
TO_ROOM);
make_part (victim, "leg");
if (IS_LEG_L (victim, LOST_LEG) && IS_LEG_R (victim, LOST_LEG))
{
if ((obj = get_eq_char (victim, WEAR_LEGS)) != NULL)
take_item (victim, obj);
}
if ((obj = get_eq_char (victim, WEAR_FEET)) != NULL)
take_item (victim, obj);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Wither Limb on you.", ch, NULL, victim, TO_VICT);
}
if (IS_NPC (victim))
do_kill (victim, ch->name);
return;
}
send_to_char ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Wither Limb on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
void
do_blur (CHAR_DATA * ch, char *argument)
{
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_auspice (ch, AUSPICE_RAGABASH) < 2)
{
send_to_char
("You require the level 2 Ragabash power to use Blur of the Milky Eye.\n\r",
ch);
return;
}
if (IS_SET (ch->act, PLR_WIZINVIS))
{
REMOVE_BIT (ch->act, PLR_WIZINVIS);
send_to_char ("You slowly fade into existance.\n\r", ch);
act ("$n slowly fades into existance.", ch, NULL, NULL, TO_ROOM);
}
else
{
send_to_char ("You slowly fade out of existance.\n\r", ch);
act ("$n slowly fades out of existance.", ch, NULL, NULL, TO_ROOM);
SET_BIT (ch->act, PLR_WIZINVIS);
}
return;
}
void
do_truefear (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
AFFECT_DATA af;
char arg[MIL];
int sn;
int level;
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_auspice (ch, AUSPICE_AHROUN) < 4)
{
send_to_char
("You require the level 4 Ahroun power to use True Fear.\n\r", ch);
return;
}
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_icy (ch, "");
if (arg[0] == '\0')
{
send_to_char ("Who do you wish to use True Fear on?\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
if (ch == victim)
{
send_to_char ("You're pretty scared of yourself!\n\r", ch);
return;
}
if (IS_AFFECTED (victim, AFF_FEAR))
{
send_to_char ("They are already pretty scared.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use True Fear on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (IS_MORE (victim, MORE_COURAGE))
{
send_to_char ("They are far too brave to be scared so easily.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use True Fear on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use True Fear on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (IS_XXX (victim, XXX_MINDBLOCK))
{
stc ("Nothing happens.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use True Fear on you.", ch, NULL, victim,
TO_VICT);
}
}
level = get_auspice (ch, AUSPICE_AHROUN) * 10;
if (saves_spell (level, victim) && victim->position >= POS_FIGHTING)
{
act ("$E ignores you.", ch, NULL, victim, TO_CHAR);
act ("You ignore $m.", ch, NULL, victim, TO_VICT);
act ("$N ignores $n.", ch, NULL, victim, TO_NOTVICT);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use True Fear on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
send_to_char ("You scream in utter terror!\n\r", victim);
act ("$n screams in utter terror!", victim, NULL, NULL, TO_ROOM);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used True Fear on you.", ch, NULL, victim, TO_VICT);
}
if ((sn = skill_lookup ("fear")) < 0)
{
send_to_char ("Bug - please inform Corim.\n\r", ch);
return;
}
af.type = sn;
af.location = APPLY_HITROLL;
af.modifier = 0 - get_auspice (ch, AUSPICE_AHROUN) * 10;
af.duration = number_range (1, 2);
af.bitvector = AFF_FEAR;
affect_to_char (victim, &af);
af.location = APPLY_DAMROLL;
af.modifier = 0 - get_auspice (ch, AUSPICE_AHROUN);
affect_to_char (victim, &af);
waiting (ch, 12);
return;
}
void
do_scentbeyond (CHAR_DATA * ch, char *argument)
{
char arg[MIL];
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_auspice (ch, AUSPICE_THEURGE) < 2)
{
send_to_char
("You require the level 2 power of Theurge to use Scent from Beyond.\n\r",
ch);
return;
}
if (IS_VAMPAFF (ch, VAM_SPIRITEYES))
{
send_to_char ("You can no longer sense things in the shadowlands.\n\r",
ch);
REMOVE_BIT (ch->vampaff, VAM_SPIRITEYES);
return;
}
send_to_char ("You can now sense things in the shadowlands.\n\r", ch);
SET_BIT (ch->vampaff, VAM_SPIRITEYES);
return;
}
void
do_disquiet (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_breed (ch, BREED_HOMID) < 4)
{
send_to_char
("You require the level 4 Homid power to use Disquiet.\n\r", ch);
return;
}
if (arg[0] == '\0')
{
send_to_char ("Who do you wish to use Disquiet on?\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They are not here.\n\r", ch);
return;
}
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
if (IS_MORE (victim, MORE_CALM))
{
send_to_char ("You no longer feel so apathetic.\n\r", victim);
REMOVE_BIT (victim->more, MORE_CALM);
waiting (ch, 12);
return;
}
if (!IS_NPC (victim) && victim->pcdata->resist[WILL_PRESENCE] > 0
&& ch != victim)
{
send_to_char ("They resist you.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Disquiet on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (!IS_NPC (victim) && IS_WILLPOWER (victim, RES_PRESENCE) &&
victim->pcdata->willpower[0] >= 10 && ch != victim)
{
victim->pcdata->willpower[0] -= 10;
victim->pcdata->resist[WILL_PRESENCE] = 60;
if (!IS_WILLPOWER (victim, RES_TOGGLE))
REMOVE_BIT (victim->pcdata->resist[0], RES_PRESENCE);
send_to_char ("You burn some willpower to resist Disquiet.\n\r",
victim);
send_to_char ("They resist you.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Disquiet on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Disquiet on you.", ch, NULL, victim, TO_VICT);
}
if (IS_MORE (victim, MORE_ANGER))
{
send_to_char ("You no longer feel so angry.\n\r", victim);
act ("$n regains $s temper.", victim, NULL, NULL, TO_ROOM);
REMOVE_BIT (victim->more, MORE_ANGER);
waiting (ch, 12);
return;
}
send_to_char ("You suddenly feel very apathetic!\n\r", victim);
act ("$n yawns and looks around with a bored expression.", victim, NULL,
NULL, TO_ROOM);
SET_BIT (victim->more, MORE_CALM);
waiting (ch, 12);
return;
}
void
do_aeolus (CHAR_DATA * ch, char *argument)
{
DESCRIPTOR_DATA *d;
CHAR_DATA *victim;
char buf[MIL];
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_tribe (ch, TRIBE_BLACK_FURIES) < 1)
{
send_to_char
("You require the level 1 power of the Black Furies to use the Curse of Aeolus.\n\r",
ch);
return;
}
if (ch->in_room == NULL)
{
send_to_char ("Nothing happens.\n\r", ch);
return;
}
if (ch->pcdata->wpoints > 0)
{
if (ch->pcdata->wpoints > 1)
sprintf (buf,
"You cannot call the Curse of Aeolus for another %s.\n\r",
get_time (ch->pcdata->wpoints, ""));
else
sprintf (buf,
"You cannot call the Curse of Aeolus for another 1 second.\n\r");
send_to_char (buf, ch);
return;
}
if (ch->in_room->sector_type == SECT_INSIDE || !IS_OUTSIDE (ch))
{
send_to_char ("You can only use this power outside.\n\r", ch);
return;
}
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
if (IS_SET (mudconfig->world_affects, WORLD_FOG))
{
send_to_char ("You banish the fog.\n\r", ch);
REMOVE_BIT (mudconfig->world_affects, WORLD_FOG);
ch->pcdata->wpoints = 60;
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))
continue;
if (victim->in_room == NULL)
continue;
if (ch == victim)
continue;
if (victim->in_room->sector_type == SECT_INSIDE)
continue;
if (ch->in_room == victim->in_room)
act ("$n holds up his arms and the fog disperses.", ch, NULL,
victim, TO_VICT);
else
send_to_char ("The fog disperses.\n\r", victim);
}
}
else
{
send_to_char ("You summon a thick blanket of fog.\n\r", ch);
SET_BIT (mudconfig->world_affects, WORLD_FOG);
ch->pcdata->wpoints = 60;
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))
continue;
if (victim->in_room == NULL)
continue;
if (ch == victim)
continue;
if (victim->in_room->sector_type == SECT_INSIDE)
continue;
if (ch->in_room == victim->in_room)
act
("$n holds up his arms and calls forth a thick blanket of fog.",
ch, NULL, victim, TO_VICT);
else
send_to_char ("A thick blanket of fog rises from the ground.\n\r",
victim);
}
}
return;
}
void
do_porcupine (CHAR_DATA * ch, char *argument)
{
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_breed (ch, BREED_METIS) < 5)
{
send_to_char
("You require the level 5 Homid power to use the Gift of the Porcupine.\n\r",
ch);
return;
}
if (!IS_SET (ch->act, PLR_WOLFMAN))
{
send_to_char ("This power can only be activated in Crinos form.\n\r",
ch);
return;
}
if (IS_MORE (ch, MORE_BRISTLES))
{
send_to_char ("Your long quill-like spines retract into your body.\n\r",
ch);
act ("$n's long quill-like spines retract into your body.", ch, NULL,
NULL, TO_ROOM);
REMOVE_BIT (ch->more, MORE_BRISTLES);
return;
}
send_to_char ("Long quill-like spines extend from your body.\n\r", ch);
act ("Long quill-like spines extend from $n's body.", ch, NULL, NULL,
TO_ROOM);
SET_BIT (ch->more, MORE_BRISTLES);
return;
}
void
do_obedience (CHAR_DATA * ch, char *argument)
{
char arg[MIL];
char action[MIL];
char buf[MSL];
CHAR_DATA *victim;
CHAR_DATA *vch_next;
int level;
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_tribe (ch, TRIBE_SHADOW_LORDS) < 5)
{
send_to_char
("You require the level 5 power of the Shadow Lords to use Obedience on people.\n\r",
ch);
return;
}
if (arg[0] == '\0' || argument[0] == '\0')
{
send_to_char ("Make whom to do what?\n\r", ch);
return;
}
strcpy (action, argument);
if (is_in
(action,
"|quit*rem*drop*gift*claim*autoclass*consent*propose*vampi*ma*maj*sid*side*reca*/*ha*hav*"))
{
send_to_char ("I think not.\n\r", ch);
return;
}
level = get_tribe (ch, TRIBE_SHADOW_LORDS) * 5;
if (!str_cmp (arg, "all"))
{
sprintf (buf, "I command everyone to %s", action);
do_say (ch, buf);
waiting (ch, 24);
for (victim = ch->in_room->people; victim != NULL; victim = vch_next)
{
vch_next = victim->next_in_room;
if (victim == ch)
continue;
if (IS_IMMORTAL (victim))
continue;
if (is_safe (ch, victim))
continue;
if (IS_NPC (victim) && victim->level >= level)
{
act ("$s ignores you.", victim, NULL, ch, TO_VICT);
continue;
}
if (!IS_NPC (victim) && victim->pcdata->resist[WILL_DOMINATE] > 0)
{
act ("You ignore $N.", victim, NULL, ch, TO_CHAR);
act ("$n ignores $N.", victim, NULL, ch, TO_NOTVICT);
act ("$n ignores you.", victim, NULL, ch, TO_VICT);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Obedience on you.", ch, NULL,
victim, TO_VICT);
}
continue;
}
if (!IS_NPC (victim) && IS_WILLPOWER (victim, RES_DOMINATE) &&
victim->pcdata->willpower[0] >= 20)
{
victim->pcdata->willpower[0] -= 20;
victim->pcdata->resist[WILL_DOMINATE] = 60;
if (!IS_WILLPOWER (victim, RES_TOGGLE))
REMOVE_BIT (victim->pcdata->resist[0], RES_DOMINATE);
send_to_char
("You burn some willpower to resist Obedience.\n\r", victim);
act ("You ignore $N.", victim, NULL, ch, TO_CHAR);
act ("$n ignores $N.", victim, NULL, ch, TO_NOTVICT);
act ("$n ignores you.", victim, NULL, ch, TO_VICT);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Obedience on you.", ch, NULL,
victim, TO_VICT);
}
continue;
}
act ("You obey $N.", victim, NULL, ch, TO_CHAR);
if (IS_NPC (victim))
SET_BIT (victim->act, ACT_COMMANDED);
interpret (victim, action);
if (IS_NPC (victim))
REMOVE_BIT (victim->act, ACT_COMMANDED);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Obedience on you.", ch, NULL, victim,
TO_VICT);
}
}
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
if (victim == ch)
{
send_to_char ("Now that would be just plain stupid.\n\r", ch);
return;
}
if (IS_IMMORTAL (victim))
{
send_to_char ("I think not...\n\r", ch);
return;
}
if (is_safe (ch, victim))
return;
if (IS_NPC (victim))
sprintf (buf, "I command %s to %s", victim->short_descr, action);
else if (!IS_NPC (victim) && IS_AFFECTED (victim, AFF_POLYMORPH))
sprintf (buf, "I command %s to %s", victim->morph, action);
else
sprintf (buf, "I command %s to %s", victim->name, action);
do_say (ch, buf);
waiting (ch, 24);
if (IS_NPC (victim) && victim->level >= level)
{
act ("You ignores $N.", victim, NULL, ch, TO_CHAR);
act ("$n ignores $N.", victim, NULL, ch, TO_NOTVICT);
act ("$n ignores you.", victim, NULL, ch, TO_VICT);
return;
}
if (!IS_NPC (victim) && victim->pcdata->resist[WILL_DOMINATE] > 0)
{
act ("You ignores $N.", victim, NULL, ch, TO_CHAR);
act ("$n ignores $N.", victim, NULL, ch, TO_NOTVICT);
act ("$n ignores you.", victim, NULL, ch, TO_VICT);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Obedience on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
if (!IS_NPC (victim) && IS_WILLPOWER (victim, RES_DOMINATE) &&
victim->pcdata->willpower[0] >= 10)
{
victim->pcdata->willpower[0] -= 10;
victim->pcdata->resist[WILL_DOMINATE] = 60;
if (!IS_WILLPOWER (victim, RES_TOGGLE))
REMOVE_BIT (victim->pcdata->resist[0], RES_DOMINATE);
send_to_char ("You burn some willpower to resist Obedience.\n\r",
victim);
act ("You ignores $N.", victim, NULL, ch, TO_CHAR);
act ("$n ignores $N.", victim, NULL, ch, TO_NOTVICT);
act ("$n ignores you.", victim, NULL, ch, TO_VICT);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Obedience on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
act ("You obey $N.", victim, NULL, ch, TO_CHAR);
if (IS_NPC (victim))
SET_BIT (victim->act, ACT_COMMANDED);
interpret (victim, action);
if (IS_NPC (victim))
REMOVE_BIT (victim->act, ACT_COMMANDED);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Obedience on you.", ch, NULL, victim, TO_VICT);
}
return;
}
void
do_paralyzing (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_tribe (ch, TRIBE_SHADOW_LORDS) < 4)
{
send_to_char
("You require the level 4 power of the Shadow Lords to use Paralyzing Stare.\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 ("I think not...\n\r", ch);
return;
}
act ("You stare deeply into $N's eyes.", ch, NULL, victim, TO_CHAR);
act ("$n stares deeply into $N's eyes.", ch, NULL, victim, TO_NOTVICT);
act ("$n stares deeply into your eyes.", ch, NULL, victim, TO_VICT);
waiting (ch, 12);
if (is_safe (ch, victim) || number_range (1, 3) > 1)
{
stc ("You failed.\n\r", ch);
waiting (ch, 4);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Paralyzing Stare on you.", ch, NULL,
victim, TO_VICT);
}
return;
}
act ("You stare back into $N's eyes.", victim, NULL, ch, TO_CHAR);
act ("$n stares back into $N's eyes.", victim, NULL, ch, TO_NOTVICT);
act ("$n stares back into your eyes.", victim, NULL, ch, TO_VICT);
send_to_char ("You paralyze them with your stare!\n\r", ch);
send_to_char ("You are momentarily paralyzed!\n\r", victim);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Paralyzing stare on you.", ch, NULL, victim,
TO_VICT);
}
waiting (victim, 24);
return;
}
void
do_icy (CHAR_DATA * ch, char *argument)
{
char arg[MIL];
char buf[MIL];
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch) && !IS_RAKSHASA (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_tribe (ch, TRIBE_SHADOW_LORDS) < 3 && !IS_RAKSHASA (ch))
{
send_to_char
("You require the level 3 power of the Shadow Lords to use Icy Chill of Despair.\n\r",
ch);
return;
}
if (has_fighttimer (ch))
return;
if (IS_ITEMAFF (ch, ITEMA_PEACE))
{
send_to_char ("You stop using the Icy Chill of Despair.\n\r", ch);
act ("$n no longer seems so scary.", ch, NULL, NULL, TO_ROOM);
REMOVE_BIT (ch->itemaffect, ITEMA_PEACE);
if (IS_NYM (ch, NYM_ICY))
REMOVE_BIT (ch->nymbits, NYM_ICY);
ch->pcdata->majesty = 120;
ch->icytimer = 0;
return;
}
if (ch->pcdata->majesty > 0)
{
if (ch->pcdata->majesty > 1)
sprintf (buf,
"You cannot use the Icy Chill of Despair for another %s.\n\r",
get_time (ch->pcdata->majesty, ""));
else
sprintf (buf,
"You cannot use the Icy Chill of Despair for another 1 second.\n\r");
send_to_char (buf, ch);
return;
}
if (IS_RAKSHASA (ch) && !IS_XX (ch, XX_RAKWEREWOLF))
return;
send_to_char ("Your start using the Icy Chill of Despair.\n\r", ch);
act ("$n suddenly appears really scary.", ch, NULL, NULL, TO_ROOM);
SET_BIT (ch->itemaffect, ITEMA_PEACE);
SET_BIT (ch->nymbits, NYM_ICY);
ch->icytimer = 120;
return;
}
void
do_clap (CHAR_DATA * ch, char *argument)
{
char arg[MIL];
CHAR_DATA *victim;
CHAR_DATA *victim_next;
int damage;
bool no_dam = FALSE;
one_argument (argument, arg);
if (IS_NPC (ch))
no_dam = TRUE;
else
{
if (!IS_WEREWOLF (ch))
no_dam = TRUE;
else if (get_tribe (ch, TRIBE_SHADOW_LORDS) < 2)
no_dam = TRUE;
}
{
send_to_char ("You clap your hands together.\n\r", ch);
act ("$n claps $s hands together.", ch, NULL, NULL, TO_ROOM);
if (no_dam)
return;
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_icy (ch, "");
damage = get_tribe (ch, TRIBE_SHADOW_LORDS) * number_range (5, 10);
for (victim = ch->in_room->people; victim; victim = victim_next)
{
victim_next = victim->next_in_room;
if (victim == ch)
continue;
if (IS_IMMORTAL (victim))
continue;
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Clap of Thunder on you.", ch, NULL, victim,
TO_VICT);
}
continue;
}
act ("The room reverberates with a huge roll of thunder!", victim,
NULL, NULL, TO_ROOM);
send_to_char
("The room reverberates with a huge roll of thunder!\n\r", victim);
send_to_char
("You clutch your head in agony as your eardrums seem to explode!\n\r",
victim);
act ("$n clutches $s head in agony!", victim, NULL, NULL, TO_ROOM);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Clap of Thunder on you.", ch, NULL, victim,
TO_VICT);
}
victim->hit -= damage;
if (IS_NPC (victim) && victim->hit < 1)
{
act ("$n's body falls limply to the ground.", victim, NULL, NULL,
TO_ROOM);
group_gain (ch, victim);
demon_gain (ch, victim);
victim->form = 11;
killperson (ch, victim);
}
else
{
update_pos (victim);
if (number_range (1, 20) <= get_disc (ch, DISC_MELPOMINEE))
{
victim->position = POS_STUNNED;
send_to_char ("You have been knocked on your ass!\n\r", ch);
act ("$n has been knocked on $s ass!", victim, NULL, NULL,
TO_ROOM);
}
else if (IS_NPC (victim))
do_kill (victim, ch->name);
}
}
waiting (ch, 12);
return;
}
return;
}
void
do_fetishdoll (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
OBJ_DATA *obj;
char buf[MIL];
char arg[MIL];
char part1[MIL];
char part2[MIL];
int worn;
one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_tribe (ch, TRIBE_UKTENA) < 5)
{
send_to_char
("You require the level 5 power of the Uktena to create a Fetish Doll.\n\r",
ch);
return;
}
if (arg[0] == '\0')
{
send_to_char ("Who do you wish to make a Fetish Doll of?\n\r", ch);
return;
}
if ((victim = get_char_world (ch, arg)) == NULL)
{
send_to_char ("Nobody by that name is playing.\n\r", ch);
return;
}
if ((obj = get_eq_char (ch, WEAR_WIELD)) == NULL)
{
if ((obj = get_eq_char (ch, WEAR_HOLD)) == NULL)
{
send_to_char ("You are not holding any body parts.\n\r", ch);
return;
}
else
worn = WEAR_HOLD;
}
else
worn = WEAR_WIELD;
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (obj->value[2] == 12)
sprintf (part1, "head %s", victim->name);
else if (obj->value[2] == 13)
sprintf (part1, "heart %s", victim->name);
else if (obj->value[2] == 14)
sprintf (part1, "arm %s", victim->name);
else if (obj->value[2] == 15)
sprintf (part1, "leg %s", victim->name);
else if (obj->value[2] == 30004)
sprintf (part1, "entrails %s", victim->name);
else if (obj->value[2] == 30005)
sprintf (part1, "brain %s", victim->name);
else if (obj->value[2] == 30006)
sprintf (part1, "eye eyeball %s", victim->name);
else if (obj->value[2] == 30012)
sprintf (part1, "face %s", victim->name);
else if (obj->value[2] == 30013)
sprintf (part1, "windpipe %s", victim->name);
else if (obj->value[2] == 30014)
sprintf (part1, "cracked head %s", victim->name);
else if (obj->value[2] == 30025)
sprintf (part1, "ear %s", victim->name);
else if (obj->value[2] == 30026)
sprintf (part1, "nose %s", victim->name);
else if (obj->value[2] == 30027)
sprintf (part1, "tooth %s", victim->name);
else if (obj->value[2] == 30028)
sprintf (part1, "tongue %s", victim->name);
else if (obj->value[2] == 30029)
sprintf (part1, "hand %s", victim->name);
else if (obj->value[2] == 30030)
sprintf (part1, "foot %s", victim->name);
else if (obj->value[2] == 30031)
sprintf (part1, "thumb %s", victim->name);
else if (obj->value[2] == 30032)
sprintf (part1, "index finger %s", victim->name);
else if (obj->value[2] == 30033)
sprintf (part1, "middle finger %s", victim->name);
else if (obj->value[2] == 30034)
sprintf (part1, "ring finger %s", victim->name);
else if (obj->value[2] == 30035)
sprintf (part1, "little finger %s", victim->name);
else if (obj->value[2] == 30036)
sprintf (part1, "toe %s", victim->name);
else
{
sprintf (buf, "%s isn't a part of %s!\n\r", obj->name, victim->name);
send_to_char (buf, ch);
return;
}
sprintf (part2, obj->name);
if (str_cmp (part1, part2))
{
sprintf (buf, "But you are holding %s, not %s!\n\r", obj->short_descr,
victim->name);
send_to_char (buf, ch);
return;
}
act ("$p vanishes from your hand in a puff of smoke.", ch, obj, NULL,
TO_CHAR);
act ("$p vanishes from $n's hand in a puff of smoke.", ch, obj, NULL,
TO_ROOM);
obj_from_char (obj);
extract_obj (obj);
obj = create_object (get_obj_index (OBJ_VNUM_VOODOO_DOLL), 0);
sprintf (buf, "%s voodoo doll", victim->name);
free_string (obj->name);
obj->name = str_dup (buf);
sprintf (buf, "a voodoo doll of %s", victim->name);
free_string (obj->short_descr);
obj->short_descr = str_dup (buf);
sprintf (buf, "A voodoo doll of %s lies here.", victim->name);
free_string (obj->description);
obj->description = str_dup (buf);
obj_to_char (obj, ch);
equip_char (ch, obj, worn);
act ("$p appears in your hand.", ch, obj, NULL, TO_CHAR);
act ("$p appears in $n's hand.", ch, obj, NULL, TO_ROOM);
return;
}
void
do_invisibility (CHAR_DATA * ch, char *argument)
{
int sn;
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_tribe (ch, TRIBE_UKTENA) < 4)
{
send_to_char
("You require the level 4 power of the Uktena to use Invisibility.\n\r",
ch);
return;
}
if (IS_AFFECTED (ch, AFF_INVISIBLE))
{
send_to_char ("But you are already invisible!\n\r", ch);
return;
}
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
if ((sn = skill_lookup ("invis")) < 0)
return;
(*skill_table[sn].spell_fun) (sn, 50, ch, ch);
waiting (ch, 12);
return;
}
void
do_wallgranite (CHAR_DATA * ch, char *argument)
{
OBJ_DATA *obj;
EXIT_DATA *pexit;
ROOM_INDEX_DATA *location;
ROOM_INDEX_DATA *to_room;
char arg[MIL];
char buf[MIL];
int duration = number_range (15, 30);
int direction, rev;
one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
do_huh (ch, "");
return;
}
if (get_auspice (ch, AUSPICE_PHILODOX) < 5)
{
send_to_char
("You require the level 5 power of Philodox create a Wall of Granite.\n\r",
ch);
return;
}
if (arg[0] == '\0')
{
send_to_char ("Which direction do you wish to make the wall?\n\r", ch);
return;
}
if (!str_cmp (arg, "north") || !str_cmp (arg, "n"))
{
direction = DIR_NORTH;
rev = DIR_SOUTH;
}
else if (!str_cmp (arg, "south") || !str_cmp (arg, "s"))
{
direction = DIR_SOUTH;
rev = DIR_NORTH;
}
else if (!str_cmp (arg, "east") || !str_cmp (arg, "e"))
{
direction = DIR_EAST;
rev = DIR_WEST;
}
else if (!str_cmp (arg, "west") || !str_cmp (arg, "w"))
{
direction = DIR_WEST;
rev = DIR_EAST;
}
else if (!str_cmp (arg, "up") || !str_cmp (arg, "u"))
{
direction = DIR_UP;
rev = DIR_DOWN;
}
else if (!str_cmp (arg, "down") || !str_cmp (arg, "d"))
{
direction = DIR_DOWN;
rev = DIR_UP;
}
else
{
send_to_char
("Select direction: North, South, East, West, Up or Down.\n\r", ch);
return;
}
switch (direction)
{
default:
strcpy (arg, "north");
break;
case DIR_NORTH:
strcpy (arg, "north");
break;
case DIR_SOUTH:
strcpy (arg, "south");
break;
case DIR_EAST:
strcpy (arg, "east");
break;
case DIR_WEST:
strcpy (arg, "west");
break;
case DIR_UP:
strcpy (arg, "up");
break;
case DIR_DOWN:
strcpy (arg, "down");
break;
}
if ((pexit = ch->in_room->exit[direction]) == NULL)
{
send_to_char ("Nothing happens.\n\r", ch);
return;
}
if ((location = ch->in_room) == NULL)
{
send_to_char ("Nothing happens.\n\r", ch);
return;
}
if ((to_room = pexit->to_room) == NULL)
{
send_to_char ("Nothing happens.\n\r", ch);
return;
}
if (IS_SET (pexit->exit_info, EX_WALL_WATER) ||
IS_SET (pexit->exit_info, EX_WALL_GRANITE) ||
IS_SET (pexit->exit_info, EX_WALL_FLAME))
{
send_to_char ("There is already a wall blocking that exit.\n\r", ch);
return;
}
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
obj = create_object (get_obj_index (OBJ_VNUM_PORTAL), 0);
obj->item_type = ITEM_WALL;
obj->value[0] = direction;
obj->timer = duration;
free_string (obj->name);
obj->name = str_dup ("wall stone granite");
free_string (obj->short_descr);
obj->short_descr = str_dup ("a wall of granite");
sprintf (buf, "A wall of solid granite blocks your exit %s.", arg);
free_string (obj->description);
obj->description = str_dup (buf);
obj_to_room (obj, ch->in_room);
SET_BIT (pexit->exit_info, EX_WALL_GRANITE);
if (direction == DIR_UP)
sprintf (buf, "Stone erupts from the ground and forms a wall above you.");
else if (direction == DIR_DOWN)
sprintf (buf, "Stone erupts from the ground and forms a wall below you.");
else
sprintf (buf, "Stone erupts from the ground and forms a wall to the %s.",
arg);
act (buf, ch, NULL, NULL, TO_CHAR);
act (buf, ch, NULL, NULL, TO_ROOM);
waiting (ch, 12);
if (location == to_room)
return;
char_from_room (ch);
char_to_room (ch, to_room);
if ((pexit = ch->in_room->exit[rev]) == NULL)
return;
if (IS_SET (pexit->exit_info, EX_WALL_WATER) ||
IS_SET (pexit->exit_info, EX_WALL_GRANITE) ||
IS_SET (pexit->exit_info, EX_WALL_FLAME))
return;
switch (rev)
{
default:
strcpy (arg, "north");
break;
case DIR_NORTH:
strcpy (arg, "north");
break;
case DIR_SOUTH:
strcpy (arg, "south");
break;
case DIR_EAST:
strcpy (arg, "east");
break;
case DIR_WEST:
strcpy (arg, "west");
break;
case DIR_UP:
strcpy (arg, "up");
break;
case DIR_DOWN:
strcpy (arg, "down");
break;
}
obj = create_object (get_obj_index (OBJ_VNUM_PORTAL), 0);
obj->item_type = ITEM_WALL;
obj->value[0] = rev;
obj->timer = duration;
free_string (obj->name);
obj->name = str_dup ("wall stone granite");
free_string (obj->short_descr);
obj->short_descr = str_dup ("a wall of granite");
sprintf (buf, "A wall of solid granite blocks your exit %s.", arg);
free_string (obj->description);
obj->description = str_dup (buf);
obj_to_room (obj, ch->in_room);
SET_BIT (pexit->exit_info, EX_WALL_GRANITE);
if (rev == DIR_UP)
sprintf (buf, "Stone erupts from the ground and forms a wall above you.");
else if (rev == DIR_DOWN)
sprintf (buf, "Stone erupts from the ground and forms a wall below you.");
else
sprintf (buf, "Stone erupts from the ground and forms a wall to the %s.",
arg);
act (buf, ch, NULL, NULL, TO_ROOM);
char_from_room (ch);
char_to_room (ch, location);
return;
}
void
do_camouflage (CHAR_DATA * ch, char *argument)
{
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_tribe (ch, TRIBE_WENDIGOS) < 1)
{
send_to_char
("You require the level 1 power of the Wendigos to use Camouflage.\n\r",
ch);
return;
}
if (has_fighttimer (ch))
return;
if (IS_XXX (ch, XXX_CAMOUFLAGE))
{
send_to_char ("You are already camouflaging yourself.\n\r", ch);
return;
}
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
if (!IS_AFFECTED (ch, AFF_HIDE))
{
act ("$n seems to blend into the shadows.", ch, NULL, NULL, TO_ROOM);
send_to_char ("You Camouflage yourself.\n\r", ch);
SET_BIT (ch->xxxbits, XXX_CAMOUFLAGE);
}
waiting (ch, 12);
return;
}
void
do_reshape (CHAR_DATA * ch, char *argument)
{
OBJ_DATA *obj;
char arg1[MIL];
char arg2[MIL];
char buf[MSL];
char endchar[15];
smash_tilde (argument);
argument = one_argument (argument, arg1);
argument = one_argument (argument, arg2);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_breed (ch, BREED_HOMID) < 3)
{
send_to_char
("You require the level 3 Homid power to use Reshape Object.\n\r",
ch);
return;
}
if (arg1[0] == '\0' || arg2[0] == '\0' || argument[0] == '\0')
{
send_to_char
("Syntax: Reshape <object> rename <short description>\n\r", ch);
send_to_char ("Syntax: Reshape <object> keyword <extra keyword/s>\n\r",
ch);
send_to_char ("Syntax: Reshape <object> flags <glow/hum>\n\r", ch);
return;
}
if ((obj = get_obj_carry (ch, arg1)) == NULL)
{
send_to_char ("You are not carrying that object.\n\r", ch);
return;
}
if (obj->item_type == ITEM_QUEST || obj->item_type == ITEM_AMMO
|| obj->item_type == ITEM_EXP || obj->item_type == ITEM_EGG || obj->item_type == ITEM_PIECE
|| obj->item_type == ITEM_VOODOO || obj->item_type == ITEM_CRYSTAL
|| obj->item_type == ITEM_MONEY || obj->item_type == ITEM_TREASURE
|| obj->item_type == ITEM_TOOL || obj->item_type == ITEM_SYMBOL
|| obj->item_type == ITEM_PAGE || IS_SET (obj->quest, QUEST_ARTIFACT))
{
send_to_char ("You cannot quest-change that item.\n\r", ch);
return;
}
if (!IS_IMMORTAL (ch)
&& (obj->questowner == NULL || str_cmp (ch->name, obj->questowner)))
{
send_to_char ("You can only change an item you own.\n\r", ch);
return;
}
if (!str_cmp (arg2, "rename"))
{
if (IS_SET (obj->quest, QUEST_RELIC))
{
send_to_char ("Not on a relic.\n\r", ch);
return;
}
if (strlen (argument) < 5)
{
send_to_char ("Name should be at least 5 characters long.\n\r", ch);
return;
}
strcpy (argument, capitalize (argument));
argument[0] = LOWER (argument[0]);
endchar[0] = (argument[strlen (argument) - 1]);
endchar[1] = '\0';
if (!str_cmp (endchar, "."))
argument[strlen (argument) - 1] = '\0';
free_string (obj->name);
obj->name = str_dup (argument);
free_string (obj->short_descr);
obj->short_descr = str_dup (argument);
if (is_in (argument, "|pair of*"))
sprintf (buf, "%s are lying here.", argument);
else
sprintf (buf, "%s is lying here.", argument);
buf[0] = UPPER (buf[0]);
free_string (obj->description);
obj->description = str_dup (buf);
send_to_char ("Ok.\n\r", ch);
if (obj->questmaker != NULL)
free_string (obj->questmaker);
obj->questmaker = str_dup (ch->name);
return;
}
if (!str_cmp (arg2, "keyword") || !str_cmp (arg2, "keywords"))
{
if (IS_SET (obj->quest, QUEST_RELIC))
{
send_to_char ("Not on a relic.\n\r", ch);
return;
}
if (strlen (argument) < 3)
{
send_to_char ("Keywords should be at least 3 characters long.\n\r",
ch);
return;
}
strcpy (argument, capitalize (argument));
argument[0] = LOWER (argument[0]);
endchar[0] = (argument[strlen (argument) - 1]);
endchar[1] = '\0';
if (!str_cmp (endchar, "."))
argument[strlen (argument) - 1] = '\0';
strcpy (buf, obj->name);
if (strlen (buf) > 80)
{
send_to_char
("You cannot fit any more keywords on this object.\n\r", ch);
return;
}
strcat (buf, " ");
strcat (buf, argument);
free_string (obj->name);
obj->name = str_dup (buf);
send_to_char ("Ok.\n\r", ch);
if (obj->questmaker != NULL)
free_string (obj->questmaker);
obj->questmaker = str_dup (ch->name);
return;
}
if (!str_cmp (arg2, "flags"))
{
if (!str_cmp (argument, "glow"))
{
if (IS_SET (obj->extra_flags, ITEM_GLOW))
REMOVE_BIT (obj->extra_flags, ITEM_GLOW);
else
SET_BIT (obj->extra_flags, ITEM_GLOW);
}
else if (!str_cmp (argument, "hum"))
{
if (IS_SET (obj->extra_flags, ITEM_HUM))
REMOVE_BIT (obj->extra_flags, ITEM_HUM);
else
SET_BIT (obj->extra_flags, ITEM_HUM);
}
else
{
send_to_char ("Syntax: Reshape <object> flags <glow/hum>\n\r",
ch);
return;
}
send_to_char ("Ok.\n\r", ch);
if (obj->questmaker != NULL)
free_string (obj->questmaker);
obj->questmaker = str_dup (ch->name);
return;
}
send_to_char ("Syntax: Reshape <object> rename <short description>\n\r",
ch);
send_to_char ("Syntax: Reshape <object> keyword <extra keyword/s>\n\r", ch);
send_to_char ("Syntax: Reshape <object> flags <glow/hum>\n\r", ch);
return;
}
void
do_teachgift (CHAR_DATA * ch, char *argument)
{
char buf[MIL];
char arg1[MIL];
char arg2[MIL];
char disc[25];
CHAR_DATA *victim;
int improve, sn, col, gtype;
smash_tilde (argument);
argument = one_argument (argument, arg1);
strcpy (arg2, argument);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (arg1[0] == '\0' || arg2[0] == '\0')
{
send_to_char ("Syntax: teach <person> <gift>\n\r", ch);
send_to_char
("The following list contains your gifts and the level you can teach to.\n\r",
ch);
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
col = 0;
for (sn = 0; sn <= BREED_MAX; sn++)
{
if (ch->pcdata->breed[sn] == 0)
continue;
switch (sn)
{
default:
strcpy (disc, "None");
break;
case BREED_HOMID:
strcpy (disc, "Homid");
break;
case BREED_LUPUS:
strcpy (disc, "Lupus");
break;
case BREED_METIS:
strcpy (disc, "Metis");
break;
}
}
for (sn = 0; sn <= AUSPICE_MAX; sn++)
{
if (ch->pcdata->auspice[sn] == 0)
continue;
switch (sn)
{
default:
strcpy (disc, "None");
break;
case AUSPICE_RAGABASH:
strcpy (disc, "Ragabash");
break;
case AUSPICE_THEURGE:
strcpy (disc, "Theurge");
break;
case AUSPICE_PHILODOX:
strcpy (disc, "Philodox");
break;
case AUSPICE_GALLIARD:
strcpy (disc, "Galliard");
break;
case AUSPICE_AHROUN:
strcpy (disc, "Ahroun");
break;
}
}
for (sn = 0; sn <= TRIBE_MAX; sn++)
{
if (ch->pcdata->tribes[sn] == 0)
continue;
switch (sn)
{
default:
strcpy (disc, "None");
break;
case TRIBE_BLACK_FURIES:
strcpy (disc, "Black Furies");
break;
case TRIBE_BONE_GNAWERS:
strcpy (disc, "Bone Gnawers");
break;
case TRIBE_CHILDREN_OF_GAIA:
strcpy (disc, "Children of Gaia");
break;
case TRIBE_FIANNA:
strcpy (disc, "Fianna");
break;
case TRIBE_GET_OF_FENRIS:
strcpy (disc, "Get of Fenris");
break;
case TRIBE_GLASS_WALKERS:
strcpy (disc, "Glass Walkers");
break;
case TRIBE_RED_TALONS:
strcpy (disc, "Red Talons");
break;
case TRIBE_SHADOW_LORDS:
strcpy (disc, "Shadow Lords");
break;
case TRIBE_SILENT_STRIDERS:
strcpy (disc, "Silent Striders");
break;
case TRIBE_SILVER_FANGS:
strcpy (disc, "Silver Fangs");
break;
case TRIBE_STARGAZERS:
strcpy (disc, "Stargazers");
break;
case TRIBE_UKTENA:
strcpy (disc, "Uktena");
break;
case TRIBE_WENDIGOS:
strcpy (disc, "Wendigos");
break;
}
}
if (col % 3 != 0)
send_to_char ("\n\r", ch);
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
return;
}
if ((victim = get_char_room (ch, arg1)) == NULL)
{
send_to_char ("They aren't here.\n\r", ch);
return;
}
if (ch == victim)
{
send_to_char ("You cannot teach yourself!\n\r", ch);
return;
}
if (IS_NPC (victim))
{
send_to_char ("Not on NPC's.\n\r", ch);
return;
}
if (!str_cmp (arg2, "homid"))
{
improve = BREED_HOMID;
gtype = 0;
}
else if (!str_cmp (arg2, "lupus"))
{
improve = BREED_LUPUS;
gtype = 0;
}
else if (!str_cmp (arg2, "metis"))
{
improve = BREED_METIS;
gtype = 0;
}
else if (!str_cmp (arg2, "ragabash"))
{
improve = AUSPICE_RAGABASH;
gtype = 1;
}
else if (!str_cmp (arg2, "theurge"))
{
improve = AUSPICE_THEURGE;
gtype = 1;
}
else if (!str_cmp (arg2, "philodox"))
{
improve = AUSPICE_PHILODOX;
gtype = 1;
}
else if (!str_cmp (arg2, "galliard"))
{
improve = AUSPICE_GALLIARD;
gtype = 1;
}
else if (!str_cmp (arg2, "ahroun"))
{
improve = AUSPICE_AHROUN;
gtype = 1;
}
else if (!str_cmp (arg2, "black furies"))
{
improve = TRIBE_BLACK_FURIES;
gtype = 2;
}
else if (!str_cmp (arg2, "bone gnawers"))
{
improve = TRIBE_BONE_GNAWERS;
gtype = 2;
}
else if (!str_cmp (arg2, "children of gaia"))
{
improve = TRIBE_CHILDREN_OF_GAIA;
gtype = 2;
}
else if (!str_cmp (arg2, "fianna"))
{
improve = TRIBE_FIANNA;
gtype = 2;
}
else if (!str_cmp (arg2, "get of fenris"))
{
improve = TRIBE_GET_OF_FENRIS;
gtype = 2;
}
else if (!str_cmp (arg2, "get of fenris"))
{
improve = TRIBE_GET_OF_FENRIS;
gtype = 2;
}
else if (!str_cmp (arg2, "glass walkers"))
{
improve = TRIBE_GLASS_WALKERS;
gtype = 2;
}
else if (!str_cmp (arg2, "red talons"))
{
improve = TRIBE_RED_TALONS;
gtype = 2;
}
else if (!str_cmp (arg2, "shadow lords"))
{
improve = TRIBE_SHADOW_LORDS;
gtype = 2;
}
else if (!str_cmp (arg2, "silent striders"))
{
improve = TRIBE_SILENT_STRIDERS;
gtype = 2;
}
else if (!str_cmp (arg2, "silver fangs"))
{
improve = TRIBE_SILVER_FANGS;
gtype = 2;
}
else if (!str_cmp (arg2, "stargazers"))
{
improve = TRIBE_STARGAZERS;
gtype = 2;
}
else if (!str_cmp (arg2, "uktena"))
{
improve = TRIBE_UKTENA;
gtype = 2;
}
else if (!str_cmp (arg2, "wendigos"))
{
improve = TRIBE_WENDIGOS;
gtype = 2;
}
else
{
send_to_char ("You know of no such gift.\n\r", ch);
return;
}
switch (gtype)
{
default:
if (ch->pcdata->breed[improve] == 0)
{
send_to_char ("You know of no such breed power.\n\r", ch);
return;
}
if (ch->pcdata->breed[improve] < 3)
{
send_to_char
("You require level 3 in a gift before you can teach it.\n\r",
ch);
return;
}
break;
case 1:
if (ch->pcdata->auspice[improve] == 0)
{
send_to_char ("You know of no such auspice power.\n\r", ch);
return;
}
if (ch->pcdata->auspice[improve] < 3)
{
send_to_char
("You require level 3 in a gift before you can teach it.\n\r",
ch);
return;
}
break;
case 2:
if (ch->pcdata->tribes[improve] == 0)
{
send_to_char ("You know of no such tribe power.\n\r", ch);
return;
}
if (ch->pcdata->tribes[improve] < 3)
{
send_to_char
("You require level 3 in a gift before you can teach it.\n\r",
ch);
return;
}
break;
}
if (!IS_WEREWOLF (victim))
{
send_to_char ("They are unable to learn gifts.\n\r", ch);
return;
}
if (!IS_IMMUNE (victim, IMM_VAMPIRE))
{
send_to_char ("They refuse to learn any gifts.\n\r", ch);
return;
}
switch (gtype)
{
default:
if (victim->pcdata->breed[improve] != 0)
{
send_to_char ("They already know that gift.\n\r", ch);
return;
}
victim->pcdata->breed[improve] = -1;
break;
case 1:
if (victim->pcdata->auspice[improve] != 0)
{
send_to_char ("They already know that gift.\n\r", ch);
return;
}
victim->pcdata->auspice[improve] = -1;
break;
case 2:
if (victim->pcdata->tribes[improve] != 0)
{
send_to_char ("They already know that gift.\n\r", ch);
return;
}
victim->pcdata->tribes[improve] = -1;
break;
}
sprintf (buf, "You teach $N how to use the %s gift.", capitalize (arg2));
act (buf, ch, NULL, victim, TO_CHAR);
sprintf (buf, "$n teaches you how to use the %s gift.", capitalize (arg2));
act (buf, ch, NULL, victim, TO_VICT);
return;
}
void
do_halosun (CHAR_DATA * ch, char *argument)
{
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch) && !IS_ANGELW (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (IS_ANGELW (ch))
{
if (!IS_SET (ch->apowers, APOWER_HALOBLESS))
{
stc ("You havent enwarped the Halo.\n\r", ch);
return;
}
}
else
{
if (get_tribe (ch, TRIBE_CHILDREN_OF_GAIA) < 5)
{
send_to_char
("You require the level 5 Children of Gaia power to use the Halo of the Sun.\n\r",
ch);
return;
}
}
if (IS_ITEMAFF (ch, ITEMA_SUNSHIELD))
{
send_to_char ("Your Halo of the Sun gradually fades away.\n\r", ch);
act ("$n's Halo of the Sun gradually fades away.", ch, NULL, NULL,
TO_ROOM);
REMOVE_BIT (ch->itemaffect, ITEMA_SUNSHIELD);
return;
}
send_to_char ("You are surrounded by a halo of sunlight!\n\r", ch);
act ("$n is surrounded by a halo of sunlight!", ch, NULL, NULL, TO_ROOM);
SET_BIT (ch->itemaffect, ITEMA_SUNSHIELD);
return;
}
void
do_mother (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
char buf[MSL];
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_auspice (ch, AUSPICE_THEURGE) < 1)
{
send_to_char
("You require the level 1 Theurge power to use Mother's Touch.\n\r",
ch);
return;
}
if (has_fighttimer (ch))
return;
if (ch->pcdata->obeah > 0)
{
if (ch->pcdata->obeah > 1)
sprintf (buf,
"You cannot call upon your healing powers for another %s.\n\r",
get_time (ch->pcdata->obeah, ""));
else
sprintf (buf,
"You cannot call upon your healing powers for another 1 second.\n\r");
send_to_char (buf, ch);
return;
}
if (arg[0] == '\0')
{
send_to_char ("Who do you want to heal with Mother's Touch?\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They are not here.\n\r", ch);
return;
}
if (IS_EVIL (victim))
{
send_to_char
("They are too evil to benefit from your healing powers.\n\r", ch);
return;
}
if (victim->loc_hp[6] > 0)
{
int sn = skill_lookup ("clot");
act ("You lay your hands upon $N.", ch, NULL, victim, TO_CHAR);
act ("$n's lays $s hands upon $N.", ch, NULL, victim, TO_NOTVICT);
act ("$n's lays $s hands upon you.", ch, NULL, victim, TO_VICT);
(*skill_table[sn].spell_fun) (sn, ch->level, ch, victim);
}
if ((victim->loc_hp[0] + victim->loc_hp[1] + victim->loc_hp[2] +
victim->loc_hp[3] + victim->loc_hp[4] + victim->loc_hp[5]) != 0)
{
act ("You lay your hands upon $N.", ch, NULL, victim, TO_CHAR);
act ("$n's lays $s hands upon $N.", ch, NULL, victim, TO_NOTVICT);
act ("$n's lays $s hands upon you.", ch, NULL, victim, TO_VICT);
reg_mend (victim);
}
if (victim->hit < victim->max_hit)
{
victim->hit += get_auspice (ch, AUSPICE_THEURGE) * 1000;
victim->agg -= get_auspice (ch, AUSPICE_THEURGE) * 2;
if (victim->agg < 0)
victim->agg = 0;
act ("You lay your hands upon $N.", ch, NULL, victim, TO_CHAR);
act ("$n's lays $s hands upon $N.", ch, NULL, victim, TO_NOTVICT);
act ("$n's lays $s hands upon you.", ch, NULL, victim, TO_VICT);
ch->pcdata->obeah = 10;
update_pos (victim);
if (victim->hit >= victim->max_hit)
{
victim->hit = victim->max_hit;
send_to_char ("You have been completely healed!\n\r", victim);
act ("$n's wounds have been completely healed!", victim, NULL, NULL,
TO_ROOM);
}
else
{
send_to_char ("Your wounds begin to heal!\n\r", victim);
act ("$n's wounds begin to heal!", victim, NULL, NULL, TO_ROOM);
}
}
else
{
send_to_char ("They don't require any healing.\n\r", ch);
return;
}
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Mother's Touch on you.", ch, NULL, victim, TO_VICT);
}
return;
}
void
do_bodywrack (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MIL];
int dam = 0;
char buf[MSL];
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
if (get_tribe (ch, TRIBE_BLACK_FURIES) < 5)
{
send_to_char
("You require the level 5 Black Furies power to use Body Wrack.\n\r",
ch);
return;
}
if (IS_ITEMAFF (ch, ITEMA_PEACE))
do_majesty (ch, "");
if (arg[0] == '\0')
{
send_to_char ("Who do you wish to use Body Wrack on?\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
send_to_char ("They are not here.\n\r", ch);
return;
}
if (is_safe (ch, victim))
{
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Body Wrack on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
dam = number_range (500, 1000);
dam *= get_tribe (ch, TRIBE_BLACK_FURIES);
act ("A look of concentration crosses $n's face.", ch, NULL, NULL, TO_ROOM);
send_to_char
("You scream in agony as your body seems to be torn apart!\n\r", victim);
act ("$n doubles over and screams in agony!", victim, NULL, NULL, TO_ROOM);
sprintf (buf, "$n wracks your body for #7[#R%d#7]#n damage.", dam);
act (buf, ch, NULL, victim, TO_VICT);
sprintf (buf, "You wrack $N body for #7[#R%d#7]#n damage.", dam);
act (buf, ch, NULL, victim, TO_CHAR);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Body Wrack on you.", ch, NULL, victim, TO_VICT);
}
hurt_person (ch, victim, dam, 0);
waiting (ch, 10);
return;
}
void
do_wwpowers (CHAR_DATA * ch, char *argument)
{
char buf[MSL];
int sn;
bool any_powers = FALSE;
bool any_commands = FALSE;
if (IS_NPC (ch))
return;
if (!IS_WEREWOLF (ch))
{
send_to_char ("Huh?\n\r", ch);
return;
}
for (sn = 0; sn <= BREED_MAX; sn++)
{
if (get_breed (ch, sn) > 0)
any_powers = TRUE;
}
if (!any_commands)
for (sn = 0; sn <= AUSPICE_MAX; sn++)
{
if (get_auspice (ch, sn) > 0)
any_powers = TRUE;
}
if (!any_commands)
for (sn = 0; sn <= TRIBE_MAX; sn++)
{
if (get_tribe (ch, sn) > 0)
any_powers = TRUE;
}
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
send_to_char (" -= Gift Commands =-\n\r", ch);
send_to_char
("--------------------------------------------------------------------------------\n\r",
ch);
if (get_breed (ch, BREED_HOMID) > 0)
{
strcpy (buf, "Homid: 1. Persuasion");
if (get_breed (ch, BREED_HOMID) > 1)
strcat (buf, ", 2. Staredown");
if (get_breed (ch, BREED_HOMID) > 2)
strcat (buf, ", 3. Reshape");
if (get_breed (ch, BREED_HOMID) > 3)
strcat (buf, ", 4. Disquiet");
if (get_breed (ch, BREED_HOMID) > 4)
strcat (buf, ", 5. Mask");
strcat (buf, ".\n\r");
send_to_char (buf, ch);
}
if (get_breed (ch, BREED_LUPUS) > 0)
{
strcpy (buf, "Lupus: 1. Heighten");
if (get_breed (ch, BREED_LUPUS) > 1)
strcat (buf, ", 2. Beckon");
if (get_breed (ch, BREED_LUPUS) > 2)
strcat (buf, ", 3. Master");
if (get_breed (ch, BREED_LUPUS) > 3)
strcat (buf, ", 4. Masssummons");
if (get_breed (ch, BREED_LUPUS) > 4)
strcat (buf, ", 5. Fleshbond");
strcat (buf, ".\n\r");
send_to_char (buf, ch);
}
if (get_breed (ch, BREED_METIS) > 0)
{
strcpy (buf, "Metis: 1. Nightsight");
if (get_breed (ch, BREED_METIS) > 1)
strcat (buf, ", 2. Burrow");
if (get_breed (ch, BREED_METIS) > 1)
strcat (buf, ", 3. Damcap Bonus");
if (get_breed (ch, BREED_METIS) > 3)
strcat (buf, ", 4. Witherlimb");
if (get_breed (ch, BREED_METIS) > 4)
strcat (buf, ", 5. Porcupine");
strcat (buf, ".\n\r");
send_to_char (buf, ch);
}
if (get_auspice (ch, AUSPICE_RAGABASH) > 0)
{
strcpy (buf, "Ragabash: 1. Leave no tracks");
if (get_auspice (ch, AUSPICE_RAGABASH) > 1)
strcat (buf, ", 2. Vanish");
if (get_auspice (ch, AUSPICE_RAGABASH) > 1)
strcat (buf, ", 3. Silence");
if (get_auspice (ch, AUSPICE_RAGABASH) > 3)
strcat (buf, ", 4. Tail");
if (get_auspice (ch, AUSPICE_RAGABASH) > 4)
strcat (buf, ", 5. Moonbridge");
strcat (buf, ".\n\r");
send_to_char (buf, ch);
}
if (get_auspice (ch, AUSPICE_THEURGE) > 0)
{
strcpy (buf, "Theurge: 1. Mother");
if (get_auspice (ch, AUSPICE_THEURGE) > 1)
strcat (buf, ", 2. Scent");
if (get_auspice (ch, AUSPICE_THEURGE) > 3)
strcat (buf, ", 3. Control");
if (get_auspice (ch, AUSPICE_THEURGE) > 3)
strcat (buf, ", 4. SpiritGuard");
if (get_auspice (ch, AUSPICE_THEURGE) > 4)
strcat (buf, ", 5. ReadAura on People");
strcat (buf, ".\n\r");
send_to_char (buf, ch);
}
if (get_auspice (ch, AUSPICE_PHILODOX) > 0)
{
strcpy (buf, "Philodox: 1. Pain Immune");
if (get_auspice (ch, AUSPICE_PHILODOX) > 1)
strcat (buf, ", 2. Class Sight");
if (get_auspice (ch, AUSPICE_PHILODOX) > 2)
strcat (buf, ", 3. Scry");
if (get_auspice (ch, AUSPICE_PHILODOX) > 4)
strcat (buf, ", 5. Wallgranite");
strcat (buf, ".\n\r");
send_to_char (buf, ch);
}
if (get_auspice (ch, AUSPICE_GALLIARD) > 0)
{
strcpy (buf, "Galliard: 1. Wyld");
if (get_auspice (ch, AUSPICE_GALLIARD) > 1)
strcat (buf, ", 2. Klaive");
if (get_auspice (ch, AUSPICE_GALLIARD) > 2)
strcat (buf, ", 3. Beastwithin");
if (get_auspice (ch, AUSPICE_GALLIARD) > 4)
strcat (buf, ", 5. Hearttwister");
strcat (buf, ".\n\r");
send_to_char (buf, ch);
}
if (get_auspice (ch, AUSPICE_AHROUN) > 0)
{
strcpy (buf, "Ahroun:");
if (get_auspice (ch, AUSPICE_AHROUN) > 3)
strcat (buf, " 4. Truefear");
if (get_auspice (ch, AUSPICE_AHROUN) > 4)
strcat (buf, ", 5. Hand");
strcat (buf, ".\n\r");
send_to_char (buf, ch);
}
if (get_tribe (ch, TRIBE_BLACK_FURIES) > 0)
{
strcpy (buf, "Black Furies: 1. Aeolus");
if (get_tribe (ch, TRIBE_BLACK_FURIES) > 3)
strcat (buf, ", 4. HagsWrinkles");
if (get_tribe (ch, TRIBE_BLACK_FURIES) > 4)
strcat (buf, ", 5. Bodywrack");
if (get_tribe (ch, TRIBE_BLACK_FURIES) > 5)
strcat (buf, ", 6. Unholy Rage");
strcat (buf, ".\n\r");
send_to_char (buf, ch);
}
if (get_tribe (ch, TRIBE_BONE_GNAWERS) > 0)
{
strcpy (buf, "Bone Gnawers: 1. Pigeon");
strcat (buf, ".\n\r");
send_to_char (buf, ch);
}
if (get_tribe (ch, TRIBE_CHILDREN_OF_GAIA) > 0)
{
strcpy (buf, "Children of Gaia:");
if (get_tribe (ch, TRIBE_CHILDREN_OF_GAIA) > 1)
strcat (buf, " 2. Calm");
if (get_tribe (ch, TRIBE_CHILDREN_OF_GAIA) > 2)
strcat (buf, ",Showing the first 100 KB of 161.6 KB. Download the archive for the full file.