Jump to content

syschat or chat color


Recommended Posts

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

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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