Jump to content

PvP Color system Name & Title


HammerV2

Recommended Posts

Ok i was looking for this system, but i never found, so i found Vago's PvP/Pk Color system and i added and change some things, and finally i got the same system but just whit PvP points. and it work in gracia 2.3

 

Credits To Vago, and me for the new changes

/java/config/l2jmods.properties

EnableWarehouseSortingPrivate = False
EnableWarehouseSortingFreight = False

+# ---------------------------------------
+# Section: PvP Title/name Color Change System by Level
+# ---------------------------------------
+# Each Amount will change the name color to the values defined here.
+# Example: PvpAmmount1 = 500, when a character's PvP counter reaches 500, their name color will change
+# according to the ColorForAmount value.
+# Note: Colors Must Use RBG format
+EnablePvPColorSystem = True
+
+# Pvp Amount & Name color level 1.
+PvpAmount1 = 500
+ColorForAmount1 = CCFF00
+
+# Pvp Amount & Name color level 2.
+PvpAmount2 = 1000
+ColorForAmount2 = 00FF00
+
+# Pvp Amount & Name color level 3.
+PvpAmount3 = 2000
+ColorForAmount3 = 00FF00
+
+# Pvp Amount & Name color level 4.
+PvpAmount4 = 3000
+ColorForAmount4 = 00FF00
+
+# Pvp Amount & Name color level 5.
+PvpAmount5 = 4000
+ColorForAmount5 = 00FF00
+
+# Pvp Amount & Name color level 6.
+PvpAmount6 = 5500
+ColorForAmount6 = 00FF00
+
+# Pvp Amount & Name color level 7.
+PvpAmount7 = 7500
+ColorForAmount7 = 00FF00
+
+# Pvp Amount & Name color level 8.
+PvpAmount8 = 10000
+ColorForAmount8 = 00FF00
+
+# Pvp Amount & Name color level 9.
+PvpAmount9 = 16000
+ColorForAmount9 = 00FF00
+
+# Pvp Amount & Name color level 10.
+PvpAmount10 = 25000
+ColorForAmount10 = 00FF00
+
+# PvP Amount & Title color level 1.
+PvPAmount1 = 500
+TitleForAmount1 = 00FF00
+
+# PvP Amount & Title color level 2.
+PvPAmount2 = 1000
+TitleForAmount2 = 00FF00
+
+# PvP Amount & Title color level 3.
+PvPAmount3 = 2000
+TitleForAmount3 = 00FF00
+
+# PvP Amount & Title color level 4.
+PvPAmount4 = 3000
+TitleForAmount4 = 00FF00
+
+# PvP Amount & Title color level 5.
+PvPAmount5 = 4000
+TitleForAmount5 = 00FF00
+
+# PvP Amount & Title color level 6.
+PvPAmount6 = 5500
+TitleForAmount6 = 00FF00
+
+# PvP Amount & Title color level 7.
+PvPAmount7 = 7500
+TitleForAmount7 = 00FF00
+
+# PvP Amount & Title color level 8.
+PvPAmount8 = 10000
+TitleForAmount8 = 00FF00
+
+# PvP Amount & Title color level 9.
+PvPAmount9 = 16000
+TitleForAmount9 = 00FF00
+
+# PvP Amount & Title color level 10.
+PvPAmount10 = 25000
+TitleForAmount10 = 00FF00
+

Index: /java/net/sf/l2j/Config.java

       public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_CLAN;
public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE;
public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT;
       +public static boolean		PVP_COLOR_SYSTEM_ENABLED;
