Ok remind me not to open my mouth at this time of the morning. But do you
have act_sub protyed before this macro or after.

----- Original Message ----- 
From: "Dale Kingston" <[EMAIL PROTECTED]>
To: <[email protected]>; "Rait" <[EMAIL PROTECTED]>
Sent: Friday, July 04, 2003 1:54 AM
Subject: Re: Deathcry


> idk about that define part but shouldn't it be something like void
> deathmsg(char *format, CHAR_DATA *ch, char *arg1, char *arg2, int type);??
>
> ----- Original Message ----- 
> From: "Rait" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Friday, July 04, 2003 1:44 AM
> Subject: Deathcry
>
>
> > 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)
> >
> >
> >
> >
> > -- 
> > ROM mailing list
> > [email protected]
> > http://www.rom.org/cgi-bin/mailman/listinfo/rom
> >
>
>
> -- 
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>


Reply via email to