• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

tfs 1.2+ How to change healing colour?

zxzxzx

New Member
Joined
Mar 12, 2011
Messages
334
Reaction score
3
Hello! I want to change healing colour, in spells with this - TALKTYPE_ORANGE_1) to purple or else, how can I do this? I've be looking in the forum, find this:

Feature - Healing Text Color


but tfs 1.2+ source code is different..

Help ++
 
Friend u add me new cpp but now which lines I have to change to make set different text colour on the runes like uh?
 
Friend u add me new cpp but now which lines I have to change to make set different text colour on the runes like uh?

This link leads you to the correct line for health change and it is even highlighted. Put some effort at least and read what you've been given..
 
Ok now I see, Can I use numbers for colours like in outfit? and what colours I can use there?

C++:
enum TextColor_t : uint8_t {
    TEXTCOLOR_BLUE = 5,
    TEXTCOLOR_LIGHTGREEN = 30,
    TEXTCOLOR_LIGHTBLUE = 35,
    TEXTCOLOR_MAYABLUE = 95,
    TEXTCOLOR_DARKRED = 108,
    TEXTCOLOR_LIGHTGREY = 129,
    TEXTCOLOR_SKYBLUE = 143,
    TEXTCOLOR_PURPLE = 155,
    TEXTCOLOR_RED = 180,
    TEXTCOLOR_ORANGE = 198,
    TEXTCOLOR_YELLOW = 210,
    TEXTCOLOR_WHITE_EXP = 215,
    TEXTCOLOR_NONE = 255,
};

you can either use these enum values (capital letter string values) or numbers associated with them. I do suggest to use enum values though, this will make sure you don't have any typos (with numbers, if you put 13 for example, it will compile, but may crash the client~, but TEXTCOLOR_OHMYGOD will not compile). I am not sure if you can use other colours outside this list. Also if you go to line 3914 there should be
message.primary.color = TEXTCOLOR_BLUE;

This one is responsible for damages dealt while target is "wearing" mana shield.
 
Back
Top