From 41c6b1ea8075422e4a1884a0efe53abc56349e10 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 29 Sep 2017 20:22:49 +0000 Subject: [PATCH] Action improvements. --- .../dist/game/data/ActionData.xml | 38 +++++++++---------- .../impl/character/player/OnPlayerChat.java | 6 +-- .../network/clientpackets/Say2.java | 3 +- .../dist/game/data/ActionData.xml | 38 +++++++++---------- .../impl/character/player/OnPlayerChat.java | 6 +-- .../network/clientpackets/Say2.java | 3 +- .../dist/game/data/ActionData.xml | 38 +++++++++---------- .../impl/character/player/OnPlayerChat.java | 6 +-- .../network/clientpackets/Say2.java | 3 +- .../dist/game/data/ActionData.xml | 38 +++++++++---------- .../impl/character/player/OnPlayerChat.java | 6 +-- .../network/clientpackets/Say2.java | 3 +- 12 files changed, 92 insertions(+), 96 deletions(-) diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/ActionData.xml b/L2J_Mobius_1.0_Ertheia/dist/game/data/ActionData.xml index a03d5f141e..1686bdea4f 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/ActionData.xml +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/ActionData.xml @@ -5,8 +5,8 @@ - + @@ -119,7 +119,7 @@ - + @@ -132,7 +132,7 @@ - + @@ -199,20 +199,20 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java index 610b116e04..4e919ef419 100644 --- a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java @@ -27,11 +27,11 @@ import com.l2jmobius.gameserver.model.events.impl.IBaseEvent; public class OnPlayerChat implements IBaseEvent { private final L2PcInstance _activeChar; - private final L2PcInstance _target; + private final String _target; private final String _text; private final ChatType _type; - public OnPlayerChat(L2PcInstance activeChar, L2PcInstance target, String text, ChatType type) + public OnPlayerChat(L2PcInstance activeChar, String target, String text, ChatType type) { _activeChar = activeChar; _target = target; @@ -44,7 +44,7 @@ public class OnPlayerChat implements IBaseEvent return _activeChar; } - public L2PcInstance getTarget() + public String getTarget() { return _target; } diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java index d339c1d241..9ddb2d5222 100644 --- a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java @@ -23,7 +23,6 @@ import com.l2jmobius.commons.network.PacketReader; import com.l2jmobius.gameserver.enums.ChatType; import com.l2jmobius.gameserver.handler.ChatHandler; import com.l2jmobius.gameserver.handler.IChatHandler; -import com.l2jmobius.gameserver.model.L2World; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.model.ceremonyofchaos.CeremonyOfChaosEvent; import com.l2jmobius.gameserver.model.effects.EffectFlag; @@ -209,7 +208,7 @@ public final class Say2 implements IClientIncomingPacket } } - final ChatFilterReturn filter = EventDispatcher.getInstance().notifyEvent(new OnPlayerChat(activeChar, L2World.getInstance().getPlayer(_target), _text, chatType), activeChar, ChatFilterReturn.class); + final ChatFilterReturn filter = EventDispatcher.getInstance().notifyEvent(new OnPlayerChat(activeChar, _target, _text, chatType), activeChar, ChatFilterReturn.class); if (filter != null) { _text = filter.getFilteredText(); diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/ActionData.xml b/L2J_Mobius_2.5_Underground/dist/game/data/ActionData.xml index a03d5f141e..1686bdea4f 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/ActionData.xml +++ b/L2J_Mobius_2.5_Underground/dist/game/data/ActionData.xml @@ -5,8 +5,8 @@ - + @@ -119,7 +119,7 @@ - + @@ -132,7 +132,7 @@ - + @@ -199,20 +199,20 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java index 610b116e04..4e919ef419 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java @@ -27,11 +27,11 @@ import com.l2jmobius.gameserver.model.events.impl.IBaseEvent; public class OnPlayerChat implements IBaseEvent { private final L2PcInstance _activeChar; - private final L2PcInstance _target; + private final String _target; private final String _text; private final ChatType _type; - public OnPlayerChat(L2PcInstance activeChar, L2PcInstance target, String text, ChatType type) + public OnPlayerChat(L2PcInstance activeChar, String target, String text, ChatType type) { _activeChar = activeChar; _target = target; @@ -44,7 +44,7 @@ public class OnPlayerChat implements IBaseEvent return _activeChar; } - public L2PcInstance getTarget() + public String getTarget() { return _target; } diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java index d339c1d241..9ddb2d5222 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java @@ -23,7 +23,6 @@ import com.l2jmobius.commons.network.PacketReader; import com.l2jmobius.gameserver.enums.ChatType; import com.l2jmobius.gameserver.handler.ChatHandler; import com.l2jmobius.gameserver.handler.IChatHandler; -import com.l2jmobius.gameserver.model.L2World; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.model.ceremonyofchaos.CeremonyOfChaosEvent; import com.l2jmobius.gameserver.model.effects.EffectFlag; @@ -209,7 +208,7 @@ public final class Say2 implements IClientIncomingPacket } } - final ChatFilterReturn filter = EventDispatcher.getInstance().notifyEvent(new OnPlayerChat(activeChar, L2World.getInstance().getPlayer(_target), _text, chatType), activeChar, ChatFilterReturn.class); + final ChatFilterReturn filter = EventDispatcher.getInstance().notifyEvent(new OnPlayerChat(activeChar, _target, _text, chatType), activeChar, ChatFilterReturn.class); if (filter != null) { _text = filter.getFilteredText(); diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/ActionData.xml b/L2J_Mobius_3.0_Helios/dist/game/data/ActionData.xml index a03d5f141e..1686bdea4f 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/ActionData.xml +++ b/L2J_Mobius_3.0_Helios/dist/game/data/ActionData.xml @@ -5,8 +5,8 @@ - + @@ -119,7 +119,7 @@ - + @@ -132,7 +132,7 @@ - + @@ -199,20 +199,20 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java index 610b116e04..4e919ef419 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java @@ -27,11 +27,11 @@ import com.l2jmobius.gameserver.model.events.impl.IBaseEvent; public class OnPlayerChat implements IBaseEvent { private final L2PcInstance _activeChar; - private final L2PcInstance _target; + private final String _target; private final String _text; private final ChatType _type; - public OnPlayerChat(L2PcInstance activeChar, L2PcInstance target, String text, ChatType type) + public OnPlayerChat(L2PcInstance activeChar, String target, String text, ChatType type) { _activeChar = activeChar; _target = target; @@ -44,7 +44,7 @@ public class OnPlayerChat implements IBaseEvent return _activeChar; } - public L2PcInstance getTarget() + public String getTarget() { return _target; } diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java index d339c1d241..9ddb2d5222 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java @@ -23,7 +23,6 @@ import com.l2jmobius.commons.network.PacketReader; import com.l2jmobius.gameserver.enums.ChatType; import com.l2jmobius.gameserver.handler.ChatHandler; import com.l2jmobius.gameserver.handler.IChatHandler; -import com.l2jmobius.gameserver.model.L2World; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.model.ceremonyofchaos.CeremonyOfChaosEvent; import com.l2jmobius.gameserver.model.effects.EffectFlag; @@ -209,7 +208,7 @@ public final class Say2 implements IClientIncomingPacket } } - final ChatFilterReturn filter = EventDispatcher.getInstance().notifyEvent(new OnPlayerChat(activeChar, L2World.getInstance().getPlayer(_target), _text, chatType), activeChar, ChatFilterReturn.class); + final ChatFilterReturn filter = EventDispatcher.getInstance().notifyEvent(new OnPlayerChat(activeChar, _target, _text, chatType), activeChar, ChatFilterReturn.class); if (filter != null) { _text = filter.getFilteredText(); diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/ActionData.xml b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/ActionData.xml index a03d5f141e..1686bdea4f 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/ActionData.xml +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/ActionData.xml @@ -5,8 +5,8 @@ - + @@ -119,7 +119,7 @@ - + @@ -132,7 +132,7 @@ - + @@ -199,20 +199,20 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java index 610b116e04..4e919ef419 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/events/impl/character/player/OnPlayerChat.java @@ -27,11 +27,11 @@ import com.l2jmobius.gameserver.model.events.impl.IBaseEvent; public class OnPlayerChat implements IBaseEvent { private final L2PcInstance _activeChar; - private final L2PcInstance _target; + private final String _target; private final String _text; private final ChatType _type; - public OnPlayerChat(L2PcInstance activeChar, L2PcInstance target, String text, ChatType type) + public OnPlayerChat(L2PcInstance activeChar, String target, String text, ChatType type) { _activeChar = activeChar; _target = target; @@ -44,7 +44,7 @@ public class OnPlayerChat implements IBaseEvent return _activeChar; } - public L2PcInstance getTarget() + public String getTarget() { return _target; } diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java index d339c1d241..9ddb2d5222 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/network/clientpackets/Say2.java @@ -23,7 +23,6 @@ import com.l2jmobius.commons.network.PacketReader; import com.l2jmobius.gameserver.enums.ChatType; import com.l2jmobius.gameserver.handler.ChatHandler; import com.l2jmobius.gameserver.handler.IChatHandler; -import com.l2jmobius.gameserver.model.L2World; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.model.ceremonyofchaos.CeremonyOfChaosEvent; import com.l2jmobius.gameserver.model.effects.EffectFlag; @@ -209,7 +208,7 @@ public final class Say2 implements IClientIncomingPacket } } - final ChatFilterReturn filter = EventDispatcher.getInstance().notifyEvent(new OnPlayerChat(activeChar, L2World.getInstance().getPlayer(_target), _text, chatType), activeChar, ChatFilterReturn.class); + final ChatFilterReturn filter = EventDispatcher.getInstance().notifyEvent(new OnPlayerChat(activeChar, _target, _text, chatType), activeChar, ChatFilterReturn.class); if (filter != null) { _text = filter.getFilteredText();