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.
sell adena
l2rebon signature x1 - 1kk = 1 dollars
l2reborn x10 - 500kk = 4.7 dollars
E-Global x Lu4 - 1kk = 2.7 dollars
BOHPTS - x20-x500 TOP PRICE
DISCORD - GODDARDSHOP
TELEGRAM - MMOPROMO
Also on sale are Epic jewelry, Clothes at a very good price
Hello everyone, Martin here - aka tehSx1, junior developer. I’m currently looking for work in private server development. I have experience working with L2JLucera, L2JEternity, L2JMobius, with Classic, Interlude, and H5 clients. The last project I participated in was L2-Avalon, a rework of Interlude using Classic files. I’m from Argentina, but I understand English very well for fluent communication.
I can work on configuration, maintenance, creating NPCs, mobs, items, fixing skills, or anything related to the server side. I also have basic knowledge to work on the client side as well. I have some self-taught knowledge of Java, so with a bit of time and ChatGPT I can get things done there too.
Anyone interested can contact me on Discord (Smookes420#4425) to discuss terms. I’m open to new opportunities and excited to take part in new projects to continue my learning process.
P.S.: I’ve been playing Lineage 2 since I was 6 years old on Chronicle C1. I’m 26 now. It’s all about the passion for the game, bro.
What does ‘half-finished’ even mean? Most projects based on L2Off use essentially the same files made for gold-style servers, and they’re fully functional. As for the L2J branches, calling them ‘half-finished’ couldn’t be further from the truth, they’re not only complete in the sense of gold-style projects but are actually extended with even more features.
Discord : utchiha_market
Telegram : https://t.me/utchiha_market
Auto Buy Store : https://utchiha-market.mysellauth.com/
Not sure if we’re legit? Check Our server — real reviews, real buyers
https://discord.gg/4EPpYhe2HA | https://campsite.bio/utchihaamkt
sell adena
l2rebon signature x1 - 1kk = 1 dollars
l2reborn x10 - 500kk = 4.7 dollars
E-Global x Lu4 - 1kk = 2.7 dollars
BOHPTS - x20-x500 TOP PRICE
DISCORD - GODDARDSHOP
TELEGRAM - MMOPROMO
Also on sale are Epic jewelry, Clothes at a very good price
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.