Jump to content

[Share] PvP System with 12 Color Options


Recommended Posts

I looked like that do not contain options for the Player's owner put the Server qauntidade of Pvp's what he wanted to change the color, I decided to post my private use, remembering only PvP that works

I think for any version

Index: /java/config/pvp.properties
===================================================================
--- /java/config/pvp.properties   (revision 2771)
+++ /java/config/pvp.properties   (working copy)
+
+# ---------------------------------------
+# Section: PvP Name Color Change System by Slayer
+# ---------------------------------------
+# 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 = false
+
+# 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 = 1500
+ColorForAmount3 = 00FF00
+
+# Pvp Amount & Name color level 4.
+PvpAmount4 = 2500
+ColorForAmount4 = 00FF00
+
+# Pvp Amount & Name color level 5.
+PvpAmount5 = 3000
+ColorForAmount5 = 00FF00
+
+# Pvp Amount & Name color level 6.
+PvpAmount6 = 3500
+ColorForAmount6 = 00FF00
+
+# Pvp Amount & Name color level 7.
+PvpAmount7 = 4000
+ColorForAmount7 = 00FF00
+
+# Pvp Amount & Name color level 8.
+PvpAmount8 = 4500
+ColorForAmount8 = 00FF00
+
+# Pvp Amount & Name color level 9.
+PvpAmount9 = 5000
+ColorForAmount9 = 00FF00
+
+# Pvp Amount & Name color level 10.
+PvpAmount10 = 5500
+ColorForAmount10 = 00FF00
+
+# Pvp Amount & Name color level 11.
+PvpAmount11 = 6000
+ColorForAmount11 = 00FF00
+
+# Pvp Amount & Name color level 12.
+PvpAmount12 = 6500
+ColorForAmount12 = 00FF00
Index: /java/com/it/br/Config.java
===================================================================
--- /java/com/it/br/Config.java	(revision 2771)
+++ /java/com/it/br/Config.java	(working copy)
   public static boolean DEFAULT_PK_SYSTEM;
   public static boolean CUSTOM_PK_SYSTEM;
+    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 PVP_AMOUNT11;
+    public static int PVP_AMOUNT12;
+    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 NAME_COLOR_FOR_PVP_AMOUNT11;
+    public static int NAME_COLOR_FOR_PVP_AMOUNT12;
@@ -1783,7 +1805,34 @@
				DEFAULT_PK_SYSTEM = Boolean.parseBoolean(pvpSettings.getProperty("UseDefaultSystem", "True"));
				CUSTOM_PK_SYSTEM = Boolean.parseBoolean(pvpSettings.getProperty("UseCustomSystem", "False"));