+public static int			PVP_AMOUNT1;
+public static int			PVP_AMOUNT2;
+public static int			PVP_AMOUNT3;
+public static int			PVP_AMOUNT4;
+public static int			PVP_AMOUNT5;
+public static int			PVP_AMOUNT6;
+public static int			PVP_AMOUNT7;
+public static int			PVP_AMOUNT8;
+public static int			PVP_AMOUNT9;
+public static int			PVP_AMOUNT10;
+public static int			NAME_COLOR_FOR_PVP_AMOUNT1;
+public static int			NAME_COLOR_FOR_PVP_AMOUNT2;
+public static int			NAME_COLOR_FOR_PVP_AMOUNT3;
+public static int			NAME_COLOR_FOR_PVP_AMOUNT4;
+public static int			NAME_COLOR_FOR_PVP_AMOUNT5;
+public static int			NAME_COLOR_FOR_PVP_AMOUNT6;
+public static int			NAME_COLOR_FOR_PVP_AMOUNT7;
+public static int			NAME_COLOR_FOR_PVP_AMOUNT8;
+public static int			NAME_COLOR_FOR_PVP_AMOUNT9;
+public static int			NAME_COLOR_FOR_PVP_AMOUNT10;
+public static int			TITLE_COLOR_FOR_PVP_AMOUNT1;
+public static int			TITLE_COLOR_FOR_PVP_AMOUNT2;
+public static int			TITLE_COLOR_FOR_PVP_AMOUNT3;
+public static int			TITLE_COLOR_FOR_PVP_AMOUNT4;
+public static int			TITLE_COLOR_FOR_PVP_AMOUNT5;
+public static int			TITLE_COLOR_FOR_PVP_AMOUNT6;
+public static int			TITLE_COLOR_FOR_PVP_AMOUNT7;
+public static int			TITLE_COLOR_FOR_PVP_AMOUNT8;
+public static int			TITLE_COLOR_FOR_PVP_AMOUNT9;
+public static int			TITLE_COLOR_FOR_PVP_AMOUNT10;

               L2JMOD_ENABLE_WAREHOUSESORTING_CLAN = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingClan", "False"));
	L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingPrivate", "False"));
	L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingFreight", "False"));
            
   			+// PVP Name Color System configs - Start
   			+PVP_COLOR_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("EnablePvPColorSystem", "false"));
   			+PVP_AMOUNT1 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount1", "500"));
   			+PVP_AMOUNT2 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount2", "1000"));
   			+PVP_AMOUNT3 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount3", "2000"));
   			+PVP_AMOUNT4 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount4", "3000"));
   			+PVP_AMOUNT5 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount5", "4000"));
		+PVP_AMOUNT6 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount6", "5500"));
   			+PVP_AMOUNT7 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount7", "7500"));
   			+PVP_AMOUNT8 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount8", "1000"));
   			+PVP_AMOUNT9 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount9", "1600"));
   			+PVP_AMOUNT10 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount10", "25000"));
   			+NAME_COLOR_FOR_PVP_AMOUNT1 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount1", "00FF00"));
   			+NAME_COLOR_FOR_PVP_AMOUNT2 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount2", "00FF00"));
   			+NAME_COLOR_FOR_PVP_AMOUNT3 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount3", "00FF00"));
   			+NAME_COLOR_FOR_PVP_AMOUNT4 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount4", "00FF00"));
   			+NAME_COLOR_FOR_PVP_AMOUNT5 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount5", "00FF00"));
		+NAME_COLOR_FOR_PVP_AMOUNT6 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount6", "00FF00"));
   			+NAME_COLOR_FOR_PVP_AMOUNT7 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount7", "00FF00"));
   			+NAME_COLOR_FOR_PVP_AMOUNT8 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount8", "00FF00"));
   			+NAME_COLOR_FOR_PVP_AMOUNT9 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount9", "00FF00"));
   			+NAME_COLOR_FOR_PVP_AMOUNT10 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount10", "00FF00"));
		+TITLE_COLOR_FOR_PVP_AMOUNT1 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount1", "00FF00"));
   			+TITLE_COLOR_FOR_PVP_AMOUNT2 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount2", "00FF00"));
   			+TITLE_COLOR_FOR_PVP_AMOUNT3 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount3", "00FF00"));
   			+TITLE_COLOR_FOR_PVP_AMOUNT4 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount4", "00FF00"));
   			+TITLE_COLOR_FOR_PVP_AMOUNT5 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount5", "00FF00"));
		+TITLE_COLOR_FOR_PVP_AMOUNT6 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount6", "00FF00"));
   			+TITLE_COLOR_FOR_PVP_AMOUNT7 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount7", "00FF00"));
   			+TITLE_COLOR_FOR_PVP_AMOUNT8 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount8", "00FF00"));
   			+TITLE_COLOR_FOR_PVP_AMOUNT9 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount9", "00FF00"));
   			+TITLE_COLOR_FOR_PVP_AMOUNT10 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount10", "00FF00"));
		+	
   			+// PvP Name Color System configs - End


				if (TVT_EVENT_PARTICIPATION_NPC_ID == 0)
				{

Index: /java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

ExDuelUpdateUserInfo update = new ExDuelUpdateUserInfo(this);
       	DuelManager.getInstance().broadcastToOppositTeam(this, update);
       }
}

