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 ➜ VBscript ➜ Key Pad

Key Pad

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


Posted by WRTIII   Canada  (76 posts)  Bio
Date Mon 20 Jan 2003 11:58 PM (UTC)
Message
I have the directions of my key pads setup for WALK E WALK S WALK N WALK W WALK NE Etc. right now

but when I am on a horse I need then to be RIDE E RIDE S RIDE W... Etc.

Is there an easy way I can make it change? so that say when I type in MOUNT HORSE It doesn't only send Mount Horse to the game but it always changes the keypad from walk to ride and back with dismount?
Top

Posted by PJ   USA  (48 posts)  Bio
Date Reply #1 on Tue 21 Jan 2003 02:04 AM (UTC)
Message
Copy the following down to the dashes and stars and then click File then click on Import and click on the Clipboard button.

<aliases>
<alias
name="MoveBy *"
script="Changemovement"
match="Moveby *"
enabled="y"
expand_variables="y"
>
</alias>
<alias
name="Westward"
match="XXX-Gowest"
enabled="y"
expand_variables="y"
>
<send>walk w</send>
</alias>
<alias
name="Northward"
match="XXX-Gonorth"
enabled="y"
expand_variables="y"
>
<send>walk n</send>
</alias>
<alias
name="Eastward"
match="XXX-Goeast"
enabled="y"
expand_variables="y"
>
<send>walk e</send>
</alias>
<alias
name="Southward"
match="XXX-Gosouth"
enabled="y"
expand_variables="y"
>
<send>walk s</send>
</alias>
<alias
name="Southwestward"
match="XXX-Gosouthwest"
enabled="y"
expand_variables="y"
>
<send>walk sw</send>
</alias>
<alias
name="Northwestward"
match="XXX-Gonorthwest"
enabled="y"
expand_variables="y"
>
<send>walk nw</send>
</alias>
<alias
name="Northeastward"
match="XXX-Gonortheast"
enabled="y"
expand_variables="y"
>
<send>walk ne</send>
</alias>
<alias
name="Southeastward"
match="XXX-Gosoutheast"
enabled="y"
expand_variables="y"
>
<send>walk se</send>
</alias>
</aliases>

***************************************************************************************
---------------------------------------------------------------------------------------
***************************************************************************************



Now.. You have to add the following (down to the dashes and stars) to your VBScript..


sub Changemovement (sName, sLine, wildcards)
  world.deletealias "Westward"
  world.addalias "Westward", "XXX-Gowest", wildcards (1) + " west", 512 + 1, ""
  world.deletealias "Northward"
  world.addalias "Northward", "XXX-Gonorth", wildcards (1) + " north", 512 + 1, ""
  world.deletealias "Eastward"
  world.addalias "Eastward", "XXX-Goeast", wildcards (1) + " east", 512 + 1, ""
  world.deletealias "Southward"
  world.addalias "Southward", "XXX-Gosouth", wildcards (1) + " south", 512 + 1, ""
  world.deletealias "Southwestward"
  world.addalias "Southwestward", "XXX-Gosouthwest", wildcards (1) + " sw", 512 + 1, ""
  world.deletealias "Northwestward"
  world.addalias "Northwestward", "XXX-Gonorthwest", wildcards (1) + " nw", 512 + 1, ""
  world.deletealias "Northeastward"
  world.addalias "Northeastward", "XXX-Gonortheast", wildcards (1) + " ne", 512 + 1, ""
  world.deletealias "Southeastward"
  world.addalias "Southeastward", "XXX-Gosoutheast", wildcards (1) + " se", 512 + 1, ""
  world.note "Changed Directions"
end sub


***************************************************************************************
---------------------------------------------------------------------------------------
***************************************************************************************


And change 1 to XXX-Gosouthwest, 2 to XXX-Gosouth, 3 to XXX-Gosoutheast, notice a pattern, I dont wanna type them all out ;)


And now you have your own "Monkey's Numpad Walking System"!
Hmm.. Better come up with a better name for that...
Top

Posted by PJ   USA  (48 posts)  Bio
Date Reply #2 on Tue 21 Jan 2003 02:06 AM (UTC)
Message
Oh, and for you you'll need an alias so when you type Mount Horse it types MoveBy Ride, basic alias, too lazy to do it for ya ;)

2nd person I've actually helped, feeling smart again! Lol..
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.


13,424 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.