First, there is a plugin that implements buttons you can click (in a miniwindow). You can make those buttons do anything, such as speedwalking:
http://www.gammon.com.au/forum/?id=9280
Alternatively, if you want a menu you can do this:
1. Make an alias that uses the Menu function to pop up a menu in the command window. Like this:
<aliases>
<alias
match="speedwalk_menu"
enabled="y"
send_to="12"
sequence="100"
>
<send>
local locations = {
['Inn'] = '(recall) 2n 3w',
['Blacksmith shop'] = '(recall) 5s 2e d',
['Food and drink'] = '(recall) 2w',
-- add more here
} -- end of locations
-- build place names
local places = { }
for k, v in pairs (locations) do
table.insert (places, k)
end -- for
-- sort into alphabetic order
table.sort (places)
-- show the menu
local dest = Menu (table.concat (places, "|"))
-- check if cancelled
if dest == "" then
return -- nothing selected
end -- if
-- evaluate the corresponding speedwalk from the table
local speedwalk = EvaluateSpeedwalk ( locations [dest] )
-- see if an error in it
if string.sub (speedwalk, 1, 1) == '*' then
ColourNote ("red", "", speedwalk )
ColourNote ("red", "", "**Could not evaluate speedwalk string: '" .. locations [dest] .. "'")
return
end -- if bad speedwalk
-- if OK, send to the MUD
Send (speedwalk)
</send>
</alias>
</aliases>
For advice on how to copy the above, and paste it into MUSHclient, please see
Pasting XML.
The part in bold is what you could change to suit your MUD, or indeed keep them in a table which can be updated by using another alias (eg. "add_speedwalk name directions").
For saving tables see the post about serializing Lua tables:
http://www.gammon.com.au/forum/?id=4960
That would let you gradually build up the speedwalks as you wanted to and make the alias be non-specific to a particular set of directions.
With that alias installed, if you type "speedwalk_menu" then the alias is invoked, and pops up a menu. If you cancel by hitting Esc then nothing else is done. Otherwise it looks up the speedwalk in the table, evaluates it (turns it into real directions) and sends that to the MUD.
To save typing you can now use the Macros configuration window and make a certain key (eg. F2) send "speedwalk_menu" which means now you just hit F2 and choose a destination.