Noticias:

Debes de estar registrado para poder ver el contenido indicado. Registrate o Conectate

Menú Principal

Acciones Sociales al escribir en chat

Iniciado por Swarlog, Ago 12, 2022, 02:08 AM

Tema anterior - Siguiente tema

Swarlog


### Eclipse Workspace Patch 1.0
#P trunk
Index: L2JBattle-Game/java/net/sf/l2j/gameserver/clientpackets/Say2.java
==================================================  =================
--- L2JBattle-Game/java/net/sf/l2j/gameserver/clientpackets/Say2.java  (revision 21)
+++ L2JBattle-Game/java/net/sf/l2j/gameserver/clientpackets/Say2.java  (working copy)
@@ -30,6 +30,7 @@
import net.sf.l2j.gameserver.handler.VoicedCommandHandler  ;
import net.sf.l2j.gameserver.instancemanager.PetitionMana  ger;
import net.sf.l2j.gameserver.model.BlockList;
+import net.sf.l2j.gameserver.serverpackets.SocialAction;
import net.sf.l2j.gameserver.model.L2World;
import net.sf.l2j.gameserver.model.actor.instance.L2PcIns  tance;
import net.sf.l2j.gameserver.network.SystemMessageId;
@@ -124,6 +126,32 @@
          return;
      }
     
+      if ((_text.equalsIgnoreCase("hello")
+            || _text.equalsIgnoreCase("hey")
+            || _text.equalsIgnoreCase("aloha")
+            || _text.equalsIgnoreCase("alo")
+            || _text.equalsIgnoreCase("hi"))
+            && (!activeChar.isRunning() || !activeChar.isAttackingNow() || !activeChar.isCastingNow()))
+        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 2));
+   
+      if ((_text.equalsIgnoreCase("lol")
+            || _text.equalsIgnoreCase("haha")
+            || _text.equalsIgnoreCase("xaxa")
+            || _text.equalsIgnoreCase("jaja"))
+            && (!activeChar.isRunning() || !activeChar.isAttackingNow() || !activeChar.isCastingNow()))
+        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 10));
+     
+      if ((_text.equalsIgnoreCase("yes")
+            || _text.equalsIgnoreCase("yep"))
+            && (!activeChar.isRunning() || !activeChar.isAttackingNow() || !activeChar.isCastingNow()))
+        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 6));
+   
+      if ((_text.equalsIgnoreCase("no")
+            || _text.equalsIgnoreCase("nop")
+            || _text.equalsIgnoreCase("nope"))
+            && (!activeChar.isRunning() || !activeChar.isAttackingNow() || !activeChar.isCastingNow()))
+        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 5));
+   
      if (activeChar == null)
      {
          _log.warning("Say2: Active Character is null.");