[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Channels: e.g. AT_FLAME

Channels: e.g. AT_FLAME

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Mixoplix   (8 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] 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
[Go to top] 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.


7,802 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]