+// Custom PVP Color System - Start
+public void updatePvPColor(int pvpKillAmount)
+{
+	if (Config.PVP_COLOR_SYSTEM_ENABLED)
+	{
+		//Check if the character has GM access and if so, let them be.
+		if (isGM())
+			return;
+		{
+			if ((pvpKillAmount >= (Config.PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2)))
+			{
+				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT1);
+				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT1);
+			}
+			else if ((pvpKillAmount >= (Config.PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3)))
+			{
+				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT2);
+				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT2);
+			}
+			else if ((pvpKillAmount >= (Config.PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4)))
+			{
+				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT3);
+				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT3);
+			}
+			else if ((pvpKillAmount >= (Config.PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5)))
+			{
+				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT4);
+				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT4);
+			}
+			else if ((pvpKillAmount >= (Config.PVP_AMOUNT5)) && (pvpKillAmount <= (Config.PVP_AMOUNT6)))
+			{
+				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT5);
+				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT5);
+			}
+			else if ((pvpKillAmount >= (Config.PVP_AMOUNT6)) && (pvpKillAmount <= (Config.PVP_AMOUNT7)))
+			{
+				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT6);
+				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT6);
+			}
+			else if ((pvpKillAmount >= (Config.PVP_AMOUNT7)) && (pvpKillAmount <= (Config.PVP_AMOUNT8)))
+			{
+				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT7);
+				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT7);
+			}
+			else if ((pvpKillAmount >= (Config.PVP_AMOUNT8)) && (pvpKillAmount <= (Config.PVP_AMOUNT9)))
+			{
+				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT8);
+				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT8);
+			}
+			else if ((pvpKillAmount >= (Config.PVP_AMOUNT9)) && (pvpKillAmount <= (Config.PVP_AMOUNT9)))
+			{
+				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT9);
+				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT9);
+			}
+			else if (pvpKillAmount >= (Config.PVP_AMOUNT10))
+			{
+				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT10);
+				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT10);
+			}
+		}
+	}
+}
+//Custom PVP Color System - End

