Jump to content

Recommended Posts

Posted

WARNING! Do not try it for now, wait until it's fixed.

 

Not my style to make smth simple as this and share it.. but other ppl might find it useful :P

This code dose exactly what the title says.

 

Interlude:

Index: E:/L2j Development/workspace/L2_GameServer_It/java/config/altsettings.properties
===================================================================
--- E:/L2j Development/workspace/L2_GameServer_It/java/config/altsettings.properties	(revision 4034)
+++ E:/L2j Development/workspace/L2_GameServer_It/java/config/altsettings.properties	(working copy)
@@ -28,6 +28,9 @@
# Weight Limit multiplier - default 1
AltWeightLimit = 1

+# Pc Attackable at all time.
+PCAttackableAllTime = false
+
# If XP loss (and deleveling) is enabled, default is 'true'
Delevel = True

Index: E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/Config.java
===================================================================
--- E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/Config.java	(revision 4034)
+++ E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/Config.java	(working copy)
@@ -89,7 +89,9 @@
    public static boolean SERVER_LIST_TESTSERVER;
    /** Set the server as gm only at startup ? */
    public static boolean SERVER_GMONLY;
-
+    
+    public static boolean PC_VS_PC_ATTACKABLE_ALLTIME;
+    
    // Thread pools size
    /** Thread pool size effect */
    public static int THREAD_P_EFFECTS;
@@ -1627,6 +1629,7 @@
                altSettings.load(is);
                is.close();

+                PC_VS_PC_ATTACKABLE_ALLTIME = Boolean.parseBoolean(altSettings.getProperty("PCAttackableAllTime", "false"));
                ALT_GAME_TIREDNESS      = Boolean.parseBoolean(altSettings.getProperty("AltGameTiredness", "false"));
                ALT_GAME_CREATION       = Boolean.parseBoolean(altSettings.getProperty("AltGameCreation", "false"));
                ALT_GAME_CREATION_SPEED = Double.parseDouble(altSettings.getProperty("AltGameCreationSpeed", "1"));
Index: E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 4034)
+++ E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -6804,6 +6804,12 @@
		return _hennaDEX;
	}

