Register for your free account! | Forgot your password?

You last visited: Today at 02:13

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]Says Colored by BlackYuko

Discussion on [Release]Says Colored by BlackYuko within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
crusa2's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 55
Received Thanks: 53
[Release]Says Colored by BlackYuko

Hi guys ! In this post , I'm going to show you how can type with all colors in your scripts/quests .

1. Paste this code in questlib.lua


Code:
--**
--** Functions colored says
--** 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 =     {
                ['green'] = {0,190,0},
                ['light green'] = {0,255,0},
                ['dark green'] = {0,110,0},
                ['semi light green'] = {144,238,144},
                ['teal'] = {102,205,170},
                ['red'] = {240,0,0},
                ['semi light red'] = {255,69,51},
                ['rose'] = {255,64,160},
                ['dark rose'] = {255,0,128},
                ['light rose'] = {255,182,193},
                ['light orange'] = {255,127,80},
                ['orange'] = {255,130,0},    
                ['dark orange'] = {255,90,0},                
                ['semi dark violet'] = {255,0,255},    
                ['violet'] = {224,129,255},
                ['dark violet'] = {148,0,148},
                ['light violet'] = {200,162,200},
                ['brown'] = {161,63,0},
                ['dark brown'] = {120,66,0},
                ['light brown'] = {200,164,115},
                ['yellow'] = {255,255,53},
                ['light yellow'] = {255,255,128}, 
                ['gold'] = {255,191,24},
                ['blue'] = {0,0,250},
                ['dark blue'] = {0,0,150},
                ['cyan'] = {128,255,255},
                ['light cyan'] = {180,255,255},
                ['turquoise'] = {0,255,255},
                ['white'] = {255,255,225},
                ['gray'] = {128,128,128},
                ['black'] = {0,0,0},
                ['default'] = {196,196,196}
                }
2. Add these functions in file quest_functions :

Code:
say_color
set_text_color
These are the color that I put yet , naturally you can add more colors :





If you want to add more colors , add in the vector "colors_data" .

How to use it :

In whichever quest , when you type a colored string , use function "say_color" .


Code:
say_color("name_color" , "text")
Example :

Code:
say_color("yellow", "This string is yellow")
say_color("red", "This string is red")
say_color("blue", "This string is blue")
say_color("light yellow", "This string is light yellow")
say_color("light red", "This string is light red")
say_color("teal", "This string is teal")
say_color("default", "This string is normal")

Result :



Well , you can see that color "standard" of text is called "default"

Secondary function :

If I want type more strings with the same color without type in every string ? Simple , you can setup the color of text with the function "set_text_color" , and next all says will be the color selected .

Example :

Code:
set_text_color("red")
say("Now it will type ever red")
say("Now it will type ever red")
say("Now it will type ever red")
say("Now it will type ever red")
set_text_color("yellow")
say("Now it will type ever yellow")
say("Now it will type ever yellow")
say("Now it will type ever yellow")
say("Now it will type ever yellow")
set_text_color("cyan")
say("Now it will type ever cyan")
say("Now it will type ever cyan")
say("Now it will type ever cyan")
say("Now it will type ever cyan")   
set_text_color("default")
say("Now it will type again normal")
Result :



Credits & Thanks : BlackYuko
Release & scripts translated by crusa2
----------------------------------------
Best regards ,
crusa2

----------------------------------------
crusa2 is offline  
Thanks
36 Users
Old 09/01/2012, 13:59   #2
 
elite*gold: 315
Join Date: Dec 2011
Posts: 2,905
Received Thanks: 1,066
Nice
Teh Plex is offline  
Old 09/01/2012, 14:06   #3
wild wild son




 
Nick's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 5,995
Received Thanks: 3,389
It's very helpful for warnings in some quests and it's useful for me. I think, i'll apply that.
Nick is offline  
Old 09/01/2012, 14:11   #4
 
crusa2's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 55
Received Thanks: 53
Thanks guys , I remind you that you thank BlackYuko for these functions
crusa2 is offline  
Old 09/01/2012, 14:45   #5
 
xF4ke :þ's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,273
Received Thanks: 1,268
looks good, thanks for sharing
xF4ke :þ is offline  
Old 09/01/2012, 14:49   #6

 
vıo's Avatar
 
elite*gold: 0
The Black Market: 128/1/0
Join Date: Jun 2012
Posts: 1,768
Received Thanks: 356
i'll use it
vıo is offline  
Old 09/01/2012, 15:00   #7
 
elite*gold: 32
Join Date: Dec 2010
Posts: 1,294
Received Thanks: 862
Mijago already scripted an similarly version in his questlib add-on ()
Begins in line 648
√π. is offline  
Old 09/01/2012, 18:37   #8
 
blackyuko's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 18
Received Thanks: 313
Quote:
Originally Posted by √π. View Post
Mijago already scripted an similarly version in his questlib add-on ()
Begins in line 648
I answer because it's always my stuff. These were two very small functions that I wrote for the italian community a couple of months ago. Crusa2 posted it here but he couldn't know that someone has already done something similar. So, never mind, there will be two similar functions for colored "say"
blackyuko is offline  
Old 09/01/2012, 18:52   #9
 
Mijago's Avatar
 
elite*gold: 191
Join Date: May 2009
Posts: 1,214
Received Thanks: 2,597
Originally 3 ..
There is this function, then the say_red, say_blue etc and at last mine, with that you can combine colors.. and there are nearby 280 colors you can use with mine

lg Mijago
Mijago is offline  
Old 09/01/2012, 20:35   #10
 
D~CoAsT's Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 566
Received Thanks: 102
VERY nice (:
D~CoAsT is offline  
Old 09/02/2012, 08:14   #11
wild wild son




 
Nick's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 5,995
Received Thanks: 3,389


Existiert wie man sieht, schon mehrmals.
Nick is offline  
Old 09/02/2012, 13:54   #12
 
crusa2's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 55
Received Thanks: 53
Quote:
Originally Posted by .JayZoN View Post


Existiert wie man sieht, schon mehrmals.
If you read which said BlackYuko , there are many ways to write says colored .
crusa2 is offline  
Old 06/30/2013, 14:36   #13
 
elite*gold: 0
Join Date: Dec 2010
Posts: 20
Received Thanks: 3
Thank
wvoron is offline  
Reply


Similar Threads Similar Threads
[Release] [OFFICIAL RELEASED] PGZ DFI SF (PH) CHAPTER VERSION 11 (10 COLORED CHAMS AD
03/16/2012 - Soldier Front Philippines - 4 Replies
*removed*
[Release] [OFFICIAL RELEASED] PGZ DFI SF (PH) CHAPTER VERSION 11 (10 COLORED CHAMS AD
03/09/2012 - Soldier Front Philippines - 9 Replies
PGZ DFI SF (PH) CHAPTER VERSION 11 (10 COLORED CHAMS ADDED + DRAG PGZ DFI SF (PH) CHAPTER VERSION 11 (UPDATED DRAGON SET AND NEW GUN + PERFECT CHAMS + MORE COLORED CHAMS) Tested in Windows XP SP 1,2,3 Win7 - Working / Tested Vista - working / Tested Requirements :
[RELEASE] MULTI COLORED CHAR CHAMS (PSF)
09/24/2009 - Soldier Front Hacks, Bots, Cheats & Exploits - 106 Replies
Hi there Guys,... This is the First time that E*PvP has This Edited Type of File. "PSF's MULTI COLORED CHAR CHAMS" Looks like you Guys have a 50% Wallhack LoL (100% created by Me)



All times are GMT +1. The time now is 02:14.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.