Key Pad

Posted by WRTIII on Mon 20 Jan 2003 11:58 PM — 3 posts, 15,752 views.

Canada #0
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?
USA #1
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...
USA #2
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..