Skip to content

[Share]KeyboardMovement

Featured Replies

Index: config/options.properties
===================================================================

@@ -126,2 +126,5 @@
# Ban the player if he is definitely using a client emulator (L2W, L2Divine, L2NET, etc)
AutoBanClientEmulators = true
+
+# Allow keyboard movement? (Cursor and W,A,S,D Keys)
+AllowKeyboardMovement = true

Index: java\net\sf\l2j\gameserver\clientpackets\MoveBackwardToLocation.java
===================================================================

@@ -96,5 +96,5 @@
		}

- 		if (_moveMovement == 0 && Config.GEODATA < 1) // cursor movement without geodata is disabled
+		if (_moveMovement == 0 && !Config.ALLOW_KEYBOARD_MOVEMENT)
	{
		activeChar.sendPacket(new ActionFailed());
	}

Index: java\net\sf\l2j\Config.java
===================================================================

@@ -1340,4 +1340,5 @@
	public static boolean       BAN_CLIENT_EMULATORS;
	public static String		HTM_ENCODING;
+	public static boolean		ALLOW_KEYBOARD_MOVEMENT;

	//************************************************************************************************
@@ -1374,4 +1375,5 @@
			BAN_CLIENT_EMULATORS = Boolean.parseBoolean(optionsSettings.getProperty("AutoBanClientEmulators", "false"));
			HTM_ENCODING = optionsSettings.getProperty("HtmEncoding", "UTF-8");
+			ALLOW_KEYBOARD_MOVEMENT = Boolean.parseBoolean(optionsSettings.getProperty("AllowKeyboardMovement", "false"));
		}
		catch (Exception e)

So with this you can configure if you want people can move with keyboard cursors?

Give us more informations about Your share....

my mistake sorry

  • 7 months later...

Yes its movement with keyboard arrows. But... its very lame, becouse if you press left or right arrow character do very huge circle...:s but its no matter, important that you can walk with arrows :)

yea finally! i lok for this a lot :D

thank you. i'll use it to disable keyboard movement since i use geodata and i dont like that kind of movement :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.