From 9d55c790d81b402371d7ec4b0bf820bf67b8faa1 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 20 Dec 2020 22:45:27 +0000 Subject: [PATCH] Moved timed hunting info packet to zone exit. --- .../gameserver/model/actor/instance/PlayerInstance.java | 1 - .../l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java | 2 ++ .../gameserver/model/actor/instance/PlayerInstance.java | 1 - .../l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java | 2 ++ .../gameserver/model/actor/instance/PlayerInstance.java | 1 - .../l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java | 2 ++ .../gameserver/model/actor/instance/PlayerInstance.java | 1 - .../l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java | 2 ++ 8 files changed, 8 insertions(+), 4 deletions(-) diff --git a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 107f20f0ee..7c585caea7 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -14348,7 +14348,6 @@ public class PlayerInstance extends Playable _timedHuntingZoneFinishTask.cancel(true); _timedHuntingZoneFinishTask = null; } - sendPacket(TimedHuntingZoneExit.STATIC_PACKET); } public long getTimedHuntingZoneRemainingTime() diff --git a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java index 837702f6e1..8ed8a88f29 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java +++ b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java @@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.variables.PlayerVariables; import org.l2jmobius.gameserver.model.zone.ZoneId; import org.l2jmobius.gameserver.model.zone.ZoneType; +import org.l2jmobius.gameserver.network.serverpackets.sessionzones.TimedHuntingZoneExit; /** * @author Mobius @@ -67,6 +68,7 @@ public class TimedHuntingZone extends ZoneType if (player != null) { player.setInsideZone(ZoneId.TIMED_HUNTING, false); + player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET); } } } diff --git a/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 2b56bb1bf5..f06fac7644 100644 --- a/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -14326,7 +14326,6 @@ public class PlayerInstance extends Playable _timedHuntingZoneFinishTask.cancel(true); _timedHuntingZoneFinishTask = null; } - sendPacket(TimedHuntingZoneExit.STATIC_PACKET); } public long getTimedHuntingZoneRemainingTime() diff --git a/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java b/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java index cd39dbd0ae..4adcdba9c6 100644 --- a/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java +++ b/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java @@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.variables.PlayerVariables; import org.l2jmobius.gameserver.model.zone.ZoneId; import org.l2jmobius.gameserver.model.zone.ZoneType; +import org.l2jmobius.gameserver.network.serverpackets.sessionzones.TimedHuntingZoneExit; /** * @author Mobius @@ -87,6 +88,7 @@ public class TimedHuntingZone extends ZoneType if (player != null) { player.setInsideZone(ZoneId.TIMED_HUNTING, false); + player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET); } } } diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 17c7b6cde5..c4b50572ed 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -14231,7 +14231,6 @@ public class PlayerInstance extends Playable _timedHuntingZoneFinishTask.cancel(true); _timedHuntingZoneFinishTask = null; } - sendPacket(TimedHuntingZoneExit.STATIC_PACKET); } public long getTimedHuntingZoneRemainingTime() diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java index 4340d22963..4264b39572 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java @@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.variables.PlayerVariables; import org.l2jmobius.gameserver.model.zone.ZoneId; import org.l2jmobius.gameserver.model.zone.ZoneType; +import org.l2jmobius.gameserver.network.serverpackets.sessionzones.TimedHuntingZoneExit; /** * @author Mobius @@ -62,6 +63,7 @@ public class TimedHuntingZone extends ZoneType if (player != null) { player.setInsideZone(ZoneId.TIMED_HUNTING, false); + player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET); } } } diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 25270cd430..e74083b34c 100644 --- a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -14347,7 +14347,6 @@ public class PlayerInstance extends Playable _timedHuntingZoneFinishTask.cancel(true); _timedHuntingZoneFinishTask = null; } - sendPacket(TimedHuntingZoneExit.STATIC_PACKET); } public long getTimedHuntingZoneRemainingTime() diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java index c014f50c68..fd82de053a 100644 --- a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/TimedHuntingZone.java @@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.variables.PlayerVariables; import org.l2jmobius.gameserver.model.zone.ZoneId; import org.l2jmobius.gameserver.model.zone.ZoneType; +import org.l2jmobius.gameserver.network.serverpackets.sessionzones.TimedHuntingZoneExit; /** * @author Mobius @@ -62,6 +63,7 @@ public class TimedHuntingZone extends ZoneType if (player != null) { player.setInsideZone(ZoneId.TIMED_HUNTING, false); + player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET); } } }