Jump to content

Question

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

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.

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
Answer this question...

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



×
×
  • Create New...