I implemented custom deathcry messages, and now got stuck..

when compiling I get:

blahblah
###
###
fight.c: In function `damage':
fight.c:887: warning: implicit declaration of function `act_sub'
###
###
blahblah
rm -f rom
gcc -O -ggdb -o rom obj/act_comm.o obj/act_enter.o obj/act_info.o 
obj/act_move.o obj/act_obj.o obj/act_wiz.o obj/alias.o obj/
obj/fight.o: In function `damage':
/home/raitl/mud/src/fight.c:887: undefined reference to `act_sub'
/home/raitl/mud/src/fight.c:888: undefined reference to `act_sub'
collect2: ld returned 1 exit status
make: *** [rom] Error 1

and this is what I have in fight.c where it gives the error:
        case POS_DEAD:
            if(!IS_NPC(ch))
            {
              if(!ch->pcdata->deathblow)
              {
                switch ( number_bits( 3 ) )
                {
                        default: act("{x{WYou tear the {x{Mheart{x {W out of $N!
{x",ch,NULL,victim,TO_CHAR); break;
                        case  0:  act("{x{WYou smash your weapon through $N's 
skull!{x",ch,NULL,victim,TO_CHAR);  break;
                        case  1:  act("{x{WYou pull $N's spine out through 
their mouth!{x",ch,NULL,victim,TO_CHAR);  break;
                        case  2:  act("{x{WYou land your blow directly on $N's 
spine!{x",ch,NULL,victim,TO_CHAR);  break;
                        case  4:  act("{x{WYou cleave $N in half with one 
mighty swing!{x",ch,NULL,victim,TO_CHAR);  break;
                        case  5:  act("{x{WYou tear $N's windpipe right out of 
their throat!{x",ch,NULL,victim,TO_CHAR); brea
                        case  6: act("{x{WYou disembowel $N with amazing skill!
{x",ch,NULL,victim,TO_CHAR); break;
                }
              }
              else
              {
line 887--->    deathmsg(ch->pcdata->deathblow,ch,NULL,victim,TO_ROOM);
                deathmsg(ch->pcdata->deathblow,ch,NULL,victim,TO_CHAR);
              }
            }


And in merc.h:

#define deathmsg(format,ch,arg1,arg2,type)\
    act_sub((format),(ch),(arg1),(arg2),(type),POS_RESTING)




Reply via email to