I recently went about adding a flame channel for the ones that wish to curse. In Talk_channel I'm getting an error about AT_FLAME being undeclared in act_comm.c. Im a little confused at all these declarations. I have made the appropriate entries in mud.h, act_comm.c, act_info.c and tables.c, what I'm wondering is where do I need to make this declaration? Where do I make all declarations? Is it in .h files? Please any help would be great for this newbie coder.
Channels: e.g. AT_FLAME
Posted by Mixoplix on Wed 07 Aug 2002 11:24 PM — 2 posts, 10,956 views.
I would take an existing one and duplicate it, eg.
You need to add the definitions to mud.h, which is included by most files.
Search it for the constants (eg. CHANNEL_WARTALK) and add a new one appropriate for your needs.
eg.
case CHANNEL_WARTALK:
set_char_color( AT_WARTALK, ch );
ch_printf( ch, "You %s '%s'\n\r", verb, argument );
sprintf( buf, "$n %ss '$t'", verb );
break;
You need to add the definitions to mud.h, which is included by most files.
Search it for the constants (eg. CHANNEL_WARTALK) and add a new one appropriate for your needs.
eg.
#define CHANNEL_WARTALK BV22
#define CHANNEL_RACETALK BV23
#define CHANNEL_WARN BV24
#define CHANNEL_WHISPER BV25
#define CHANNEL_AUTH BV26
#define CHANNEL_TRAFFIC BV27
#define CHANNEL_FLAME BV28