+                // PVP Name Color System configs - Start
+                PVP_COLOR_SYSTEM_ENABLED = Boolean.parseBoolean(pvpSettings.getProperty("EnablePvPColorSystem", "false"));
+                PVP_AMOUNT1 = Integer.parseInt(pvpSettings.getProperty("PvpAmount1", "500"));
+                PVP_AMOUNT2 = Integer.parseInt(pvpSettings.getProperty("PvpAmount2", "1000"));
+                PVP_AMOUNT3 = Integer.parseInt(pvpSettings.getProperty("PvpAmount3", "1500"));
+                PVP_AMOUNT4 = Integer.parseInt(pvpSettings.getProperty("PvpAmount4", "2500"));
+                PVP_AMOUNT5 = Integer.parseInt(pvpSettings.getProperty("PvpAmount5", "3000"));
+                PVP_AMOUNT6 = Integer.parseInt(pvpSettings.getProperty("PvpAmount6", "3500"));
+                PVP_AMOUNT7 = Integer.parseInt(pvpSettings.getProperty("PvpAmount7", "4000"));
+                PVP_AMOUNT8 = Integer.parseInt(pvpSettings.getProperty("PvpAmount8", "4500"));
+                PVP_AMOUNT9 = Integer.parseInt(pvpSettings.getProperty("PvpAmount9", "5000"));
+                PVP_AMOUNT10 = Integer.parseInt(pvpSettings.getProperty("PvpAmount10", "5500"));
+                PVP_AMOUNT11 = Integer.parseInt(pvpSettings.getProperty("PvpAmount11", "6000"));
+                PVP_AMOUNT12 = Integer.parseInt(pvpSettings.getProperty("PvpAmount12", "6500"));
+                NAME_COLOR_FOR_PVP_AMOUNT1 = Integer.decode("0x" + pvpSettings.getProperty("ColorForAmount1", "00FF00"));
+                NAME_COLOR_FOR_PVP_AMOUNT2 = Integer.decode("0x" + pvpSettings.getProperty("ColorForAmount2", "00FF00"));
+                NAME_COLOR_FOR_PVP_AMOUNT3 = Integer.decode("0x" + pvpSettings.getProperty("ColorForAmount3", "00FF00"));
+                NAME_COLOR_FOR_PVP_AMOUNT4 = Integer.decode("0x" + pvpSettings.getProperty("ColorForAmount4", "00FF00"));
+                NAME_COLOR_FOR_PVP_AMOUNT5 = Integer.decode("0x" + pvpSettings.getProperty("ColorForAmount5", "00FF00"));
+                NAME_COLOR_FOR_PVP_AMOUNT6 = Integer.decode("0x" + pvpSettings.getProperty("ColorForAmount6", "00FF00"));
+                NAME_COLOR_FOR_PVP_AMOUNT7 = Integer.decode("0x" + pvpSettings.getProperty("ColorForAmount7", "00FF00"));
+                NAME_COLOR_FOR_PVP_AMOUNT8 = Integer.decode("0x" + pvpSettings.getProperty("ColorForAmount8", "00FF00"));
+                NAME_COLOR_FOR_PVP_AMOUNT9 = Integer.decode("0x" + pvpSettings.getProperty("ColorForAmount9", "00FF00"));
+                NAME_COLOR_FOR_PVP_AMOUNT10 = Integer.decode("0x" + pvpSettings.getProperty("ColorForAmount10", "00FF00"));
+                NAME_COLOR_FOR_PVP_AMOUNT11 = Integer.decode("0x" + pvpSettings.getProperty("ColorForAmount11", "00FF00"));
+                NAME_COLOR_FOR_PVP_AMOUNT12 = Integer.decode("0x" + pvpSettings.getProperty("ColorForAmount12", "00FF00"));
+                // PvP Name Color System configs - End
Index: /java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- /java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java   (revision 2771)
+++ /java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java   (working copy)
		activeChar.sendPacket(new QuestList());
       loadTutorial(activeChar);
+
+		// =================================================================================
+		// Color System checks - Start =====================================================
+		// Check if the custom PvP and PK color systems 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 =======================================================
+		// =================================================================================
+
Index: /java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- /java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java   (revision 2771)
+++ /java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java   (working copy)
@@ -3915,7 +3915,75 @@
           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);
