Trying to make newbie channel different from the default, so i was wondering if someone would mind helping me with changing it?
Channel help
Posted by Metsuro on Sun 18 Sep 2005 02:12 AM — 8 posts, 29,601 views.
You mean of how it is displayed?
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.
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;
Now see, I did that and it didn't work
doh, i see my mistake, thanks.
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.
Oh I was using case CHANNEL_MEWBIECHAT when its labeled i guess as CHANNEL_NEWBIE.