Jump to content
  • 0
Tasho

syschat or chat color

Question

Hi, could someone tell me how to change the color of the syschat or chat to something like this:
 
--**
--** Functii colorate
--** by BlackYuko
--**

function say_color(color, text)
    local rgb = rawget(colors_data, color)
    say(color256(rgb[1],rgb[2],rgb[3])..text..color256(colors_data.default[1], colors_data.default[2], colors_data.default[3]))
end

function set_text_color(color)
    local rgb = rawget(colors_data, color)
    raw_script(color256(rgb[1],rgb[2],rgb[3]))
end

colors_data =     {
                ['verde'] = {0,190,0},
                ['verde chiaro'] = {0,255,0},
                ['verde scuro'] = {0,120,0},
                ['verde leggero'] = {144,238,144},
                ['verde acqua'] = {102,205,170},
                ['rosso'] = {240,0,0},
                ['rosso leggero'] = {255,69,51},
                ['rosa'] = {255,64,160},
                ['rosa scuro'] = {255,0,128},
                ['rosa chiaro'] = {255,182,193},
                ['corallo'] = {255,127,80},
                ['arancione'] = {255,130,0},    
                ['arancione scuro'] = {255,90,0},                
                ['fucsia'] = {255,0,255},    
                ['viola'] = {224,129,255},
                ['viola scuro'] = {148,0,148},
                ['lilla'] = {200,162,200},
                ['marrone'] = {161,63,0},
                ['marrone scuro'] = {120,66,0},
                ['marrone chiaro'] = {200,164,115},
                ['giallo'] = {255,255,53},
                ['giallo chiaro'] = {255,255,128},
                ['oro'] = {255,191,24},
                ['blu'] = {0,0,250},
                ['blu scuro'] = {0,0,150},
                ['azzurro'] = {128,255,255},
                ['azzurro chiaro'] = {193,255,255},
                ['turchese'] = {0,255,255},
                ['bianco'] = {255,255,225},
                ['grigio'] = {128,128,128},
                ['nero'] = {0,0,0},
                ['default'] = {196,196,196}
                }

Share this post


Link to post

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.