1

Topic: [Share] PvP Level System

I made this while i was bored, i haven't tested it, so if anyone can test it and reply would be really helpful.
What it does is rewarding players with levels from their pvps amount. I used levels from 85 to 100 but of course you can & should change them.

Idea=> you can increase the maximum level, allow the players to level up till 85 with mobs and then from 85 to 100 with this system.

Index: I:/workspace/L2_GameServer/java/config/pvp.properties
===================================================================
--- I:/workspace/L2_GameServer/java/config/pvp.properties    (revision 3645)
+++ I:/workspace/L2_GameServer/java/config/pvp.properties    (working copy)
@@ -57,4 +57,39 @@
 
 # Length one stays in PvP mode after hitting a purple player (in ms)
 # Default: 60000
-PvPVsPvPTime = 60000
\ No newline at end of file
+PvPVsPvPTime = 60000
+
+# Allow pvp level system, a system which awards players with levels from their pvps
+# system is auto enabled only after level 85 & 100%
+AllowPvPLevelSystem = false
+
+# Ammount for 1st level
+PvPLevelAmmount1 = 300
+# Ammount for 2nd level
+PvPLevelAmmount2 = 400
+# Ammount for 3nd level
+PvPLevelAmmount3 = 500
+# Ammount for 4th level
+PvPLevelAmmount4 = 600
+# Ammount for 5th level
+PvPLevelAmmount5 = 700
+# Ammount for 6th level
+PvPLevelAmmount6 = 800
+# Ammount for 7th level
+PvPLevelAmmount7 = 900
+# Ammount for 8th level
+PvPLevelAmmount8 = 1000
+# Ammount for 9th level
+PvPLevelAmmount9 = 1100
+# Ammount for 10th level
+PvPLevelAmmount10 = 1200
+# Ammount for 11th level
+PvPLevelAmmount11 = 1300
+# Ammount for 12th level
+PvPLevelAmmount12 = 1400
+# Ammount for 13th level
+PvPLevelAmmount13 = 1500
+# Ammount for 14th level
+PvPLevelAmmount14 = 1600
+# Ammount for 15th level
+PvPLevelAmmount15 = 2000
\ No newline at end of file
Index: I:/workspace/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- I:/workspace/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java    (revision 3645)
+++ I:/workspace/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java    (working copy)
@@ -5656,6 +5656,96 @@
     }
 
     /**
+     * PvP counts as xp after level 85.
+     *
+     */
+    public void  increaseLevelFromPvPs(int pvpKills)
+    {
+        if (getLevel() <= 85)
+            return;
+        {
+            if (Config.ALLOW_PVP_LEVEL_SYSTEM && getLevel() >= 86 && getLevel() < 101)
+            {
+                if ((getLevel() == 86 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT1)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT2)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT1 +" pvps and leveled up!");
+                }
+                else if ((getLevel() == 87 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT2)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT3)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT2 +" pvps and leveled up!");
+                }
+                else if ((getLevel() == 88 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT3)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT4)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT3 +" pvps and leveled up!");
+                }
+                else if ((getLevel() == 89 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT4)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT5)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT4 +" pvps and leveled up!");
+                }
+                else if ((getLevel() == 90 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT5)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT6)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT5 +" pvps and leveled up!");
+                }
+                else if ((getLevel() == 91 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT6)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT7)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT6 +" pvps and leveled up!");
+                }
+                else if ((getLevel() == 92 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT7)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT8)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT7 +" pvps and leveled up!");
+                }
+                else if ((getLevel() == 93 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT8)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT9)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT8 +" pvps and leveled up!");
+                }
+                else if ((getLevel() == 94 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT9)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT10)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT9 +" pvps and leveled up!");
+                }
+                else if ((getLevel() == 95 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT10)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT11)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT10 +" pvps and leveled up!");
+                }
+                else if ((getLevel() == 96 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT11)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT12)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT11 +" pvps and leveled up!");
+                }
+                else if ((getLevel() == 97 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT12)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT13)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT12 +" pvps and leveled up!");
+                }
+                else if ((getLevel() == 98 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT13)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT14)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT13 +" pvps and leveled up!");
+                }
+                else if ((getLevel() == 99 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT14)) && (pvpKills < (Config.PVP_LEVEL_AMMOUNT15)))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT14 +" pvps and leveled up!");
+                }
+                else if (getLevel() == 100 && pvpKills >= (Config.PVP_LEVEL_AMMOUNT15))
+                {
+                    addExpAndSp(Experience.LEVEL[getLevel() + 1], 0);
+                    sendMessage("You reached " + Config.PVP_LEVEL_AMMOUNT15 +" pvps and leveled up!");
+                }
+            }
+        }
+    }
+    
+    /**
      * Increase the pvp kills count and send the info to the player
      *
      */
