From f6e0306ee7b94687e42c74251309a1e805479987 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 25 May 2018 17:36:44 +0000 Subject: [PATCH] Custom Sayune config check. --- .../network/clientpackets/sayune/RequestFlyMoveStart.java | 3 ++- .../network/clientpackets/sayune/RequestFlyMoveStart.java | 3 ++- .../network/clientpackets/sayune/RequestFlyMoveStart.java | 3 ++- .../network/clientpackets/sayune/RequestFlyMoveStart.java | 3 ++- .../network/clientpackets/sayune/RequestFlyMoveStart.java | 3 ++- .../network/clientpackets/sayune/RequestFlyMoveStart.java | 3 ++- .../network/clientpackets/sayune/RequestFlyMoveStart.java | 3 ++- 7 files changed, 14 insertions(+), 7 deletions(-) diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java index 7c1b5ab107..bd3df4462d 100644 --- a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java @@ -16,6 +16,7 @@ */ package com.l2jmobius.gameserver.network.clientpackets.sayune; +import com.l2jmobius.Config; import com.l2jmobius.commons.network.PacketReader; import com.l2jmobius.gameserver.data.xml.impl.SayuneData; import com.l2jmobius.gameserver.enums.CategoryType; @@ -44,7 +45,7 @@ public class RequestFlyMoveStart implements IClientIncomingPacket public void run(L2GameClient client) { final L2PcInstance activeChar = client.getActiveChar(); - if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || !activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) + if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || (!activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP) && !Config.FREE_JUMPS_FOR_ALL)) { return; } diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java index 7c1b5ab107..bd3df4462d 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java @@ -16,6 +16,7 @@ */ package com.l2jmobius.gameserver.network.clientpackets.sayune; +import com.l2jmobius.Config; import com.l2jmobius.commons.network.PacketReader; import com.l2jmobius.gameserver.data.xml.impl.SayuneData; import com.l2jmobius.gameserver.enums.CategoryType; @@ -44,7 +45,7 @@ public class RequestFlyMoveStart implements IClientIncomingPacket public void run(L2GameClient client) { final L2PcInstance activeChar = client.getActiveChar(); - if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || !activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) + if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || (!activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP) && !Config.FREE_JUMPS_FOR_ALL)) { return; } diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java index 7c1b5ab107..bd3df4462d 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java @@ -16,6 +16,7 @@ */ package com.l2jmobius.gameserver.network.clientpackets.sayune; +import com.l2jmobius.Config; import com.l2jmobius.commons.network.PacketReader; import com.l2jmobius.gameserver.data.xml.impl.SayuneData; import com.l2jmobius.gameserver.enums.CategoryType; @@ -44,7 +45,7 @@ public class RequestFlyMoveStart implements IClientIncomingPacket public void run(L2GameClient client) { final L2PcInstance activeChar = client.getActiveChar(); - if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || !activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) + if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || (!activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP) && !Config.FREE_JUMPS_FOR_ALL)) { return; } diff --git a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java index 7c1b5ab107..bd3df4462d 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java @@ -16,6 +16,7 @@ */ package com.l2jmobius.gameserver.network.clientpackets.sayune; +import com.l2jmobius.Config; import com.l2jmobius.commons.network.PacketReader; import com.l2jmobius.gameserver.data.xml.impl.SayuneData; import com.l2jmobius.gameserver.enums.CategoryType; @@ -44,7 +45,7 @@ public class RequestFlyMoveStart implements IClientIncomingPacket public void run(L2GameClient client) { final L2PcInstance activeChar = client.getActiveChar(); - if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || !activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) + if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || (!activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP) && !Config.FREE_JUMPS_FOR_ALL)) { return; } diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java index 7939daf42a..82cb9954b5 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java @@ -16,6 +16,7 @@ */ package com.l2jmobius.gameserver.network.clientpackets.sayune; +import com.l2jmobius.Config; import com.l2jmobius.commons.network.PacketReader; import com.l2jmobius.gameserver.data.xml.impl.SayuneData; import com.l2jmobius.gameserver.enums.CategoryType; @@ -44,7 +45,7 @@ public class RequestFlyMoveStart implements IClientIncomingPacket public void run(L2GameClient client) { final L2PcInstance activeChar = client.getActiveChar(); - if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || !activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) + if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || (!activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP) && !Config.FREE_JUMPS_FOR_ALL)) { return; } diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java b/L2J_Mobius_Classic_2.1_Zaken/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java index 7939daf42a..82cb9954b5 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java @@ -16,6 +16,7 @@ */ package com.l2jmobius.gameserver.network.clientpackets.sayune; +import com.l2jmobius.Config; import com.l2jmobius.commons.network.PacketReader; import com.l2jmobius.gameserver.data.xml.impl.SayuneData; import com.l2jmobius.gameserver.enums.CategoryType; @@ -44,7 +45,7 @@ public class RequestFlyMoveStart implements IClientIncomingPacket public void run(L2GameClient client) { final L2PcInstance activeChar = client.getActiveChar(); - if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || !activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) + if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || (!activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP) && !Config.FREE_JUMPS_FOR_ALL)) { return; } diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java b/L2J_Mobius_Classic_2.2_Antharas/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java index 7939daf42a..82cb9954b5 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/com/l2jmobius/gameserver/network/clientpackets/sayune/RequestFlyMoveStart.java @@ -16,6 +16,7 @@ */ package com.l2jmobius.gameserver.network.clientpackets.sayune; +import com.l2jmobius.Config; import com.l2jmobius.commons.network.PacketReader; import com.l2jmobius.gameserver.data.xml.impl.SayuneData; import com.l2jmobius.gameserver.enums.CategoryType; @@ -44,7 +45,7 @@ public class RequestFlyMoveStart implements IClientIncomingPacket public void run(L2GameClient client) { final L2PcInstance activeChar = client.getActiveChar(); - if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || !activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) + if ((activeChar == null) || !activeChar.isInsideZone(ZoneId.SAYUNE) || activeChar.hasRequest(SayuneRequest.class) || (!activeChar.isInCategory(CategoryType.SIXTH_CLASS_GROUP) && !Config.FREE_JUMPS_FOR_ALL)) { return; }