Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Channels: e.g. AT_FLAME
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Mixoplix
(8 posts) Bio
|
| Date
| Wed 07 Aug 2002 11:24 PM (UTC) |
| Message
| | 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. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Fri 09 Aug 2002 02:31 AM (UTC) |
| Message
| I would take an existing one and duplicate it, 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
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
10,458 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top