speedwalk aliases for "other" directions

Posted by Arana on Sat 28 Aug 2010 11:10 PM — 1 posts, 8,847 views.

#0
this i needed to adjust to the paths we use in the mud i play

be sure to remove the "use speedwalk prefix character" or at least make it different than the one here

name your reversepath alias

_*

and here is the code that goes in the send window

local swpath = GetAliasInfo("%1",2)
local swpath = Replace(swpath,"h","(nw)", true)
local swpath = Replace(swpath,"j","(nw)", true)
local swpath = Replace(swpath,"k","(sw)", true)
local swpath = Replace(swpath,"l","(se)", true)
Send(EvaluateSpeedwalk(ReverseSpeedwalk(swpath)))



an the other for regular paths (not reverse)
name it

.*



local swpath = GetAliasInfo("%1",2)
local swpath = Replace(swpath,"h","(nw)", true)
local swpath = Replace(swpath,"j","(nw)", true)
local swpath = Replace(swpath,"k","(sw)", true)
local swpath = Replace(swpath,"l","(se)", true)
Send(EvaluateSpeedwalk(swpath))


in both set SEND TO SCRIPT and omit from OUTPUT
now create the aliases with your regular speedwalk directions lets say we have an alias named 'giants'
that contains '7wnsje3d6n'
to go there just type .giants
to return to where you were type _giants

IMPORTANT: your direction aliases must have a LABEL and the label is what will be used to call it (not the top part of the edit box but the alias label eg alias giants alias with directions will do nothing or will error out if you dont have it labeled as giants)

thats it