Gammon Forum
Entire forum
SMAUG
SMAUG coding
Channel help
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Metsuro
USA (389 posts) bio
|
Date
| Sun 18 Sep 2005 02:12 AM (UTC) |
Message
| Trying to make newbie channel different from the default, so i was wondering if someone would mind helping me with changing it? |
Everything turns around in the end | top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #1 on Sun 18 Sep 2005 02:29 AM (UTC) |
Message
| You mean of how it is displayed? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
Posted by
| Metsuro
USA (389 posts) bio
|
Date
| Reply #2 on Sun 18 Sep 2005 02:41 AM (UTC) |
Message
| Right, because in 1.6 chat newbie and think are used by the default, so i thought ok maybe just add a seperate case for the channel, and that didn't seem to work. |
Everything turns around in the end | top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #3 on Sun 18 Sep 2005 02:54 AM (UTC) |
Message
| In act_comm.c in the talk_channel function, add a new case, like I have:
switch ( channel )
{
default:
set_char_color( AT_GOSSIP, ch );
ch_printf( ch, "You %s &W'&w%s%s&W'&D\n\r", verb, argument, ANSI_RESET );
sprintf( buf, "$n %ss &W'&w$t%s&W'&D", verb, ANSI_RESET );
break;
case CHANNEL_CHAT:
set_char_color( AT_GOSSIP, ch );
ch_printf( ch, "You %s &w'&c%s%s&w'&D\n\r", verb, argument, ANSI_RESET );
sprintf( buf, "$n %ss &w'&c$t%s&w'&D", verb, ANSI_RESET );
break;
|
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
Posted by
| Metsuro
USA (389 posts) bio
|
Date
| Reply #4 on Sun 18 Sep 2005 02:59 AM (UTC) |
Message
| Now see, I did that and it didn't work |
Everything turns around in the end | top |
|
Posted by
| Metsuro
USA (389 posts) bio
|
Date
| Reply #5 on Sun 18 Sep 2005 03:04 AM (UTC) |
Message
| doh, i see my mistake, thanks. |
Everything turns around in the end | top |
|
Posted by
| Greven
Canada (835 posts) bio
|
Date
| Reply #6 on Sun 18 Sep 2005 06:08 AM (UTC) |
Message
| What was your mistake? If you fix something but don't post the fix, people with this problem in the future will have to post again, and go through it all like you have. If you post the fix, then it can be referenced later. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | top |
|
Posted by
| Metsuro
USA (389 posts) bio
|
Date
| Reply #7 on Sun 18 Sep 2005 02:08 PM (UTC) |
Message
| Oh I was using case CHANNEL_MEWBIECHAT when its labeled i guess as CHANNEL_NEWBIE. |
Everything turns around in the end | 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.
18,588 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
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.