Client Key Bindings
Introduction
The autorun.txt file defines the key bindings used by Wurm. The file should be in the directory you specified when you ran wurm for the first time. This is the directory containing the packs directory. Everything in the autorun.txt file will be automatically executed when Wurm is started. If you ever mess up this file and need to reset it to the default values, just delete it and restart wurm.
How to bind a command to a key
Open the autorun.txt file in your favourite text editor. Add a line in the following format: bind <key> <command> where <key> is the key event and <command> is the command as defined below.
For example: bind <key> <Action>
eg bind x move_forward
New Bind file
// If you ever manage to mess up this file, just delete it, and wurm with // replace it with a new one. // <------------------------------------------------------------------------> // Default movement keys. Allows both WASD and arrow key movement // You can bind these keys to any KeyEvent.VK_* key // (see http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/KeyEvent.html) bind w move_forward bind s move_back bind a move_left bind d move_right bind q turn_left bind e turn_right bind x autorun bind z center_view bind up move_forward bind down move_back bind left turn_left bind right turn_right bind page_up autorun bind page_down center_view bind insert strafe bind home turn_up bind end turn_down bind numpad8 move_forward bind numpad2 move_back bind numpad4 turn_left bind numpad6 turn_right bind numpad9 autorun bind numpad3 center_view bind numpad0 strafe bind numpad7 turn_up bind numpad1 turn_down // Misc keys bind enter toggle_chat bind t toggle_chat bind tab next_tab bind f12 "quit" // Window toggles bind f1 "toggle console" bind f2 "toggle skills" bind f3 "toggle inventory" // Some various toggles we want to enable toggle keyboard_hints // toggle stats
F1 Console
If you type commands directly into the console while in-game now, they get saved automatically.
Little Tips
Add:
// Window toggles bind f1 "toggle console" bind f2 "toggle skills" bind f3 "toggle inventory" bind k "toggle skills" bind i "toggle inventory" bind ` "toggle stats" // Change "`" to whatever you prefer, it's just below the escape key on most keyboards though.
to autorun.txt so you can use ' I ' for inventory etc, much easier than using the function keys. Template:Smiley
start by adding the following line to keep things organised, then make all your cahnges under that:
// user defined
this one adds a function key to open statistics:
bind f4 "toggle stats"
some peoples clients are missing the screenshot command:
bind f11 "screenshot"
the following opens windows when the client loads:
toggle skills toggle inventory toggle stats
this stops jk chat from loading when the game starts (but sometimes someone gets in a message b4 it takes effect. placing it at the top of the file may help):
say /kchat
the following lines can be changed so that they no longer work by adding "//":
bind t toggle_chat toggle keyboard_hints
so they should look like:
// bind t toggle_chat // toggle keyboard_hints
the 1st one makes the enter key the only key that focuses (makes active) on the message box
the 2nd one removes the text at the top of the screen like "F1: console"
you could add this to know how much sleep bonus you have when you log in:
say /sleep
this would work best at the bottom of the file I think.
Here's another useful little command:
bind f5 "say /sleep"