|
Septe Novice
Joined: 12 Oct 2000 Posts: 38 Location: USA
|
Posted: Mon Apr 22, 2002 4:49 am
A speedwalk system |
I have a speedwalk system that can be popped into any mud. dacheeba had a question regarding alphabetizing his system which Drevarr replied with a system using grep. I had been toying with such a system and took his basic idea and extended it. I play on Aarwolf and even though it was made for aardwolf, this can be used with any major mud. This alias is very fast. I tested it by copying my speedwalk file which contained over 200 lines of speedwalks and copied it 9 times. Then I made the last keyword a unique keyword and it was as fast as the original file.
Note: This alias could make a good search alias for whatever you want. Just remember that grep reports each line. I hope this will be useful for you all.
Now, the explanation of how to use it. You can put one keyword per area. Each line is broken up into three chunks. First is the keyword and this keyword must be unique. You can't have arachnos and arachnos1. The alias will list out both and not run the speedwalk. I could take out the ^ from the grep but then you'd want to remove the middle chunk of information and just have the keywords chunk and then the speedwalk. I happen to like having the area name listed as I am running to the area. If you don't put a destination, in other words, just type dest, it'll tell you to type a keyword. If you type just a letter or two or more, it'll list out those keywords unless there was only one and then it'll run the speedwalk.
CODE
----------------------------
#alias dest
#VARIABLE check ""
#IF (%numparam( ) > 0) {
#FILE 1 "aardwolf.txt"
check = %grep( 1, "^%1")
#IF (%null( @check)) {#SAY No sw found!} {
#var numcheck %numitems( @check)
#var loopbegin 1
#IF (%numitems( @check) > 3) {
#while (@loopbegin < @numcheck) {
#SAY %item( @check, @loopbegin)
#add loopbegin 3
}
} {
#SAY %item( @check, 2)
#LOOP 1,%numwords( %item( @check, 3), ";") {%word( %item( @check, 3), %i, ";")}
}
}
#CLOSE 1
} {
#say Please enter a speedwalk keyword!
}
The following is the format the above alias expects the information in. NOTE: each line is one keyword with the area name and the speedwalk, all on one line.
=============================================
arachnos2|Arachnos Part 2|run 2s4w3n2e3nw2n8ws2wnwu
arboria|Arboria / Onyx Tower|run 2s3w;open west;run w3n2e3nw2n8w3nene6ne2n2e3ne3n3w3nwnws2wn3ws2w3s2w2se3s2e2swsws2w14swsw |
|
|
|
Septe Novice
Joined: 12 Oct 2000 Posts: 38 Location: USA
|
Posted: Tue Apr 23, 2002 5:25 am |
After careful thought and decided to try having my speedwalk file issue out zmud commands. I already know that you can issue any command besides the speedwalk that the mud accepts. The trick was to get the alias to extract out the zmud commands.
Apparently, once zmud processes the text file, it dumps it directly into command stream to the mud. I was wondering if anyone knows of a way which an alias can process a text file for zmud to process. One benefit to this would be to offload little used aliases that only apply at different times. Does anyone have any thoughts on this or any thoughts of improving the above alias?
Thanks,
Septe |
|
|
|
Pega Magician
Joined: 08 Jan 2001 Posts: 341 Location: Singapore
|
Posted: Mon Apr 29, 2002 8:18 pm |
If I am not mistaken you are thinking about loading certain ZMud aliases and commands only when required.
Besides turn classes on and off, which could could get too cluttered when there are too many areas in the game...
Here are a few ways I can think of:
1) #Load a individual settings file for each area in the game.
2) Parse and #Execute commands stored in your text file, you can use %grep() or %read() access specific lines.
3) #Read a script file to load a set of commands, I guess you will have to disable 'Autosave on exit' under General Preferences, so that these settings are not saved permanently while being used.
Alternatively, you can store your speedwalks and associated commands in the ZMud database instead of a textfile.
I don't use Speedwalks because my favourite mud has a breath system, which stops you from running from point A to point B with a press of a key.
I don't use Maps because I commit entire zones to memory. ;)
Navigating a zone is more than just blind movement when you have wandering mobs, and players who will hunt you down. |
|
|
|
Sildaren Wanderer
Joined: 19 Jul 2001 Posts: 59 Location: Germany
|
Posted: Mon Apr 29, 2002 8:52 pm |
If you replace the line:
#LOOP 1,%numwords( %item( @check, 3), ";") {%word( %item( @check, 3), %i, ";")}
by
#LOOP 1,%numwords( %item( @check, 3), ";") {#EXEC {%word( %item( @check, 3), %i, ";")}}
then you should be able to include any zMUD commands, as long as they don't contain a ";" within the command.
(not tested) |
|
|
|
|
|
|
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
|
|