Jump to content

Recommended Posts

Posted

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);



 

Posted

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.

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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?

Guest
This topic is now closed to further replies.


  • Posts

    • what do u mean i want to change the normal weapons some weapons are working perftect some not getting th effect and the arcana has the effect above the weapons as u see ... i dont what is the probkenm
    • Stop paying for files that are already public and free. Here you can download a fully working Interlude server with C4-like gameplay, including source code so you can compile it yourself and verify everything. People will try to convince you that free releases are “broken”, “full of backdoors”, etc. That’s exactly why I’m also providing the SVN with the full source – so you can: Review the code yourself Remove / modify whatever you don’t like Compile your own binaries What’s included GX-EXT Interlude server (C4-style gameplay) – L2Off Client Interlude tweaked for C4 gameplay Public SVN with source code Downloads: Server GX-EXT: https://www.mediafire.com/file/q5ipkjd36tnhfxv/L2OFF_C4_C4_ACU_GXEXT.rar/file Client Interlude C4 Gameplay: https://www.mediafire.com/file/rdkfc8wwau042oh/Cliente_Interlude_Jugabilidad_C4.rar/file SVN (source code, delayed a couple of months to avoid reselling fresh work): https://svn.l2servers.com.ar/!/#GX-EXT_INTERLUDE User: gx Pass: gx How to compile To compile the source you will need: Visual Studio 2005 (x64 toolset) (Classic L2Off toolchain – yes, it’s old, but that’s what the original server uses.) Use this as you want: learn, test, open your own server, or just audit the code. But please, stop buying the same leaked/resold files over and over when you can get them here for free, with source, and actually know what you’re running.  
    • @GX-Ext Please reupload the pack+web+client because all the links inside that post or in the https://l2servers.com.ar/ are dead
    • Weapon dat is not the same for all, since you have custom things for sure no. You can contact @NevesOma
    • hello guys im facing a problem with the weapons .. i want to add hero glow on s weapons arcana ,dragonic bow etc.. some weapons are work peftect .. some not for example i add the line  LineageEffect.e_u092_h for fists and didnt work didnt even get the hero glow.. and the arcana the glow is on the top of weapon not down side like hero zeus mace any ideas?.. or does anybody has the weapongrp.dat file ready ?
  • 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