From c2fd26f7183823a0776a28456f656ba0a7f3518d Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Mon, 26 Mar 2018 20:49:51 +0000 Subject: [PATCH] Do not log nonexistent skill if id equals zero. --- .../network/clientpackets/RequestMagicSkillUse.java | 5 ++++- .../network/clientpackets/RequestMagicSkillUse.java | 5 ++++- .../network/clientpackets/RequestMagicSkillUse.java | 5 ++++- .../network/clientpackets/RequestMagicSkillUse.java | 5 ++++- .../network/clientpackets/RequestMagicSkillUse.java | 5 ++++- .../network/clientpackets/RequestMagicSkillUse.java | 5 ++++- .../network/clientpackets/RequestMagicSkillUse.java | 5 ++++- 7 files changed, 28 insertions(+), 7 deletions(-) diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java index 7ad7bc6d1a..1f6b539929 100644 --- a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java @@ -62,7 +62,10 @@ public final class RequestMagicSkillUse implements IClientIncomingPacket else { activeChar.sendPacket(ActionFailed.STATIC_PACKET); - _log.warning("Skill Id " + _magicId + " not found in player!"); + if (_magicId > 0) + { + _log.warning("Skill Id " + _magicId + " not found in player: " + activeChar); + } return; } } diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java index 7ad7bc6d1a..1f6b539929 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java @@ -62,7 +62,10 @@ public final class RequestMagicSkillUse implements IClientIncomingPacket else { activeChar.sendPacket(ActionFailed.STATIC_PACKET); - _log.warning("Skill Id " + _magicId + " not found in player!"); + if (_magicId > 0) + { + _log.warning("Skill Id " + _magicId + " not found in player: " + activeChar); + } return; } } diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java index 7ad7bc6d1a..1f6b539929 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java @@ -62,7 +62,10 @@ public final class RequestMagicSkillUse implements IClientIncomingPacket else { activeChar.sendPacket(ActionFailed.STATIC_PACKET); - _log.warning("Skill Id " + _magicId + " not found in player!"); + if (_magicId > 0) + { + _log.warning("Skill Id " + _magicId + " not found in player: " + activeChar); + } return; } } diff --git a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java index 7ad7bc6d1a..1f6b539929 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java @@ -62,7 +62,10 @@ public final class RequestMagicSkillUse implements IClientIncomingPacket else { activeChar.sendPacket(ActionFailed.STATIC_PACKET); - _log.warning("Skill Id " + _magicId + " not found in player!"); + if (_magicId > 0) + { + _log.warning("Skill Id " + _magicId + " not found in player: " + activeChar); + } return; } } diff --git a/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java b/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java index c805f28599..d330ea03d1 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java @@ -74,7 +74,10 @@ public final class RequestMagicSkillUse extends L2GameClientPacket if (skill == null) { activeChar.sendPacket(ActionFailed.STATIC_PACKET); - _log.warning("Skill Id " + _magicId + " not found in player : " + activeChar); + if (_magicId > 0) + { + _log.warning("Skill Id " + _magicId + " not found in player: " + activeChar); + } return; } } diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java index 7ad7bc6d1a..1f6b539929 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java @@ -62,7 +62,10 @@ public final class RequestMagicSkillUse implements IClientIncomingPacket else { activeChar.sendPacket(ActionFailed.STATIC_PACKET); - _log.warning("Skill Id " + _magicId + " not found in player!"); + if (_magicId > 0) + { + _log.warning("Skill Id " + _magicId + " not found in player: " + activeChar); + } return; } } diff --git a/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java b/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java index 7ad7bc6d1a..1f6b539929 100644 --- a/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java +++ b/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/network/clientpackets/RequestMagicSkillUse.java @@ -62,7 +62,10 @@ public final class RequestMagicSkillUse implements IClientIncomingPacket else { activeChar.sendPacket(ActionFailed.STATIC_PACKET); - _log.warning("Skill Id " + _magicId + " not found in player!"); + if (_magicId > 0) + { + _log.warning("Skill Id " + _magicId + " not found in player: " + activeChar); + } return; } }