Hi, does anyone help me with this? I'm trying to set a color on the times of my tvt!
so it was done to define team colors
public static void prepareNameAndTitle()
{
for (Player player : _teams[0].getParticipatedPlayers().values())
{
if (player != null)
{
player.getAppearance().setTitleColor(Config.TVT_EVENT_TEAM_TEAM_BLUE_COLOR);
player.getAppearance().setNameColor(Config.TVT_EVENT_TEAM_TEAM_BLUE_COLOR);
}
}
for (Player player : _teams[1].getParticipatedPlayers().values())
{
if (player != null)
{
player.getAppearance().setTitleColor(Config.TVT_EVENT_TEAM_TEAM_RED_COLOR);
player.getAppearance().setNameColor(Config.TVT_EVENT_TEAM_TEAM_RED_COLOR);
}
}
}
when the event is over I was forced to use it to exit the colors of TVT
for (TvTEventTeam team : _teams)
{
for (Player player : team.getParticipatedPlayers().values())
{
// Check for nullpointer
if (player != null)
{
player.clearEventScore();
player.getAppearance().setTitleColor(0xFFFF77);
player.getAppearance().setNameColor(0xFFFFFF);
I do not restore the original colors because I am setting the white color as soon as I exit the tvt how can I define each team and a color in charinfo and userinfo
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Did I stop working of the project all those years you fkn moron?
Next time you go to buy bread tell the baker you had payed him in the past.
Fkn morons...
Everything is already explained and you play dumb AF.
https://l2jmobius.org/forum/index.php?topic=3230
The only shitty thing here is your brain.
You only read what you want and you feel offended by what I said.
You called the leaked project a trash, a shit, whatever you wish to, and you call your latest revision the best ever, I want to point out for example, I am a subscriber since 2018 and I stop in 2024 august let's say, and I contnue to work on your 2024 august revision, all this years I payd for your subscription in the end I am left with trash, shitty files and I need to pay again just to get the last revision to own something good? EXPLAIN ME THIS PLEASE
Question
l2jkain
Hi, does anyone help me with this? I'm trying to set a color on the times of my tvt!
so it was done to define team colors
public static void prepareNameAndTitle()
{
for (Player player : _teams[0].getParticipatedPlayers().values())
{
if (player != null)
{
player.getAppearance().setTitleColor(Config.TVT_EVENT_TEAM_TEAM_BLUE_COLOR);
player.getAppearance().setNameColor(Config.TVT_EVENT_TEAM_TEAM_BLUE_COLOR);
}
}
for (Player player : _teams[1].getParticipatedPlayers().values())
{
if (player != null)
{
player.getAppearance().setTitleColor(Config.TVT_EVENT_TEAM_TEAM_RED_COLOR);
player.getAppearance().setNameColor(Config.TVT_EVENT_TEAM_TEAM_RED_COLOR);
}
}
}
when the event is over I was forced to use it to exit the colors of TVT
for (TvTEventTeam team : _teams)
{
for (Player player : team.getParticipatedPlayers().values())
{
// Check for nullpointer
if (player != null)
{
player.clearEventScore();
player.getAppearance().setTitleColor(0xFFFF77);
player.getAppearance().setNameColor(0xFFFFFF);
// Teleport back.
new TvTEventTeleporter(player, (player.getTeam() == 1 ? Config.TVT_EVENT_PARTICIPATION_NPC_LOCATION : Config.TVT_EVENT_PARTICIPATION_NPC_LOCATION), false);
}
}
}
I do not restore the original colors because I am setting the white color as soon as I exit the tvt how can I define each team and a color in charinfo and userinfo
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.