/*
* Undead Lycan supplementary file.
* Coded for Children of the Night.
* Don't steal our shit.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "merc.h"
void do_caliginouseq(CHAR_DATA *ch, char *argument)
{
OBJ_DATA *obj;
char arg[MAX_INPUT_LENGTH];
if(IS_NPC(ch)) return;
if(!IS_CLASS(ch, CLASS_UNDEAD_LYCAN))
{
stc("Huh?\n\r", ch);
return;
}
argument = one_argument(argument, arg);
if(arg[0] == '\0')
{
stc("Which item of caliginous equipment: claws or plate?\n\r", ch);
return;
}
// Generate a pair of claws - tied to vampire skill
if(!str_cmp(arg, "claws"))
{
if(ch->power[DISC_VAMP_CHIM] < 5)
{
stc("You must attain level 5 in Chimerstry before you can create Caliginous Claws.\n\r", ch);
return;
}
obj = create_object(get_obj_index(33784), 50);
obj->questowner = str_dup(ch->pcdata->switchname);
obj_to_char(obj, ch);
act("A swirl of smoke reveals $p.", ch, obj, NULL, TO_CHAR);
act("A swirl of smoke reveals $p.", ch, obj, NULL, TO_ROOM);
}
// Generate a breastplate - tied to werewolf skill
if(!str_cmp(arg, "plate"))
{
if(ch->power[DISC_WERE_LUNA] < 2)
{
stc("You must attain level 2 in Luna before you can create a Caliginous Plate.\n\r", ch);
return;
}
obj = create_object(get_obj_index(33785), 50);
obj->questowner = str_dup(ch->pcdata->switchname);
obj_to_char(obj, ch);
act("A swirl of smoke reveals $p.", ch, obj, NULL, TO_CHAR);
act("A swirl of smoke reveals $p.", ch, obj, NULL, TO_ROOM);
}
return;
}