ULX

Author Topic: COLORS AND WORDS  (Read 3294 times)

0 Members and 1 Guest are viewing this topic.

Kevin

  • Guest
COLORS AND WORDS
« on: November 26, 2006, 12:41:52 AM »
How do i change what the server says every like 10 mins (eg:  Youre Playing on XXXXXX, please enjoy your stay) how can i change that to a specific color and change it to my wording and how often it shows up. THanks

PS: how do i change the color of the messages that come up with the command "@@@"

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: COLORS AND WORDS
« Reply #1 on: November 26, 2006, 08:21:21 AM »
You can find the advert config in the config directory.

To change the color of that command, you'd have to change the code, which is in util.lua.
Experiencing God's grace one day at a time.

Kevin

  • Guest
Re: COLORS AND WORDS
« Reply #2 on: November 26, 2006, 10:59:26 AM »
Thanks I found them both but what line do i chnage to make them red. ???

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: COLORS AND WORDS
« Reply #3 on: November 26, 2006, 11:40:26 AM »
For the advert
in configs/server.ini:
Code: [Select]
ulx addCsayAdvert "You're playing on %hostname%, enjoy your stay!" 100 255 200 300 10
Put your message in the quotes. The first 3 numbers are the red, green, and blue color values (out of 255). The fourth is the time it waits to repeat (seconds), and the fifth is how long it should stay visible (seconds).

For the @@@.
In ulx/util.lua:
in function ulx.cc_csay (~line 189)
Code: [Select]
ULib.csay( 0, args )
add your additional color arguments to that call.
ex for red it would be
Code: [Select]
ULib.csay( 0, args, 255, 0, 0 )
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Kevin

  • Guest
Re: COLORS AND WORDS
« Reply #4 on: November 26, 2006, 05:16:56 PM »
thanks

Offline hi_tech_guy_18

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: COLORS AND WORDS
« Reply #5 on: September 20, 2008, 12:16:17 AM »
Cant Find ulx/util.lua file ?? Was it Removed and the code placed else were ?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: COLORS AND WORDS
« Reply #6 on: September 20, 2008, 12:43:35 AM »
Nice two year bump..
Experiencing God's grace one day at a time.

Offline hi_tech_guy_18

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: COLORS AND WORDS
« Reply #7 on: September 20, 2008, 08:46:13 AM »
Sorry for the 2 year bump but instead of starting a whole new recent thread on changing the ULX Chat text colours
I ran a forum search for it and recycled this old thread...

I did find where the file was in the newer versions
Ulx\lua\ulx\modules\util.lua
« Last Edit: September 20, 2008, 09:00:47 AM by hi_tech_guy_18 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: COLORS AND WORDS
« Reply #8 on: September 21, 2008, 12:09:07 AM »
I think the instructions should still work for you.
Experiencing God's grace one day at a time.