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

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  adding color

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

adding color

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Frobozz   (75 posts)  [Biography] bio
Date Tue 16 Nov 2004 04:21 PM (UTC)  quote  ]
Message
Version, stock SMAUG FUSS.

I've been trying to add color into the channels so that just the channel name is in a different color with the output text in another.

In other words Immtalk would come out as say.. Blue and the message text comes out as yellow.

Thoughts?

This is what my code looks like right now:

case CHANNEL_IMMTALK:
case CHANNEL_AVTALK:
sprintf( buf, "<Immortal: $n %c $t", channel == CHANNEL_IMMTALK ? '>' : ':' );
position = ch->position;
ch->position = POS_STANDING;
act( AT_IMMORT, buf, ch, argument, NULL, TO_CHAR );
ch->position = position;
break;
}
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Reply #1 on Tue 16 Nov 2004 09:54 PM (UTC)  quote  ]
Message
Just use the stock prompt symbol colors. Such as &R is red. SmaugFUSS should have that enabled.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Robert Powell   Australia  (349 posts)  [Biography] bio
Date Reply #2 on Wed 17 Nov 2004 06:21 AM (UTC)  quote  ]
Message
in color.c or color.h you can difine the color of many things, if you look in there, there are a couple of tables

char * const pc_displays[MAX_COLORS] = and
const sh_int default_set [MAX_COLORS] = both in color.c

You can change the values there to suit the color that you want, also you would have to reset the colors ingamne to apply the new values, cant remember the command off hand tho color reset all i think it is, if i make no sence im totaly sorry as im realy tired and should be in bed.


EldhaMUD Game Developments
The_Fury: Lead Developer, Head Coder
http://fury.eldhamud2.org
[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.


1,407 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]