+	@Override
+    public boolean isAttackable()
+    {
+        return Config.PC_VS_PC_ATTACKABLE_ALLTIME && (getTarget() != null && getTarget() instanceof L2PcInstance);
+    }
+
	/**
	 * Return True if the L2PcInstance is autoAttackable.<BR><BR>
	 *
@@ -6822,6 +6828,9 @@
		if (attacker == this || attacker == getPet())
			return false;

+		if(Config.PC_VS_PC_ATTACKABLE_ALLTIME && (getTarget() != null && getTarget() instanceof L2PcInstance))
+			return true;
+		
		// TODO: check for friendly mobs
		// Check if the attacker is a L2MonsterInstance
		if (attacker instanceof L2MonsterInstance)

 

Epilogue:

Index: E:/L2j Development/workspace/L2_GameServer-clean/java/config/Character.properties
===================================================================
--- E:/L2j Development/workspace/L2_GameServer-clean/java/config/Character.properties	(revision 4068)
+++ E:/L2j Development/workspace/L2_GameServer-clean/java/config/Character.properties	(working copy)
@@ -33,6 +33,9 @@
# Default: 1
AltWeightLimit = 1

+# Pc Attackable at all time.
+PCAttackableAllTime = false
+
# Run speed modifier. Example: Setting this to 5 will give players +5 to their running speed.
# Default: 0
RunSpeedBoost = 0
Index: E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java	(revision 4068)
+++ E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -8436,6 +8436,12 @@
		return _hennaDEX;
	}

+	@Override
+    public boolean isAttackable()
+    {
+		return Config.PC_VS_PC_ATTACKABLE_ALLTIME && (getTarget() != null && getTarget() instanceof L2PcInstance);
+    }
+
	/**
	 * Return True if the L2PcInstance is autoAttackable.<BR><BR>
	 *
@@ -8454,6 +8460,9 @@
		if (attacker == this || attacker == getPet())
			return false;

+		if(Config.PC_VS_PC_ATTACKABLE_ALLTIME && (getTarget() != null && getTarget() instanceof L2PcInstance))
+			return true;
+
		// TODO: check for friendly mobs
		// Check if the attacker is a L2MonsterInstance
		if (attacker instanceof L2MonsterInstance)
Index: E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/Config.java
===================================================================
--- E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/Config.java	(revision 4068)
+++ E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/Config.java	(working copy)
@@ -87,6 +87,7 @@
	public static double RESPAWN_RESTORE_HP;
	public static double RESPAWN_RESTORE_MP;
	public static boolean ALT_GAME_TIREDNESS;
+	public static boolean PC_VS_PC_ATTACKABLE_ALLTIME;
	public static boolean ENABLE_MODIFY_SKILL_DURATION;
	public static TIntIntHashMap SKILL_DURATION_LIST;
	public static boolean ENABLE_MODIFY_SKILL_REUSE;
@@ -1302,7 +1303,8 @@
					CP_REGEN_MULTIPLIER = Double.parseDouble(Character.getProperty("CpRegenMultiplier", "100")) /100;
					ALT_GAME_TIREDNESS = Boolean.parseBoolean(Character.getProperty("AltGameTiredness", "false"));
					ENABLE_MODIFY_SKILL_DURATION = Boolean.parseBoolean(Character.getProperty("EnableModifySkillDuration", "false"));
-
+					PC_VS_PC_ATTACKABLE_ALLTIME = Boolean.parseBoolean(Character.getProperty("PCAttackableAllTime", "false"));
+					
					// Create Map only if enabled
					if (ENABLE_MODIFY_SKILL_DURATION)
					{

NOTE: I've been already applauded for this code, so don't shit it and karma me xD

Posted

What do you mean with the PC?

I cant get what the code does!

Well dooh PC Means client meaning the playable object O.o hard shit ain't it?

Posted

I have problem with this :) if set it ti false i can't attack with simple payers each other :) and if true i first character don't do anythink before loged it when u press attack char just stuck and ju have to cancel target. :P

Posted

Ofcurse it will mess up your pvp system. The code is wrong. ( And all those smart ass guys like ExtremeDwarf playing cool didnt see it . )

 

 

 

+ @Override

+    public boolean isAttackable()

+    {

+ return Config.PC_VS_PC_ATTACKABLE_ALLTIME && (getTarget() != null && getTarget() instanceof L2PcInstance);

+    }

+

 

Do not add this. Thats what causing the problem. Every L2Playable ( aka L2PcInstance too ) is attackable object. So remove that lines from the code.

 

And check your codes when posting them.

Posted

I have problem with this :) if set it ti false i can't attack with simple payers each other :) and if true i first character don't do anythink before loged it when u press attack char just stuck and ju have to cancel target. :P

 

Yes,actually this code is imperfect.I realize it now....

It provoques new problems to hit other ppls.

Check here ,i solve it alone and with the help of l2jserver staff.

http://www.maxcheaters.com/forum/index.php?topic=140039.0

http://www.maxcheaters.com/forum/index.php?topic=140997.0

 

Actually you can hit ppls without pressing CTRL but if enemy dont target you ,then it can't happen anything (pvp or pk).So this code is useless in this situation.Just follow the first link i gave you to solve it. ;)

Posted

Yes,actually this code is imperfect.I realize it now....

It provoques new problems to hit other ppls.

Check here ,i solve it alone and with the help of l2jserver staff.

http://www.maxcheaters.com/forum/index.php?topic=140039.0

http://www.maxcheaters.com/forum/index.php?topic=140997.0

 

Actually you can hit ppls without pressing CTRL but if enemy dont target you ,then it can't happen anything (pvp or pk).So this code is useless in this situation.Just follow the first link i gave you to solve it. ;)

 

if the code is useless remove the karma

Posted

This code has little mistake. Setekh is bussy atm, so wait for him firstly.

 

That's true, he'll be away for 3-4 days..

I'll lock it to avoid spam and wait for him to come back and fix it.

It will be unlocked when everything is fine.

Guest
This topic is now closed to further replies.


  • Posts

    • LIVE VERIFICATION? SUMSUB? “IMPOSSIBLE”? ▪ Spoiler: it is possible — if you know who to work with. A client came in with a task to pass **live verification** on **WantToPay**, a Telegram virtual card service. On the platform side — **Sumsub**: liveness check, SMS, manual review. “Fast” and “by eye” simply don’t work here. › What was done: → analyzed the verification scenario and Sumsub requirements → built the correct flow: phone number, email, timing → **completed live verification remotely, without account handover** → handled SMS and confirmation codes → brought the process to final approval ▪ Result: → verification passed → access granted → no flags or repeat requests ▪ Live verification is not luck. It’s scenario-based preparation — not hope. › TG: @mustang_service ( https:// t.me/ mustang_service ) › Channel: Mustang Service ( https:// t.me/ +6RAKokIn5ItmYjEx ) *All data is published with the client’s consent.* #verification #sumsub #livecheck #kyc #case
    • IMPORTANT INFO: In a few days, I will switch to completely new code, written from scratch with a new download system, patch building and management system. The Updater will become true 2026 code with "foolproof systems". I'm going to create a Discord server for customers to request new ideas and features. FIRST CUSTOMERS ARE ALREADY USING THE NEW UPDATER ON LIVE SERVERS! Watch this topic for upcoming info because the new updater is around the corner! Yes, you can still use self-update on the previous updater! No, the new updater won't be compatible with the old patch system! A new build is required, but players who already have game files won't have to download the entire patch again! New templates and updates to existing templates are coming soon! Sneak peek:  
    • i used guytis IL project and source. i found in his project there are 3 Client version source... 1,CliExt_H5   --->this one cant be compiled in VS2005,i did know why..is it for H5 client? 2,CliExtNew  --->this one is IL version ,but when i compiled it and use it.player cant login game,MD5Checksum wrong.i check the source code,but not found any hints. 3,L2Server    --->this one for HB client?im not sure...   so my question is what are the differences between these three versions of cliext.dll?how can i fix the issue of the MD5Checksum not matching problem?   01/29/2026 21:04:11.366, [CCliExt::HandleCheckSum] Invalid Checksum[1130415144] vs [-721420287] packet[dd] len[29] sum[2698] key[30] HWID[] Account[]! 01/29/2026 21:04:11.366, SocketLimiter::UserSocketBadunknownprotocol 11111111111 01/29/2026 21:04:11.366, [usersocket]unknown protocol from ip[113.137.149.115]!      
  • 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..