Jump to content

Recommended Posts

Posted

Today while i was bored and while watching people get dumb on facebook Krash talked to me and requested sth. Since i had nothing to do i made his request true :D

 

It's pretty simple, if a player get's a pvp in Jail and the system is enabled he gets a custom item. You can choose the id, the count and the name by configs ;)

 

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,13 @@

# 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
+
+# Enable the custom reward item in jail?
+JailRewardEnable = false
+# The custom item's id
+JailRewardID = 0
+# The count that should a player be rewarded on each pvp
+JailRewardCount = 1
+# The name of the custom item. Will be displayed as a message.
+JailRewardName = Jail Reward Item
\ 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)
@@ -5664,6 +5664,13 @@
        // Add karma to attacker and increase its PK counter
        setPvpKills(getPvpKills() + 1);

+        // if player isInJail and gets pvp reward the player with item
+        if(isInJail() && Config.JAIL_REWARD_ENABLE)
+        {
+        	addItem("Jail Reward Item", Config.JAIL_REWARD_ID, Config.JAIL_REWARD_COUNT, this, true);
+        	sendMessage("Good job! You just pwned " + getTarget() + " and got rewarded with " + Config.JAIL_REWARD_NAME);
+        }
+        
        // 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)
@@ -655,6 +655,10 @@
	public static String KARMA_NONDROPPABLE_ITEMS;
	public static int[] KARMA_LIST_NONDROPPABLE_PET_ITEMS;
	public static int[] KARMA_LIST_NONDROPPABLE_ITEMS;
+	public static boolean JAIL_REWARD_ENABLE;
+	public static int JAIL_REWARD_ID;
+	public static int JAIL_REWARD_COUNT;
+	public static String JAIL_REWARD_NAME;


	//--------------------------------------------------
@@ -2040,6 +2044,11 @@
					array = KARMA_NONDROPPABLE_ITEMS.split(",");
					KARMA_LIST_NONDROPPABLE_ITEMS = new int[array.length];

+					JAIL_REWARD_ENABLE = Boolean.parseBoolean(pvpSettings.getProperty("JailRewardEnable", "false"));
+					JAIL_REWARD_ID = Integer.parseInt(pvpSettings.getProperty("JailRewardID", "0"));
+					JAIL_REWARD_COUNT = Integer.parseInt(pvpSettings.getProperty("JailRewardCount", "0"));
+					JAIL_REWARD_NAME = pvpSettings.getProperty("JailRewardName", "Custom Item");
+					
					for (int i = 0; i < array.length; i++)
						KARMA_LIST_NONDROPPABLE_ITEMS[i] = Integer.parseInt(array[i]);

 

Once again i just made it and didn't test it. So if anyone of you tests it give feedback.

Posted

good share but i dont get it , ppl will go in jail and they will get reward too? xD

Just use your imagination, in many servers jail is a pvp zone.

 

For example in inf-skills if you say any bad word you go at jail for 10 minutes, there are other people too and you can fight them. You can make sth like that.

Posted

;D Good idea, but why should jailed people get anything?  They are here for a punishment, not for a reward. :D but thx i'll try it...

 

*sry for bad english...

Posted

obviously it is for servers that dont freeze players in jail. probably this motivates some ppl in order to spend som of their time until they expire their jail time

Posted

obviously it is for servers that dont freeze players in jail. probably this motivates some ppl in order to spend som of their time until they expire their jail time

also...

 

Just use your imagination, in many servers jail is a pvp zone.

 

For example in inf-skills if you say any bad word you go at jail for 10 minutes, there are other people too and you can fight them. You can make sth like that.

 

i think that's why Krash asked me to make this

Posted

Okay +1 for this shit..

 

Its really hard to be done withought having a proper knowledge

 

dont lie please.

 

atleast its funny it make the idiots to go into jail so every admin/gm have less work so yeah kinda funny xD

Posted

Bro Thnx A Lot :))

for me this is good share

and i like the idea

reward item when you kill someone in jail

Posted

Okay +1 for this shit..

 

Its really hard to be done withought having a proper knowledge

It's actually pretty simple but thanks a lot :)

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

    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Someone knows if there is a free download in some place for get it?. Thanks!
    • NEWS Elysian Realms   LINEAGE 2 PRIVATE PUBLIC SERVER A complete, optimized, and feature-rich Lineage 2 experience — ready to launch, play, and scale.  OVERVIEW Elysian Realms is a high-quality Lineage 2 private public server pack, crafted for stability, balance, and long-term gameplay enjoyment. Every system is preconfigured and battle-tested, allowing server owners to focus on community and growth rather than constant fixes. Whether you aim for classic nostalgia or a modern custom experience, Elysian Realms adapts to your vision. STABLE & SECURE CORE Performance-focused and scalable core High uptime & low latency Bug-free, smooth gameplay Designed for long-term server stability Your players stay focused on the world — not server issues.  CUSTOM FEATURES WITHOUT COMPROMISE Authentic Lineage 2 feeling enhanced with smart QoL systems:  Interface & Visuals Unique UI tweaks Custom skins, armors, weapons, tattoos & cloaks Special camera effects on death Color Choose Player system Vitality 16+ special armor effects  Gameplay Systems Balanced skills & stats (fully tested) Unique Rebirth Manager (Doll Skills) Dolls items with custom skills Rune XP Bonus system (XP / SP / Drop boosts) Auto Pots system (.menu) Buff cancel (5 sec return)  PVE & FARMING CONTENT Expanded PvE zones Solo farm zones (Top / Mid / Low LS) Tyrannosaurus addons with top LS drops Party Farm Event Dungeon Manager Top Farm Items Manager Global Drop System Farm Protection (Captcha) Solo & Zerg protection system  PVP & COMPETITIVE EVENTS Flag Raid Zones (PvP zones) PvP Top Player events + rewards Special PvP & PK rankings (spawned in Giran) Tournament events (x3 / x5 / x9) TvT & CTF Random 1vs1 Event Hero Boss Event System Race of Wars (Unique Event) Elysian Ultimate Zones – God Zone RAIDS & WORLD CONTENT Raid HP announcements Special Gatekeeper: Farm Zones PvP Zones Raid Zones Event Zones Party Farms Random Locations Flagged Raid Zones (PvP enabled) AUTOMATION & SMART SYSTEMS Auto Farm (VIP) Auto Gold Bar system Auto NPC announcements (Giran Town) Auto login & online record announcements Auto Vote system with global rewards Auto Zones Timed Items Dungeon Unique. REWARDS, PROGRESSION & ECONOMY Achievement Manager Mission System (Cafe Points + Random Rewards) Capsule Boxes. Top Boxes system with configurable rewards Roll Dice System (Lucky Manager x2 rewards) Donate Manager (clean & transparent) Auction Manager (extended icon support)  FULLY DOCUMENTED & DEVELOPER FRIENDLY Complete server & client documentation  MULTIVERSE-READY CORE Supports C4-style to High Five gameplay Multi-language support Scalable rates Modular scripts & systems One core. Endless possibilities.  DESIGNED FOR Indie server owners & developers Event & GvG organizers Modders & hobbyists Fans of classic & custom Lineage 2 PROVEN & BATTLE-TESTED Previously online with 100+ active players All systems tested in live environment Balanced for both PvE & PvP longevity ELYSIAN REALMS PHILOSOPHY Elysian Realms isn’t just a server pack — it’s a complete Lineage 2 ecosystem built for players and creators alike. Ready to enter the Elysian World? Launch. Customize. Dominate.   https://www.l2elysian.com/
  • 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..