Ver Fonte

BETA: [4722] & [4723] to beta branch as well.

Zoey76 há 14 anos atrás
pai
commit
8ab79682ef

+ 7 - 0
L2J_Server_BETA/java/com/l2jserver/gameserver/ai/L2CharacterAI.java

@@ -990,7 +990,14 @@ public class L2CharacterAI extends AbstractAI
 			}
 			
 			if (_actor.isMovementDisabled())
+			{
+				// If player is trying attack target but he cannot move to attack target
+				// change his intention to idle
+				if (_actor.getAI().getIntention() == CtrlIntention.AI_INTENTION_ATTACK)
+					_actor.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
+				
 				return true;
+			}
 			
 			// while flying there is no move to cast
 			if (_actor.getAI().getIntention() == CtrlIntention.AI_INTENTION_CAST &&

+ 3 - 2
L2J_Server_BETA/java/com/l2jserver/gameserver/network/clientpackets/Say2.java

@@ -134,8 +134,9 @@ public final class Say2 extends L2GameClientPacket
 		}
 		
 		// Even though the client can handle more characters than it's current limit allows, an overflow (critical error) happens if you pass a huge (1000+) message.
-		// April 27, 2009 - Verified on Gracia P2 & Final official client as 105
-		if (_text.length() > 105 && !activeChar.isGM())
+		// July 11, 2011 - Verified on High Five 4 official client as 105.
+		// Allow higher limit if player shift some item (text is longer then).
+		if (!activeChar.isGM() && ((_text.indexOf(8) >= 0 && _text.length() > 500) || (_text.indexOf(8) < 0 && _text.length() > 105)))
 		{
 			activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.DONT_SPAM));
 			return;