Hi! I'm new to this forum and had a quick question. I'm trying to add some new flags EG: ACT type mob flags, EXTRA type item flags and some AFFECT type flags.
I've added them to merc.h, an example would be rage
#define AFF_RAGE (a)
Then in tables.c
{ "rage", a, TRUE },
Then in handler.c, under affect_bit_name
if ( vector & AFF_RAGE ) strcat( buf, " rage" );
It might sound stupid, but where else should I put it?
I tried compiling and got an error:
handler.c: In function ‘affect_bit_name’:
handler.c:4101: error: ‘a’ undeclared (first use in this function)
handler.c:4101: error: (Each undeclared identifier is reported only once
Any help would be appreciated!
I've added them to merc.h, an example would be rage
#define AFF_RAGE (a)
Then in tables.c
{ "rage", a, TRUE },
Then in handler.c, under affect_bit_name
if ( vector & AFF_RAGE ) strcat( buf, " rage" );
It might sound stupid, but where else should I put it?
I tried compiling and got an error:
handler.c: In function ‘affect_bit_name’:
handler.c:4101: error: ‘a’ undeclared (first use in this function)
handler.c:4101: error: (Each undeclared identifier is reported only once
Any help would be appreciated!