+            }
+            else if ((pvpKillAmount >= (Config.PVP_AMOUNT2)) && (pvpKillAmount < (Config.PVP_AMOUNT3)))
+            {
+               getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT2);
+            }
+            else if ((pvpKillAmount >= (Config.PVP_AMOUNT3)) && (pvpKillAmount < (Config.PVP_AMOUNT4)))
+            {
+               getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT3);
+            }
+            else if ((pvpKillAmount >= (Config.PVP_AMOUNT4)) && (pvpKillAmount < (Config.PVP_AMOUNT5)))
+            {
+               getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT4);
+            }
+            else if ((pvpKillAmount >= (Config.PVP_AMOUNT5)) && (pvpKillAmount < (Config.PVP_AMOUNT6)))
+            {
+               getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT5);
+            }
+            else if ((pvpKillAmount >= (Config.PVP_AMOUNT6)) && (pvpKillAmount < (Config.PVP_AMOUNT7)))
+            {
+               getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT6);
+            }
+            else if ((pvpKillAmount >= (Config.PVP_AMOUNT7)) && (pvpKillAmount < (Config.PVP_AMOUNT8)))
+            {
+               getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT7);
+            }
+            else if ((pvpKillAmount >= (Config.PVP_AMOUNT8)) && (pvpKillAmount < (Config.PVP_AMOUNT9)))
+            {
+               getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT8);
+            }
+            else if ((pvpKillAmount >= (Config.PVP_AMOUNT9)) && (pvpKillAmount < (Config.PVP_AMOUNT10)))
+            {
+               getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT9);
+            }
+            else if ((pvpKillAmount >= (Config.PVP_AMOUNT10)) && (pvpKillAmount < (Config.PVP_AMOUNT11)))
+            {
+               getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT10);
+            }
+            else if ((pvpKillAmount >= (Config.PVP_AMOUNT11)) && (pvpKillAmount < (Config.PVP_AMOUNT12)))
+            {
+               getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT11);
+            }
+            else if (pvpKillAmount >= (Config.PVP_AMOUNT12))
+            {
+               getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT12);
+            }
+          }
+       }
+    }
+    //Custom PVP Color System - End
+
@@ -5265,7 +5333,11 @@
    {
        // Add karma to attacker and increase its PK counter
        setPvpKills(getPvpKills() + 1);
+
+        //Update the character's name color if they reached any of the 12 PvP levels.
+        updatePvPColor(getPvpKills());
+        broadcastUserInfo();
+

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...

If you want to share an unique pvp color system, make it with arrays, don't share with more, let the admin decide how many pvp colors he wants. It's not difficult.

Link to comment
Share on other sites

Show me one that contains the options that the administrator can choose the amount of PvP, then I delete my Post

 

+# Pvp Amount & Name color level 2.

+PvpAmount2 = 1000          <<<<<<<<<<<< Required amount of PVP can be easily changed.

+ColorForAmount2 = 00FF00

Link to comment
Share on other sites

Show me one that contains the options that the administrator can choose the amount of PvP, then I delete my Post

 

+# Pvp Amount & Name color level 2.

+PvpAmount2 = 1000          <<<<<<<<<<<< Required amount of PVP can be easily changed.

+ColorForAmount2 = 00FF00

Hmm, Mr.Clever, that's my point... THERE IS NOT SUCH SHARE. And if you just think a bit, not difficult, just think, you will be able to make it and share it, so it will be useful. And there are shares that admin can choose the amount of pvps, but now as many colors/pvps as they want.

Link to comment
Share on other sites

Since there is no action?

If it is used by me, and I have no problems,

I put 300, 1000, when it reached the 1 billion amount

he changed the color.

Omg you don't understand... Anyway...

Link to comment
Share on other sites

~ ~ Olympus BR'm sorry man because there is no translation was the understanding that you were criticizing, the more I read again when I realized my error sorry.

 

What errors he accuses you? Post to us, because I use this MOD at a good time and no mistake.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • 2 Factor Authentication Code for 100% secure login. Account provided with full information (email, password, dob, gender, etc).
    • ready server for sale, also available for testing with ready and beautiful npc zone pvp with custom 2 epic core orfen lvl2 with all maps ready all quests work at 100% ready comm  board with buffer teleport gm shop service anyone interested send me a pm many more that I forget  Exp/Sp : x30 (Premium: x40)    Adena : x7 (Premium: x10)   Drop : x7 (Premium: 10)   Spoil : x7 (Premium: 10)   Seal Stones : x7 (Premium: 10)   Raid Boss EXP/SP : x10   Raid Boss Drop : x3 (Premium: x5)   Epic Boss Drop : x1 Enchants   Safe Enchant : +3   Max Enchant : +16   Normal Scroll of Enchant Chance : 55%   Blessed Scroll of Enchant Chance : 60% Game Features   GMShop (Max. B-Grade)   Mana Potions (1000 MP, 10 sec Cooldown)   NPC Buffer (Include all buffs, 2h duration)   Auto-learn skills (Except Divine Inspiration)   Global Gatekeeper   Skill Escape: 15 seconds or /unstuck   1st Class Transfer (Free)   2nd Class Transfer (Free)   3rd Class Transfer (700 halisha mark)   Subclass (Items required from Cabrio / Hallate / Kernon / Golkonda + Top B Weapon + 984 Cry B)   Subclass 5 Subclasses + Main (Previous subclasses to level 75 to add new one)   Noblesse (Full Retail Quest)   Buff Slots: 24 (28 with Divine Inspiration LVL 4)   Skill Sweeper Festival added (Scavenger level 36)   Skill Block Buff added   Maximum delevel to keep Skills: 10 Levels   Shift + Click to see Droplist   Global Shout & Trade Chat   Retail Geodata and Pathnodes   Seven Signs Retail   Merchant and Blacksmith of Mammon at towns   Dimensional Rift (Min. 3 people in party to enter - Instance)   Tyrannosaurus drop Top LS with fixed 50% chance   Fast Augmentation System (Using Life Stones from Inventory)   Chance of getting skills (Normal 1%, Mid 3%, High 5%, Top 10%)   Wedding System with 30 seconds teleport to husband/wife Olympiad & Siege   Olympiad circle 14 days. (Maximum Enchant +6)   Olympiads time 18:00 - 00:00 (GMT +3)   Non-class 5 minimum participants to begin   Class based disabled   Siege every week.   To gain the reward you need to keep the Castle 2 times. Clans, Alliances & Limits   Max Clients/PC: 2   Max Clan Members: 36   Alliances allowed (Max 1 Clans)   24H Clan Penalties   Alliance penalty reset at daily restart (3-5 AM)   To bid for a Clan Hall required Clan Level 6 Quests x3   Alliance with the Ketra Orcs   Alliance with the Varka Silenos   War with Ketra Orcs   War with the Varka Silenos   The Finest Food   A Powerful Primeval Creature   Legacy of Insolence   Exploration of Giants Cave Part 1   Exploration of Giants Cave Part 2   Seekers of the Holy Grail   Guardians of the Holy Grail   Hunt of the Golden Ram Mercenary Force   The Zero Hour   Delicious Top Choice Meat   Heart in Search of Power   Rise and Fall of the Elroki Tribe   Yoke of the Past     Renegade Boss (Monday to Friday 20:00)   All Raid Boss 18+1 hours random respawn   Core (Jewel +1 STR +1 DEX) Monday, Wednesday and Friday 20:00 - 21:00 (Maximum level allowed to enter Cruma Tower: 80)   Orfen (Jewel +1 INT +1 WIT) Monday to Friday, 20:00 - 21:00 (Maximum level allowed to enter Sea of Spores: 80)   Ant Queen Monday and Friday 21:00 - 22:00 (Maximum level allowed to enter Ant Nest: 80)   Zaken Monday,Wednesday,Friday 22:00 - 23:00 (Maximum level allowed to enter Devil's Isle: 80)   Frintezza Tuesday, Thursday and Sunday 22:00 – 23:00 (Need CC of 4 party and 7 people in each party min to join the lair, max is 8 party of 9 people each)   Baium (lvl80) Saturday 22:00 – 23:00   Antharas Every 2 Saturdays 22:00 - 23:00 Every 2 Sundays (alternating with Valakas) 22:00 – 23:00   Valakas Every 2 Saturdays 22:00 - 23:00 Every 2 Sundays (alternating with Antharas) 22:00 – 23:00   Subclass Raids (Cabrio, Kernon, Hallate, Golkonda) 18hours + 1 random   Noblesse Raid (Barakiel) 6 hours + 15min random   Varka’s Hero Shadith 8 hours + 30 mins random (4th lvl of alliance with Ketra)   Ketra’s Hero Hekaton 8 hours + 30 mins random (4th lvl of alliance with Varka)   Varka’s Commander Mos 8 hours + 30 mins random (5th lvl of alliance with Ketra)   Ketra’s Commander Tayr 8 hours + 30 mins random (5th lvl of alliance with Varka)
    • Have a great day! Unfortunately, we can not give you the codes at the moment, but they will be distributed as soon as trial is back online, thanks for understanding! Other users also can reply there for codes, we will send them out some time after.
    • Ok mates i would like to play a pridestyle server (interluide, gracie w/ever) Is there any such server online and worth playing?
  • 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