@@ -5664,6 +5754,9 @@
         // Add karma to attacker and increase its PK counter
         setPvpKills(getPvpKills() + 1);
 
+        increaseLevelFromPvPs(getPvpKills());
+        broadcastUserInfo();
+        
         // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
         sendPacket(new UserInfo(this));
         sendPacket(new ExBrExtraUserInfo(this));
Index: I:/workspace/L2_GameServer/java/net/sf/l2j/Config.java
===================================================================
--- I:/workspace/L2_GameServer/java/net/sf/l2j/Config.java    (revision 3645)
+++ I:/workspace/L2_GameServer/java/net/sf/l2j/Config.java    (working copy)
@@ -793,6 +793,24 @@
     public static String DATAPACK_VERSION;
     public static int PVP_NORMAL_TIME;
     public static int PVP_PVP_TIME;
+    public static boolean ALLOW_PVP_LEVEL_SYSTEM;
+    public static int PVP_LEVEL_AMMOUNT1;
+    public static int PVP_LEVEL_AMMOUNT2;
+    public static int PVP_LEVEL_AMMOUNT3;
+    public static int PVP_LEVEL_AMMOUNT4;
+    public static int PVP_LEVEL_AMMOUNT5;
+    public static int PVP_LEVEL_AMMOUNT6;
+    public static int PVP_LEVEL_AMMOUNT7;
+    public static int PVP_LEVEL_AMMOUNT8;
+    public static int PVP_LEVEL_AMMOUNT9;
+    public static int PVP_LEVEL_AMMOUNT10;
+    public static int PVP_LEVEL_AMMOUNT11;
+    public static int PVP_LEVEL_AMMOUNT12;
+    public static int PVP_LEVEL_AMMOUNT13;
+    public static int PVP_LEVEL_AMMOUNT14;
+    public static int PVP_LEVEL_AMMOUNT15;
     public static enum IdFactoryType
     {
         Compaction,
@@ -2454,6 +2472,24 @@
 
         else if (pName.equalsIgnoreCase("PvPVsNormalTime")) PVP_NORMAL_TIME = Integer.parseInt(pValue);
         else if (pName.equalsIgnoreCase("PvPVsPvPTime")) PVP_PVP_TIME = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("AllowPvPLevelSystem")) ALLOW_PVP_LEVEL_SYSTEM = Boolean.parseBoolean(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount1")) PVP_LEVEL_AMMOUNT1 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount2")) PVP_LEVEL_AMMOUNT2 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount3")) PVP_LEVEL_AMMOUNT3 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount4")) PVP_LEVEL_AMMOUNT4 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount5")) PVP_LEVEL_AMMOUNT5 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount6")) PVP_LEVEL_AMMOUNT6 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount7")) PVP_LEVEL_AMMOUNT7 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount8")) PVP_LEVEL_AMMOUNT8 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount9")) PVP_LEVEL_AMMOUNT9 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount10")) PVP_LEVEL_AMMOUNT10 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount11")) PVP_LEVEL_AMMOUNT11 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount12")) PVP_LEVEL_AMMOUNT12 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount13")) PVP_LEVEL_AMMOUNT13 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount14")) PVP_LEVEL_AMMOUNT14 = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("PvPLevelAmmount15")) PVP_LEVEL_AMMOUNT15 = Integer.parseInt(pValue);
         else if (pName.equalsIgnoreCase("GlobalChat")) DEFAULT_GLOBAL_CHAT = pValue;
         else if (pName.equalsIgnoreCase("TradeChat")) DEFAULT_TRADE_CHAT = pValue;
         else if (pName.equalsIgnoreCase("GMAdminMenuStyle")) GM_ADMIN_MENU_STYLE = pValue;

Note: lvl 101 means 100 & 100%

http://www.hopzones.net/hopzones_banner.gif

2

Re: [Share] PvP Level System

In these PVP level system there are so many advance facilities are available in these system they can provide so many good facility which you can good to use. These level system is good to share with us.

Thumbs up Thumbs down

3

Re: [Share] PvP Level System

x0ax0a0x N00B

Thumbs up Thumbs down

4

Re: [Share] PvP Level System

I want to learn more about PVP that is why I am searching more and more about it. The information you have shared over here is really nice and informative. In these PVP level system there are so many advance facilities are available in these system they can provide so many good facility which you can good to use.

Thumbs up Thumbs down

5

Re: [Share] PvP Level System

The PvP system level facilities are available in advance many are available on these systems can provide the same ease that you can use sound. The system level is good to share with us.

