Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Lua ➜ speedwalk aliases for "other" directions

speedwalk aliases for "other" directions

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Arana   (20 posts)  Bio
Date Sat 28 Aug 2010 11:10 PM (UTC)

Amended on Sun 29 Aug 2010 12:57 AM (UTC) by Arana

Message
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
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


7,040 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.