/**************************************************************** * * * * * Highlander.c created on Saturday, 18/10/03 by Eterared * * * * Highlander.c not finished as of yet * * * * * * * ****************************************************************/ #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" #include "player.h" void do_katana( CHAR_DATA *ch, char *argument ) { OBJ_DATA *obj; if (IS_NPC(ch)) return; if (!IS_CLASS(ch, CLASS_HIGHLANDER)) { send_to_char("Huh?\n\r",ch); return; } if ( 250 > ch->practice) { send_to_char("It costs 100 points of primal to create a Katana.\n\r",ch); return; } ch->practice -= 100; obj = create_object(get_obj_index(33176) ,50 ); SET_BIT(obj->quest, QUEST_RELIC); obj->condition = 100; obj->toughness = 100; obj->resistance = 1; obj->value[1] = 65; obj->value[2] = 70; obj->questowner = str_dup(ch->pcdata->switchname); obj_to_char(obj, ch); act("A katana flashes into existance.",ch,NULL,NULL,TO_CHAR); act("A katana suddenly apear in $n's hands.",ch,NULL,NULL,TO_ROOM); return; } void do_embracedeath ( CHAR_DATA *ch, char *argument ) { if (IS_NPC(ch)) return; if (!IS_CLASS(ch, CLASS_HIGHLANDER)) { send_to_char("Huh?\n\r",ch); return; } if (IS_ITEMAFF(ch,ITEMA_DEATHEMBRACE) ) { send_to_char("You stop embracing death.\n\r",ch); act("$n stops embracing death", ch, NULL, NULL, TO_ROOM); REMOVE_BIT(ch->itemaffect, ITEMA_DEATHEMBRACE); return; } send_to_char("Your contempt for life shows through.\n\r", ch); act("$n's contempt for life shows through", ch, NULL, NULL, TO_ROOM); SET_BIT(ch->itemaffect, ITEMA_DEATHEMBRACE); return; }