• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Animated Tekst

Dion078

New Member
Joined
Aug 27, 2010
Messages
32
Reaction score
0
Greetings otlanders,

I wanna change the colour of my animated tekst into green or brown but I don't know how to because it's a script not in my language, maybe somebody understands and knows.

Code:
 local pozycje = {
 {pos = {x=995, y=998, z=7}, tekst = "Hunting"},
 {pos = {x=995, y=1000, z=7}, tekst = "Quests"},
 {pos = {x=1004, y=996, z=7}, tekst = "Depot"},
 {pos = {x=1004, y=998, z=7}, tekst = "Shops"},
 {pos = {x=1004, y=1000, z=7}, tekst = "Training"},
 {pos = {x=995, y=995, z=7}, tekst = "! VIP !"},
 {pos = {x=1026, y=994, z=7}, tekst = "Temple"},
 {pos = {x=1036, y=994, z=7}, tekst = "! VIP !"},
 {pos = {x=1000, y=994, z=7}, tekst = "Events"},
 {pos = {x=999, y=994, z=7}, tekst = "! WAR !"},
 }
		function onThink(interval, lastExecution)
			local kolor = TEXTCOLOR_TEAL   -- Jakim kolorem jest dany napis
			for i=1, #pozycje do
				doSendMagicEffect(pozycje[i].pos,37)
				doSendAnimatedText(pozycje[i].pos,pozycje[i].tekst,kolor)
			end
			return true
			end


already thanks

kind regards,
dion078
 
change this line

Code:
local kolor = TEXTCOLOR_TEAL   -- Jakim kolorem jest dany napis

TO

local kolor = TEXTCOLOR_DARKBROWN -- for brown color

or

local kolor = TEXTCOLOR_LIGHTBLUE -- for blue color
 
local kolor = TEXTCOLOR_TEAL -- Jakim kolorem jest dany napis

to:
local kolor = TEXTCOLOR_GREEN
or:
local kolor = 18
 
In english

PHP:
local positions= {
 {pos = {x=995, y=998, z=7}, text= "Hunting"},
 {pos = {x=995, y=1000, z=7}, text= "Quests"},
 {pos = {x=1004, y=996, z=7}, text= "Depot"},
 {pos = {x=1004, y=998, z=7}, text= "Shops"},
 {pos = {x=1004, y=1000, z=7}, text= "Training"},
 {pos = {x=995, y=995, z=7}, text= "! VIP !"},
 {pos = {x=1026, y=994, z=7}, text= "Temple"},
 {pos = {x=1036, y=994, z=7}, text= "! VIP !"},
 {pos = {x=1000, y=994, z=7}, text= "Events"},
 {pos = {x=999, y=994, z=7}, text= "! WAR !"},
 }
		function onThink(interval, lastExecution)
			local color = TEXTCOLOR_TEAL   -- text color
			for i=1, #positionsdo
				doSendMagicEffect(positions[i].pos,37)
				doSendAnimatedText(positions[i].pos,positions[i].text,color)
			end
			return true
			end

Possible colors:
PHP:
	COLOR_BLACK			= 0,
	COLOR_BLUE			= 5,
	COLOR_GREEN			= 18,
	COLOR_LIGHTGREEN	= 66,
	COLOR_DARKBROWN		= 78,
	COLOR_LIGHTBLUE		= 89,
	COLOR_MAYABLUE		= 95,
	COLOR_DARKRED		= 108,
	COLOR_DARKPURPLE	= 112,
	COLOR_BROWN			= 120,
	COLOR_GREY			= 129,
	COLOR_TEAL			= 143,
	COLOR_DARKPINK		= 152,
	COLOR_PURPLE		= 154,
	COLOR_DARKORANGE	= 156,
	COLOR_RED			= 180,
	COLOR_PINK			= 190,
	COLOR_ORANGE		= 192,
	COLOR_DARKYELLOW	= 205,
	COLOR_YELLOW		= 210,
	COLOR_WHITE			= 215,

	COLOR_NONE			= 255,
 
Back
Top