Bryghtfalcon Newbie
Joined: 01 Dec 2003 Posts: 1
|
Posted: Mon Dec 01, 2003 11:09 pm
Unknown script error |
I need help getting this script to work.
I didn't write this, one of our very talented coders did. However, I tried to install it today, and it won't work. when I use the "runto <filename>" I get the response "Opened aardwolf.sw as file 1". It is then supposed to echo "Running to <file name>" and "end". It does not. At this point, my refresh button goes crazy. Here is the script, written by Danj.
#ALIAS swfile {swfname=%1}
#ALIAS swtell {getsw %1;#IF (@swexist) {tell %2 @swtitle = @swinfo}}
#ALIAS swlist {swname="";swnum=1;#FILE 1 @swfname;#WHILE (@swname != "end") {swname=%read(1,@swnum);#IF (@swname != "end") {#ADD swnum 1;swtitle=%read(1,@swnum);#ADD swnum 2;#ECHO @{swtitle}: @swname}};#CLOSE 1}
#ALIAS runto {getsw %1;#if (@swexist) {#ECHO Running to @swtitle;#LOOP 1,%numwords(@swinfo,";") {%word(@swinfo,%i,";")}}}
#ALIAS getsw {swname="";swnum=-2;#FILE 1 @swfname;#WHILE (@swname != %1 & @swname != "end") {#ADD swnum 3;swname=%read(1,@swnum)};#IF (@swname != "end") {#ADD swnum 1;swtitle=%read(1,@swnum);#ADD swnum 1;swinfo=%read(1,@swnum);swexist=1} {#ECHO Speedwalk %1 doesn't exist in @swfname;swexist=0};#CLOSE 1}
#VAR swname {}
#VAR swinfo {}
#VAR swfname {aardwolf.sw}
#VAR swnum {}
#VAR swtitle {}
#VAR swexist {} |
|