• 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.X+ addHealth color

Sigoles

Discord: @sigoles
Joined
Nov 20, 2015
Messages
1,209
Solutions
2
Reaction score
154
is there any way to change the text color for the function addHealth ?

it's purple, I wanted it light blue per example

gj4TnAx.png


tfs 1.x+

thanks
 
Solution
yes
C++:
if (target->getMonster() && target->getName() == "Monster A" {
    message.primary.color = TEXTCOLOR_LIGHTBLUE;
} else {
    message.primary.color = TEXTCOLOR_PURRED;
}
otland/forgottenserver
not sure why yours is purple, it's defaulted to TEXTCOLOR_PASTELRED
here's the text colors too
otland/forgottenserver

the mine is message.primary.color = TEXTCOLOR_PURRED;

but I explained wrong, the question is: how I can change color addHealth to specify monster only two monsters?

its like:

if target->getMonster() $$ target->getName() == "Monster A" {
message.primary.color = TEXTCOLOR_SOMECOLOR;
}

?
 
yes
C++:
if (target->getMonster() && target->getName() == "Monster A" {
    message.primary.color = TEXTCOLOR_LIGHTBLUE;
} else {
    message.primary.color = TEXTCOLOR_PURRED;
}
 
Solution
Back
Top