Jump to content

Question

Posted

Hello,

I wonder how I can make the change so that the player add PvPpoint in ZONE_SIEGE.

I believe it is in L2pcinstance, tried some changes but could not.

9 answers to this question

Recommended Posts

  • 0
Posted
@@ -4260,18 +4451,30 @@
			return;

		// If in pvp zone, do nothing.
-		if (isInsideZone(ZoneId.PVP) || targetPlayer.isInsideZone(ZoneId.PVP))
+		if (isInsideZone(ZoneId.PVP) || targetPlayer.isInsideZone(ZoneId.PVP) && (!isInSiege() && !targetPlayer.isInSiege()))
			return;

  • 0
Posted

Thanks Friend, I use l2jfrozen, the code is different, as I do?

 

		// If in Arena, do nothing
	if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP))
		return;

 

And when I add your code generates this error

 

   
    [javac] 		if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP) && (!isInSiege() && !targetPlayer.isInSiege()))
    [javac] 		                                                                                                   ^
    [javac]   symbol:   method isInSiege()
    [javac]   location: variable targetPlayer of type L2PcInstance
    [javac] 2 errors
    [javac] 1 warning

  • 0
Posted

		// If in Arena, do nothing
-		if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP))
-			return;

 

just remove those lines and compile

  • 0
Posted

		// If in Arena, do nothing
-		if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP))
-			return;

 

just remove those lines and compile

Dude read what he needs.
  • 0
Posted

Do you see nay other exit code on his code ? cause I don't

I can't understand you, anyway I download l2jfrozen in order to finish it.
  • 0
Posted

Author, check this one.

 

### Eclipse Workspace Patch 1.0
#P L2jFrozen_GameServer
Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(revision 1004)
+++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -8037,7 +8037,7 @@
			return;

		// If in Arena, do nothing
-		if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP))
+		if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP) && !isInsideZone(ZONE_SIEGE) && !targetPlayer.isInsideZone(ZONE_SIEGE))
			return;

		// check anti-farm

  • 0
Posted

Author, check this one.

 

### Eclipse Workspace Patch 1.0
#P L2jFrozen_GameServer
Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(revision 1004)
+++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -8037,7 +8037,7 @@
			return;

		// If in Arena, do nothing
-		if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP))
+		if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP) && !isInsideZone(ZONE_SIEGE) && !targetPlayer.isInsideZone(ZONE_SIEGE))
			return;

		// check anti-farm

 

Thank you for answering me, still did not work.

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


×
×
  • 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..

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