Changes

Jump to navigation Jump to search

Client Key Bindings

4,853 bytes removed, 09:20, 14 December 2009
you don't delete the page; you redirect, which is what you partially did
#redirect[[Main Page]] :: [[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 favorite 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> <p>eg bind {{key|x}} move_forward</p> ==New Bind file == <pre>// 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_forwardbind s move_backbind a move_leftbind d move_rightbind q turn_leftbind e turn_rightbind x autorunbind z center_view bind up move_forwardbind down move_backbind left turn_leftbind right turn_rightbind page_up autorunbind page_down center_viewbind insert strafebind home turn_upbind end turn_down bind numpad8 move_forwardbind numpad2 move_backbind numpad4 turn_leftbind numpad6 turn_rightbind numpad9 autorunbind numpad3 center_viewbind numpad0 strafebind numpad7 turn_upbind numpad1 turn_down // Misc keysbind enter toggle_chatbind t toggle_chatbind tab next_tabbind f11 "screenshot"bind f12 "quit" // Window togglesbind f1 "toggle console"bind f2 "toggle skills"bind f3 "toggle inventory"bind f4 "toggle stats"bind f10 "toggle gui" // Some various toggles we want to enabletoggle keyboard_hints// toggle stats</pre>==F1 Console==If you type commands directly into the [[Console]] while in-game now, they get saved automatically. ==Little Tips == Add:<pre>// Window togglesbind 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. </pre><p>to autorun.txt so you can use ' {{key|I}} ' for inventory etc, much easier than using the function keys. {{smiley}}</p>  start by adding the following line to keep things organized, then make all your changes under that:<pre>// user defined</pre>this one adds a function key to open statistics:<pre>bind f4 "toggle stats"</pre>some peoples clients are missing the screenshot command:<pre>bind f11 "screenshot"</pre>the following opens windows when the client loads:<pre>toggle skillstoggle inventorytoggle stats</pre>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):<pre>say /kchat</pre>the following lines can be changed so that they no longer work by adding "//":<pre>bind t toggle_chattoggle keyboard_hints</pre>so they should look like:<pre>// bind t toggle_chat// toggle keyboard_hints</pre>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:<pre>say /sleep</pre>this would work best at the bottom of the file I think. Here's another few useful little commands:<pre>bind f5 "say /sleep"bind t "say /time"</pre> The new IRC Commands: <pre>Irc [Server] [Port] Ircsay [Msg]</pre> <tt>Irc [Server] [Port]:</tt> This opens the IRC windows in the provided server and port, Heavenly place by Default. <tt>Ircsay [Msg]:</tt> Says the given text in the IRC, could be used to auto identify your self by pressing {{key|F7}}<pre>bind f7 "ircsay /identify *password*</pre> Could also be used to Auto-Load the irc once the game starts by adding<pre>irc</pre>In the autorun.txt file Note: the Brackets [] aren't needed in the commands, it can just be.<pre>ircsay hey guys</pre> Another command is <tt>exec</tt>, it's useful for loading a sequence of commands from a text file, among other things... It could be used like this... <pre>bind F7 "exec irc.txt"</pre> irc.txt could have the following in it... <pre>ircsay /part #lobbyircsay /identify *password*ircsay /join #town channel or suchircsay Hey guys.</pre> For more information about the new IRC commands, visit the [[Setting up IRC in the client]] page. [[Category:Technical Details]][[Category:Babel/C]]
1,465

edits

Navigation menu