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
Just like others on this forum, you can comment wherever you want, and it's not spam. But even if you erase the evidence, you'll still lack skill in L2Off files "sources".
I don't get why you're lying here, saying you're a developer. Why do you keep saying you fix everything from the source code i sold you, while paying other developers to fix your bugs?
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
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now