• 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!

Text color question.

CesarZ

Well-Known Member
Joined
Sep 20, 2012
Messages
268
Solutions
4
Reaction score
63
With what function am i allowed to call the text color? TFS 1.3?

examples
TEXTCOLOR_BLUE = 5,
TEXTCOLOR_LIGHTGREEN = 30,


Lua:
doCreatureSay(cid, "comment", COLOR)

Doesn't work. It only works with TALKTYPE_ORANGE_1
 
Solution
E
original tibia client doesn't support custom colors beside the ones here.

creature:say(text, type) only supports TALKTYPE_MONSTER_SAY and TALKTYPE_MONSTER_YELL if I recall correctly

if you want to use other colors (blue, white, red) you will need to use:

Lua:
player:sendTextMessage(type, text[, position, primaryValue = 0, primaryColor = TEXTCOLOR_NONE[, secondaryValue = 0, secondaryColor = TEXTCOLOR_NONE]])

and if you are talking about AnimatedText, well, then it is another story
No wont work

 
original tibia client doesn't support custom colors beside the ones here.

creature:say(text, type) only supports TALKTYPE_MONSTER_SAY and TALKTYPE_MONSTER_YELL if I recall correctly

if you want to use other colors (blue, white, red) you will need to use:

Lua:
player:sendTextMessage(type, text[, position, primaryValue = 0, primaryColor = TEXTCOLOR_NONE[, secondaryValue = 0, secondaryColor = TEXTCOLOR_NONE]])

and if you are talking about AnimatedText, well, then it is another story
 
Solution
Back
Top