Jump to content

Recommended Posts

Posted

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%

 

With the following you can stop people from receiving exp & sp after lvl 85.

Index: I:/workspace/L2_GameServer/java/com/l2jserver/gameserver/model/actor/L2Attackable.java
===================================================================
--- I:/workspace/L2_GameServer/java/com/l2jserver/gameserver/model/actor/L2Attackable.java	(revision 4250)
+++ I:/workspace/L2_GameServer/java/com/l2jserver/gameserver/model/actor/L2Attackable.java	(working copy)
@@ -704,7 +704,7 @@
							}

							// Distribute the Exp and SP between the L2PcInstance and its L2Summon
-							if (!attacker.isDead())
+							if (!attacker.isDead() && attacker.getLevel() <= 85)
							{
								long addexp = Math.round(attacker.calcStat(Stats.EXPSP_RATE, exp, null, null));
								int addsp = (int)attacker.calcStat(Stats.EXPSP_RATE, sp, null, null);

Posted

LOOOOOOOOOOOOOOL Awesome +1 From me

btw i dont like gracia client but i will test this right now :)

wait for test results :D

Posted

LOOOOOOOOOOOOOOL Awesome +1 From me

btw i dont like gracia client but i will test this right now :)

wait for test results :D

LOL? wtf? Nice idea! Thanks. I am wating feedback.

 

Thanks guys, i really appreciate your words.

 

It's made in gracia l2jserver core but it will work on any other client.

Posted

Thanks guys, i really appreciate your words.

 

It's made in gracia l2jserver core but it will work on any other client.

you mean will be work in IL?
Posted

you mean will be work in IL?

Sure! Just the Config.java is not the same with gracia, so you can't apply the patch.

 

All the other besides the Config are the same for IL.

Posted

its not  smth new,

l2racesupremacy have this features from years.

 

lol gz for a "perfect copy"

im sure you are crazy look the patch!!!!is copy? are you sure?
Posted

its not  smth new,

l2racesupremacy have this features from years.

 

lol gz for a "perfect copy"

I never copied anything from your server, never played your server, never heard of your server.

 

Thanks for all your comments, i love you all 8)

Posted

So easy for you, but fascinating lool! 100 lvl maximum, sounds extremely nice!

 

ah the idea was your right  ?

ahhhah

 

grow up

 

The fact that you got the idea first, has nothing to do with fakoy's code.

If I code special name colours (for example), and your server uses this faction, it means that I have copied your code or your idea? :o

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • Hello guys, I’m Morientes, owner of the servers you might know: L2Lionna / L2Pandora / L2Ramona / L2ERA / L2Zaken / L2Classic / L2Peri / L2Alice / L2EVA / L2Dragon and more. Over the years I’ve been developing Lineage II projects starting from High Five, then Classic, and later Essence. I started with High Five, which I turned into a very well-tested server with over 100 openings. My peak was around 2800 players online, and the server was stable (no crashes). With every opening there was always something to improve, fix, or optimize, and over time it became more and more stable. I still have all SVN commits from all those years, I can show everything via screen share if needed. The reason I’m selling is not because of the quality. The files are solid and ready to run any type of server (any rates). The problem was on our side;  we didn’t have a good long-term strategy for reopening servers as a team. About Classic: I started from 2.0 (Zaken version) and gradually upgraded it up to 4.7 Kamael. Each chronicle upgrade came with a lot of improvements, especially in terms of stability. About Essence: I started from the very first version and developed it up to High Elf (Protocol 464). Starting from Protocol 286 (Secrets of Empire), I worked with PTS files and extracted a lot of deep fixes. I unpacked AI.obj with full functionality, used official sniffers, and whenever something wasn’t clear, I checked directly on official servers and sniffed packets or data. For every chronicle update, I basically sniffed the entire official server, zones, monsters, events, mechanics, everything. From Chronicle 388, Reborn approached us to buy our files. The current L2Reborn Essence is based on my work! I can prove everything. I also have their updates integrated into my pack. I stopped development after High Elf mainly because my main developer was constantly looking for other opportunities. It became difficult to maintain a stable team, especially with everything going on (including the situation in Ukraine at that time). Eventually, I couldn’t find a reliable dev to continue working on Essence, so I decided to step away from this market last year. Now I’ve decided to sell everything. What I’m selling: All necessary tools (sniffing, geodata build, pack upgrade tools, game client parsers, L2Wiki parser, interfaces etc.) Full SVN repositories with all commits (Essence / Classic / High Five) All edited clients I still have All my data I can also include on sell an official character that is active daily, ranked, end up gear, and has access to end-game zones!!! useful for deep sniffing where normal players don’t have access. If someone wants to buy everything, I prefer a full deal and I will transfer full ownership. If needed, I can also sell parts separately, but honestly I’d prefer to sell everything to one team that can continue this project — this has been my work, my hobby, my baby. Important: I don’t offer further updates. The files are sold exactly as they are. I will, of course, explain everything you need to know to continue working on them. Contact: Telegram: @AlexAlexey Discord: .primsl2
    • Grand Opening: April 11, 2026 Website: https://l2strive.com Discord: https://discord.gg/SsUARZpbkG   🛡️ Server Rates Strive is a High Five Mid-PvP/Craft Server  Experience (XP): x15 Skill Points (SP): x15 Adena: x10 Drop: x15 Spoil: x3 Safe Enchant: +3 Max Enchant: +16 ⚔️ Enhanced Boss Jewelry     ⚔️ Making Bosses Useful Again Let’s be real: usually, Core, Orfen, and Baylor are just placeholder bosses that nobody cares about. We’ve overhauled their jewelry to make them legit end-game gear. We’ve turned these into high-value targets for PvP—if you want these massive percentage boosts, you’re going to have to fight for them.   ⚔️ Enhanced Boss Jewelry   💍 Improved Ring of Core Base Stats: M.Def 48 | HP +445 | MP +21 Offensive: P. Atk +12% | M. Atk +12% Critical: Physical Critical Rate +14 | Magic Critical Rate +2 Utility: Skill Reuse Delay -10% | MP Consumption -5% 🛡️ Improved Earring of Orfen Base Stats: M.Def 71 | MP +31 Defensive: P. Def +15% | M. Def +15% Recovery: Vampiric Rage +4% | Healing Received +6% Resistances: Bleed / Poison / Root / Sleep +20% (Chance & Resistance) 💎 Baylor's Earring Base Stats: M.Def 71 | MP +31 Speed: Atk. Spd +5% | Casting Spd +5% Combat: MP Regeneration +5% Resistances: Stun / Paralyze +30% (Chance & Resistance) 🚀 Core Features Full & Enchanted Buffs: Enjoy 6-hour durations on all standard and enchanted buffs. Premium Buffs: Premium users benefit from extended 9-hour buff durations. 100% Free AutoFarm: Built-in system for seamless progression while away from your PC. Custom Shop: Professional and intuitive UI for all essential equipment and consumables. NPC Buffer: Full scheme support to get you battle-ready instantly. Stability: Dedicated high-performance hardware with professional Anti-DDoS protection.  
    • Hello,   im looking for c4 client developer that can fix some issues, missing icons etc. if you are l2off developer then even better.   its easy ones, fix few skill icons, item icon, easy money if someone has time. I guess its lack of files in my patch, but might be smth other   contact with me on discord: endART_#6190 @DumanisT @SkyLord @XManton @Fr3DBr @mjst @Sighed any ideas who could help me XD
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..