Jump to content

Recommended Posts

Posted

Config for Enable/Disable GM's from receive PvP or PK Points.

 

Index: trunk/L2jLive_GameServer/java/com/l2jserver/Config.java
===================================================================
--- /tmp/svn_fs20100723-29611-1pwj9a7-0	Fri Jul 23 15:20:08 2010
+++ /tmp/svn_fs20100723-29611-1ohlj7v-0	Fri Jul 23 15:20:08 2010
@@ -238,6 +238,7 @@
	public static boolean ENABLE_BOTREPORT;
	public static boolean ENABLE_PVP_HERO_SYSTEM;
	public static int PVP_HERO_SYSTEM_AMOUNT;
+	public static boolean GM_CAN_RECEIVE_PVP_PK_POINTS;

	/** ************************************************** **/
	/**                 L2jLive Settings End               **/
@@ -2050,6 +2051,7 @@
					GM_SKILL_RESTRICTION = Boolean.parseBoolean(General.getProperty("GMSkillRestriction", "True"));
					GM_TRADE_RESTRICTED_ITEMS = Boolean.parseBoolean(General.getProperty("GMTradeRestrictedItems", "False"));
					GM_RESTART_FIGHTING = Boolean.parseBoolean(General.getProperty("GMRestartFighting", "True"));
+					GM_CAN_RECEIVE_PVP_PK_POINTS = Boolean.parseBoolean(General.getProperty("GMCanReceivePvPPKPoints", "True"));
					BYPASS_VALIDATION = Boolean.parseBoolean(General.getProperty("BypassValidation", "True"));
					GAMEGUARD_ENFORCE = Boolean.parseBoolean(General.getProperty("GameGuardEnforce", "False"));
					GAMEGUARD_PROHIBITACTION = Boolean.parseBoolean(General.getProperty("GameGuardProhibitAction", "False"));

Index: trunk/L2jLive_GameServer/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- /tmp/svn_fs20100723-29611-1w64ebg-0	Fri Jul 23 15:20:08 2010
+++ /tmp/svn_fs20100723-29611-1kvmpfw-0	Fri Jul 23 15:20:08 2010
@@ -308,7 +308,7 @@
	// Character PremiumService String Definitions:
	private static final String INSERT_PREMIUMSERVICE = "INSERT INTO account_premium (account_name,premium_service,enddate) values(?,?,?)";
	private static final String RESTORE_PREMIUMSERVICE = "SELECT premium_service,enddate FROM account_premium WHERE account_name=?";
-	private static final String	UPDATE_PREMIUMSERVICE = "UPDATE account_premium SET premium_service=?,enddate=? WHERE account_name=?";
+	private static final String UPDATE_PREMIUMSERVICE = "UPDATE account_premium SET premium_service=?,enddate=? WHERE account_name=?";

	public static final int REQUEST_TIMEOUT = 15;
	public static final int STORE_PRIVATE_NONE = 0;
@@ -5888,6 +5888,9 @@
			if (CTF._started && _inEventCTF)
				return;

+			if (Config.GM_CAN_RECEIVE_PVP_PK_POINTS && isGM())
+				return;
+			
			// Add karma to attacker and increase its PK counter
			setPvpKills(getPvpKills() + 1);

@@ -5908,6 +5911,9 @@
		if (CTF._started && _inEventCTF)
			return;

+		if (Config.GM_CAN_RECEIVE_PVP_PK_POINTS && isGM())
+			return;
+
		int baseKarma           = Config.KARMA_MIN_KARMA;
		int newKarma            = baseKarma;
		int karmaLimit          = Config.KARMA_MAX_KARMA;
@@ -14721,7 +14727,7 @@
	 */
	public void setPvpColor()
	{
-		if (Config.PVP_COLOR_SYSTEM && _pvpKills >= Config.PVP_COLOR_SYSTEM_PVP_AMOUNT1 && !isGM())
+		if (!isGM() && !isDonator() && Config.PVP_COLOR_SYSTEM && _pvpKills >= Config.PVP_COLOR_SYSTEM_PVP_AMOUNT1)
		{
			if (_pvpKills >= Config.PVP_COLOR_SYSTEM_PVP_AMOUNT1 && _pvpKills < Config.PVP_COLOR_SYSTEM_PVP_AMOUNT2)
			{

Index: trunk/L2jLive_GameServer/java/config/General.properties
===================================================================
--- /tmp/svn_fs20100723-29611-1fyvnbd-0	Fri Jul 23 15:20:08 2010
+++ /tmp/svn_fs20100723-29611-rx9m9u-0	Fri Jul 23 15:20:08 2010
@@ -75,6 +75,10 @@
# Default: True
GMRestartFighting = True

+# Allow GM's to receive PvP/PK Points.
+# Default: True
+GMCanReceivePvPPKPoints = True
+
# ---------------------------------------------------------------------------
# Server Security
# ---------------------------------------------------------------------------

 

Credit to L2jLive

Posted

of course it's from timeline i write the credits of L2jLive...

 

btw why is useless?

 

 

 

this option as it is have no point to be in any pack no usefull way to use

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

    • if you are sending him clients i have no words mate that means you know him.
    • Looking to hire a skilled L2J developer or team to build a custom private server for solo play with advanced server-side AI bots. This is NOT for public launch — just a self-hosted project where I can simulate a full L2 experience alone or with a few friends. 🔹 What I Need A private L2J server ( High Five preferred, newer versions can work as well) with bots that: Farm 24/7 on their own (solo or in bot parties) Can be invited into party and follow basic orders (attack, follow, res, heal, etc.) Are able to join Olympiad, fight with proper logic (per class), and rank up Can coordinate for Raid Bosses (check spawn, move, assist, heal, DPS, etc.) Act like real players: town routines, rebuffing, restocking, even chatting if possible Have different roles: tanks, healers, nukers, archers, etc. Can interact through simple in-game commands or NPC interface 🔹 Your Job Set up the server and geodata Integrate a scalable bot system (written in Java or scriptable) Write clean, modular AI behavior (farming, PvP, party play, raid logic, etc.) Allow me to control/assign bots easily (in-game or config) Bonus: basic UI or GM panel for bot config 🔹 Payment Serious budget for serious work PayPal, crypto, or preferred method Project-based or hourly, negotiable Milestone-based OK 🔹 Contact Send me: Your experience with L2J or similar projects Any bot/AI systems you've built before Estimated timeframe Pricing expectations
    • Yeah, it’s wild how much gambling has changed. When I was growing up, even scratch-off tickets felt like a big thing, but now with so many casino apps and betting sites, it’s just everywhere. I know a few people who got caught up in online slots during lockdown and really struggled to stop, just because it was always on their phone.   I stick to in-game stuff like skin trading for games like CS2 or Dota, which to me feels less risky, especially if you know the value of the items. If you’re curious how these trades work or want to see some guides, just visit website—there’s a lot of info about trading without real gambling involved.
  • 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