Thumbs up Thumbs down

6

Re: [Share] PvP Level System

In these PVP level system there are so many advance facilities are available in these system they can provide so many good facility which you can good to use.

Thumbs up Thumbs down

7

Re: [Share] PvP Level System

In these PVP level system there are so many advance facilities are available in these system they can provide so many good facility which you can good to use. These is great to know about it.

Thumbs up Thumbs down

8

Re: [Share] PvP Level System

There are many PvP system level are available in advance for many of these systems, they can provide as good and awesome facilities you can use well.

Thumbs up Thumbs down

9

Re: [Share] PvP Level System

These all are one of the good facility and also really very awesome facilities these system is good to share with us. These all are one of the PVP system level these all are great to know about it.

Thumbs up Thumbs down

10

Re: [Share] PvP Level System

Ok, if I place it in so L2Attackable.java

if (!attacker.isDead() && (attacker.getLevel() <= 85 && Config.ALLOW_PVP_LEVEL_SYSTEM))

My char to lvl to go and wins Exp

and if I put in so L2Attackable.java:

if (!attacker.isDead() && attacker.getLevel() <= 85)

My char is only lvl and increase exp but not goin past lvl 85, sense he was to go to lvl 86.

Thumbs up Thumbs down

11

Re: [Share] PvP Level System

Hi Hz,

The mod is work for Freya rev plz?

Because I install the mod and nothing happens.  sad

Thumbs up Thumbs down

12

Re: [Share] PvP Level System

this is only for interlude servers. neutral

http://www.hopzones.net/hopzones_banner.gif

13

Re: [Share] PvP Level System

Admin-Hz wrote:

this is only for interlude servers. neutral

sniff , so too bad for me.  hmm

Thank for your answer Hz.

Thumbs up Thumbs down

14

Re: [Share] PvP Level System

I would like to learn more about the PVP, so I'm looking for more, more. Here you have the same information is very good and informative. The PvP system-level facilities provided in advance in many of these systems, while providing convenience, you can use sound.

Thumbs up Thumbs down

15

Re: [Share] PvP Level System

The information you shared here are really nice and informative. In these PvP system level there are facilities in advance for many are available in these systems, they can provide many great facilities that you can use.

Thumbs up Thumbs down

16

Re: [Share] PvP Level System

With this patch, you will be able to set the colors to an adjustable amount of pvp pk points.  Name changes color depending on your point of PVP and the title fade small spots.

Thumbs up Thumbs down

17

Re: [Share] PvP Level System

Again if you do not know how to be respected, or how to apply a patch that is not the right place for you! Get out of this and go find a guide to compling xD.

Thumbs up Thumbs down

18

Re: [Share] PvP Level System

PVP systems at these levels there are so many advanced facilities in these systems, they can provide a lot of good facilities, you're good to use. This is great to know it.

Thumbs up Thumbs down

19

Re: [Share] PvP Level System

The idea of player VS player PvP may be. It is more interesting and challenging whether it is a fair fight. The problem as I see from reading station is losing honor too compared to what can be gained in the same battle. As winner 200 honor gains, but lost loses 3000. Win/lose balance should be more equal.

Thumbs up Thumbs down

20

Re: [Share] PvP Level System

That one is fine to disclose with people here. I think that is the level of the system there are already Facilities to good use in pvp is a very nice efforts, they provide is available on this system.

Thumbs up Thumbs down

21

Re: [Share] PvP Level System

Once again..If you don't 'bilmek how to complie this isn't right for you, or how to apply a patch. To get over this subject and go find a guide for compling xD. L2J Forum Credits for sauron3256.

Thumbs up Thumbs down

22

Re: [Share] PvP Level System

In these PVP level process there's so lots of advance facilities are obtainable in these process they can provide so lots of nice facility which you can nice to make use of. These is great to know about it.

Thumbs up Thumbs down

23

Re: [Share] PvP Level System

Well I knew it is amid in Experience.java but i saw you said 'on the system', so I think it's also in Client side. Because if I set levels in Experience.java, it doesn't plan accurately for me. Anyway, thanks for the fast thanks and apologetic if it was annoying.

Thumbs up Thumbs down

24

Re: [Share] PvP Level System

In these PVP level process there's so plenty of advance facilities are obtainable in these process they can provide so plenty of lovely facility which you can lovely to make use of. These is great to know about it.

Thumbs up Thumbs down

25

Re: [Share] PvP Level System

These akin arrangement is acceptable to allotment with us..In these PVP akin arrangement there are so abounding beforehand accessories are accessible in these arrangement they can accommodate so abounding acceptable ability which you can acceptable to use.

Thumbs up Thumbs down