Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Bryghtfalcon
Newbie


Joined: 01 Dec 2003
Posts: 1

PostPosted: 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 {}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net