/**
 * Send a Server->Client packet UserInfo to this L2PcInstance and CharInfo to all L2PcInstance in its _KnownPlayers.<BR><BR>


       // Add karma to attacker and increase its PK counter
       setPvpKills(getPvpKills() + 1);

+      //Update the character's name/title color if they reached any of the 10 PvP levels.
+        updatePvPColor(getPvpKills());
+        broadcastUserInfo();
+
       // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
       sendPacket(new UserInfo(this));


Index: /java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java

}
	activeChar.sendPacket(new QuestList());

+      // =================================================================================
+      // Color System checks - Start =====================================================
+      // Check if the custom PvP color system are enabled and if so ==============
+      // check the character's counters and apply any color changes that must be done. ===
+      if (activeChar.getPvpKills()>=(Config.PVP_AMOUNT1) && (Config.PVP_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvpKills());
+      // Color System checks - End =======================================================
+      // =================================================================================
+
       
	if (Config.PLAYER_SPAWN_PROTECTION > 0)
		activeChar.setProtection(true);



 

Link to comment
Share on other sites

Ok i was looking for this system, but i never found, so i found Vago's PvP/Pk Color system and i added and change some things, and finally i got the same system but just whit PvP points. and it work in gracia 2.3

 

Credits To Vago, and me for the new changes

 

But I still want someone to confirm those changes.

 

Anyway, thanks for sharing your work rans3sx.

Link to comment
Share on other sites

you've only changed the tittle

anyway good try

 

nahh bro "only PvP system" not pk

 

And guys i need some help, i wanna use this system "custom enchant mod | By Flower" but i cant, where is this file info? enchantscrolls.java in ct2.3? help please guys :D

Link to comment
Share on other sites

What is so cool?

 

Useless share :D

 

if u are looking to make a Pvp server like me, its usefull cuz u can motive players to pvp to decore his names and titles  :), and may be add some skills by every pvp lvl reached, anyways thx for ur reply bro  :P

Link to comment
Share on other sites

Very good share! Im using this modification since a while and must say that its good coded and makes fun for every player using it. You may just integrate an additional "kill from same-ip" protection. :P

Link to comment
Share on other sites

Credits To Vago, and me for the new changes...

 

1st of all Vago alredy c/ped it its not hes work

2nd tell me your changes otherwise i lock it since its alredy shared

Link to comment
Share on other sites

Credits To Vago, and me for the new changes...

 

1st of all Vago alredy c/ped it its not hes work

2nd tell me your changes otherwise i lock it since its alredy shared

pwned.

ontopic:// so basically this work only for gracia final?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Posts

    • https://maxcheaters.com/topic/223806-driver-service-for-all-servers-reborndionclub-and-more/
    • L2RAPTOR continues to grow!! We have players and clans from Europe, South America, Russia, and Ukraine. Come join us! Server will stay open minimum 1 year!
    • Greetings, dear friends Today, I’d like to tell you a little story. It’s a story of how we constantly innovate, while other admins are just copying what we do without any inspiration. It’s a desperate cry from others to stay relevant when we put our on the table (you read that, I didn’t say it). You will see this happening again with our new server. You will start seeing lots of servers start working on implementing their own version AI players when our server starts getting attention. It’s not that we are ahead of our times, it’s that other servers don’t give a shit, they just want your wallet. Why are you still playing on scam servers? I’ve said it 10k times already. We do the work we believe is best instead of scrambling up random average features to bait people into joining a boring but profitable server. We want an extremely transparent, fair, and fun server because it’s also going to be extremely profitable and satisfying. Reject scam servers, join legit servers. Here’s a list of legit servers: L2Aqua If you want your server added to the list, let me know. If you want me to create a new voting site where we only accept legit servers, let me know. Here’s a list of everything servers have copied from us over the years Our old friend nuked our database and made his own server, web, and client from our own effort. We’ve reworked our client, web, and server since - while it seems that this other project is stuck in the past. Servers are using our old clients with all our skins, armors, animations, etc. They won’t fix the very obvious client bugs we’ve long fixed Servers ripped up Hubris interface which he made from 0 and copied and shared components even when he has released a public code for the interface Some servers even had the audacity to ask us for help on how to adapt it for their own server Lots of Skins stuff, like Twitch Cloak (I made it myself back when there were only a few L2 streamers around), Pandemonium armor, Paragon armor, Phase armor, Vesper Noble Weapons, Lava Weapons, Devil Weapons , basically everything… Can you imagine how lame you have to be to be using Devil weapons on a server that’s not L2Devil and not even renaming them? Basically our whole work which we did from 0 over all these years is shared around the internet. Have fun if you find it, go on and use it! Just… don’t ask us for support? If you gave credit I’d actually respect you more. Now, these are kind of easy to see. You make a cool weapon, I copypaste the weapon into my own client, and I now have the weapon too, yay! Thank you for your hard work! What’s not so easy to see is how we set the standards in the scene and later people adapt to us. We created the standard: Buffs amount, Buffs in the NPC Buffer, Item prices, Items in the GM Shop, Steal not overbuffing, Cancel returning buffs, automatic potions, you think about it, there’s a chance we did it first and people adapted. Get ready because it’s coming. Once the server starts skyrocketing in population, scam admins are going to scramble for their own barely functional version of AI Players! I’m calling it now because it’s fun to brag about later Even the description isn’t safe One of the things that I never understood is why are other servers copying our server description? Like, is it our server too? It first started happening with L2Aeron a long time ago, when I standardized how server descriptions should be formatted, and people copied the format. But this is on another level.           Can you be less imaginative and creative than that? We’ve already even changed our web, your web is outdated! Let’s see how much time before they adapt to our web’s changes. I don’t mind, do whatever, I just think it’s sad that you have no original thoughts to offer to your community. How many days before admins start posting daily with cool images? We’re flattered by the imitation, but remember that copying us can never replicate the heart and soul of our server. Our community is unique, and it’s built on the trust we share. Good luck creating trust copying others. So, when you see imitations, take pride in the fact that they’re inspired by the best. We’ll keep innovating and leading the way, setting standards for others to follow. Soon there will be more legit servers than scam servers. Watch us closely transform the Lineage 2 Scene with our success. We want everyone to copy our values. We want a better Lineage 2 Private Servers scene. Thank you for being a part of our extraordinary community.
    • Greetings, dear friends   Just passing by to show you this gem.   I've written these words on my webpage. Scam servers are using it as their server description.   It's not just ONE server! It's more and more servers copying.   Can we please stop supporting scam servers? Thank you!  
    • i dont understand the part with skill 7030 as the skill in config is 2046 why we put the parameter isagathion in 7030 skill id?  
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock