|
Glinka Wanderer
Joined: 20 Dec 2000 Posts: 53 Location: USA
|
Posted: Wed Jan 07, 2004 2:48 am
automapdead, any script walking help? |
The automapper wont work for me, so i wish
to use scripts to slow/speedwalk to places.
There are prolly several ways to do this,
can anyone give me a pointer or two?
Things i have wondered about were..
#loopdb
#loopview
( i think you can open db by using menu command from a script?)
or mebbe some way to read a file and put the #wa
command after each entry?
or mebbe %item(n|s|s|se|..etc,{#loop1,50})
or a variable?
#var spdwk-town2fort
#FORALL @spdwk-town2fort {%i}
...or...
<%expandlist( @spdwk-town2fort, "#wa")>
right now I'm using something like this..
n
#wa
n
#wa
se
#wa
etc... and it seems to work, but is alot of typing.
My mud has a 5 command que, so i can't send alot of commands at once
..hence the #wa to wait for mud output.
The areas i would walk to have about 50 commands to get to each place
Thanks for any ideas at all..
G. |
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Wed Jan 07, 2004 5:28 am |
Hmm, if doing a speedwalk, you could slowwalk.
Make a trigger on the possible outputs from the mud after successfully going a direction, to do the #ok command.
Then, when you do: #slow .s2w2nw, after you go south and receive one of those messages, it receives the #ok command, and starts going west.
If it does not receive the #ok command within the timeout period, it will stop the slowwalk.
The timeout period is 5 seconds by default, and can be changed in Preferences->Slowwalking. |
|
|
|
Glinka Wanderer
Joined: 20 Dec 2000 Posts: 53 Location: USA
|
Posted: Wed Jan 07, 2004 10:36 am |
Im havin trouble with speed/slow walk
so i was hoping for an alternative using scripts or
variables..or mebbe the db?
Thanks again,
G. |
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Wed Jan 07, 2004 11:47 am |
I have an alternative idea for you:
#alias n {#if (%numitems(@directionstogo)>0) {#var directionstogo {%additem("n",@directionstogo)}} {#var directionstogo {"n"};nextdir}} {autodir}
#alias s {#if (%numitems(@directionstogo)>0) {#var directionstogo {%additem("s",@directionstogo)}} {#var directionstogo {"s"};nextdir}} {autodir}
#alias e {#if (%numitems(@directionstogo)>0) {#var directionstogo {%additem("e",@directionstogo)}} {#var directionstogo {"e"};nextdir}} {autodir}
#alias w {#if (%numitems(@directionstogo)>0) {#var directionstogo {%additem("w",@directionstogo)}} {#var directionstogo {"w"};nextdir}} {autodir}
#alias u {#if (%numitems(@directionstogo)>0) {#var directionstogo {%additem("u",@directionstogo)}} {#var directionstogo {"u"};nextdir}} {autodir}
#alias d {#if (%numitems(@directionstogo)>0) {#var directionstogo {%additem("d",@directionstogo)}} {#var directionstogo {"d"};nextdir}} {autodir}
#alias nw {#if (%numitems(@directionstogo)>0) {#var directionstogo {%additem("nw",@directionstogo)}} {#var directionstogo {"nw"};nextdir}} {autodir}
#alias ne {#if (%numitems(@directionstogo)>0) {#var directionstogo {%additem("ne",@directionstogo)}} {#var directionstogo {"ne"};nextdir}} {autodir}
#alias sw {#if (%numitems(@directionstogo)>0) {#var directionstogo {%additem("sw",@directionstogo)}} {#var directionstogo {"sw"};nextdir}} {autodir}
#alias se {#if (%numitems(@directionstogo)>0) {#var directionstogo {%additem("se",@directionstogo)}} {#var directionstogo {"se"};nextdir}} {autodir}
#alias nextdir {#IF (%numitems(@directionstogo)>0) {#T- autodir;%item(@directionstogo,1);#T+ autodir;#wait 2000;#delnitem directionstogo 1;nextdir} {}} {autodir}
#alias Slowwalkreset {#var directionstogo {%null}}
The last alias will reset the slowwalking, in case you lag out mid-speedwalk. Each new direction will be sent to the mud 2 seconds after the last. |
|
|
|
Kronas Wanderer
Joined: 28 Dec 2003 Posts: 62 Location: Australia
|
Posted: Tue Jan 20, 2004 3:23 am |
or just simply #alais {onroomenter}{#pause;#alarm (+2){#step}
|
|
|
|
NeverNor Novice
Joined: 18 Nov 2006 Posts: 32
|
Posted: Mon Nov 20, 2006 8:08 am |
yes
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|