Register forum user name Search FAQ

Gammon Forum

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 ➜ Area Editor ➜ General ➜ (Magical) (Glowing) (Humming) Colors?

(Magical) (Glowing) (Humming) Colors?

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


Posted by Fletch19   (10 posts)  Bio
Date Fri 20 Jun 2003 11:52 AM (UTC)
Message
Is it possible to change the colors of glowing etc. from green to exs. yellow?
Top

Posted by Fletch19   (10 posts)  Bio
Date Reply #1 on Fri 20 Jun 2003 11:55 AM (UTC)
Message
Or can i do it in smaug??
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #2 on Mon 23 Jun 2003 09:17 PM (UTC)
Message
The code in act_info.c seems to do that ...


   /*
     * Output the formatted list.               -Color support by Thoric
     */
    for ( iShow = 0; iShow < nShow; iShow++ )
    {
        switch(pitShow[iShow]) {
        default:
          set_char_color( AT_OBJECT, ch );
          break;
        case ITEM_BLOOD:
          set_char_color( AT_BLOOD, ch );
          break;
        case ITEM_MONEY:
        case ITEM_TREASURE:
          set_char_color( AT_YELLOW, ch );
          break;  
        case ITEM_COOK:     
        case ITEM_FOOD:
          set_char_color( AT_HUNGRY, ch );
          break;
        case ITEM_DRINK_CON:
        case ITEM_FOUNTAIN:
          set_char_color( AT_THIRSTY, ch );
          break;    
        case ITEM_FIRE:
          set_char_color( AT_FIRE, ch );
          break;  
        case ITEM_SCROLL:
        case ITEM_WAND:
        case ITEM_STAFF:
          set_char_color( AT_MAGIC, ch );
          break;
        }



I think you will find the actual colours in system/colors.dat - for example AT_HUNGRY, AT_THIRSTY would be:


1057 hungry~ 3
1058 thirsty~ 12



- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fletch19   (10 posts)  Bio
Date Reply #3 on Sun 13 Jul 2003 04:18 PM (UTC)
Message
Where do i find the act_info.c ?
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #4 on Mon 14 Jul 2003 01:37 AM (UTC)
Message
I meant that act_info.c was part of SMAUG - the colours are not controlled by the area editor. It is one of the source files you use to compile it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #5 on Tue 15 Jul 2003 04:47 AM (UTC)
Message
Act_info.c will be in the src directory if you actually have the source code for your mud instead of the precompiled bindary. If you are using a precompiled version, I'm afraid yer pretty well stuck with the standard colors for weapon flags and whatnot.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #6 on Tue 15 Jul 2003 06:02 AM (UTC)
Message
He could try changing colors.dat - that might work.

- 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.


22,613 views.

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

Go to topic:           Search the forum


[Go to top] top

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