dandilo Posted July 10, 2013 Share Posted July 10, 2013 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. Quote Link to comment Share on other sites More sharing options...
0 Devlin Posted July 10, 2013 Share Posted July 10, 2013 @@ -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; Quote Link to comment Share on other sites More sharing options...
0 dandilo Posted July 10, 2013 Author Share Posted July 10, 2013 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 Quote Link to comment Share on other sites More sharing options...
0 dandilo Posted July 12, 2013 Author Share Posted July 12, 2013 Please can someone help me, I really need to fix this. Quote Link to comment Share on other sites More sharing options...
0 xdem Posted July 12, 2013 Share Posted July 12, 2013 // If in Arena, do nothing - if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP)) - return; just remove those lines and compile Quote Link to comment Share on other sites More sharing options...
0 Devlin Posted July 12, 2013 Share Posted July 12, 2013 // 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. Quote Link to comment Share on other sites More sharing options...
0 xdem Posted July 12, 2013 Share Posted July 12, 2013 Dude read what he needs. Do you see nay other exit code on his code ? cause I don't Quote Link to comment Share on other sites More sharing options...
0 Devlin Posted July 12, 2013 Share Posted July 12, 2013 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. Quote Link to comment Share on other sites More sharing options...
0 Devlin Posted July 12, 2013 Share Posted July 12, 2013 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 Quote Link to comment Share on other sites More sharing options...
0 dandilo Posted July 12, 2013 Author Share Posted July 12, 2013 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. Quote Link to comment Share on other sites More sharing options...
Question
dandilo
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.
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
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.