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
ebaptist
Newbie


Joined: 16 Oct 2002
Posts: 7
Location: USA

PostPosted: Thu Mar 31, 2005 4:36 am   

Zmud Alias and Speedwalking Problem. Please Help
 
I am having a problem with this script. I am trying to use the alias walk. Which shows available paths in the status window.

Problem #1 the STW doesnt pop up automatically i have to manually show it.

Problem #2 the script works down to the very end but when its time to run the path its not working. I have it setup to allow the user to choose a reverse path or not. Neither work. I get what do you want me to do prompt. The mud doesnt even recognize #re so i must have a formatting problem. I am not a great script writer and im sure this whole script could be made much better. I am trying though. Please help.
Code:

#CLASS {Scripts|Speedwalk} {enable}
#ALIAS walk {@start = %1;@finish = %2;@start2 = "";#if (@finish = "") {#if (@start = "") {#echo "";#STW + %ansi( high, green)"Possible Locations";#FORALL @{@location} {#STW + %ansi( high, white)%i};#PR start "Which location are you starting from in the list?"};#IF (@start = "Dungeon Deceit") {#STW + %ansi( high, green)"Deciet Starting Locations";#FORALL @{"DeceitStart"} {#STW + %ansi( high, white)%i};#pr start2 "Which Area:"};#IF (@start > 0) {#STW + %ansi( high, green)"Possible Destinations";#FORALL @{"@start"} {#STW + %ansi( high, white)%i};#PR finish "Where are you going to"}};#if ((@finish > 0) AND (@start > 0)) {#STW + %ansi( high, RED)"We're Walking.. We're Walking";#Pr Reverse "Are you running this path in reverse? (Y or N)";@start = @start @start2;@final = @start- @finish;#if (@reverse="y") {#RE @quote@final@quote};#if (@reverse="n") {"."@quote@final@quote}}}
#VAR start {Dungeon Deceit 1st}
#VAR finish {2nd Teleport}
#VAR Rune West {Avarice|Lasler|New Rigel South|Rune Forest|Xaventry Pt 1|Xaventry Pt 2}
#VAR location {a Bazaar|Dungeon Deceit|Dungeon Wroth|Eastern Road|Lowangen|Maldra's Keep|Mandrake Woods|New Rigel North|New Rigel South|Pirates Cove|Rune West|Sigil North|Sigil South|Tavern Boar|Tellerium North|Templeton|Traveller's Retreat|Twin Moons|Xaventry North}
#VAR DeceitStart {1st|chamber|Recall|After Snow Tele}
#VAR start2 {1st}
#VAR Dungeon Deceit {2nd Teleport|Earth Teleport|Fire Dragon|1st Teleport|Guardian of Time|Snow Teleport|Water Teleport}
#VAR Bazaar {Eastern Road}
#VAR Dungeon Wroth {Teleport}
#VAR Eastern Road {Twin Moons Inn}
#VAR Lowangen {Desert Thorne}
#VAR Maldra's Keep {Dungeon Deceit}
#VAR Mandrake Woods {Shadow Castle}
#VAR New Rigel North {Bazaar|Boar Tavern|Dungeon Wroth|Twin Moons Inn DD|Xaventry}
#VAR New Rigel South {New Rigel North|Traveller's Retreat}
#VAR Pirates Cove {Maldra's Keep}
#VAR Sigil North {Vospire East}
#VAR Sigil South {Diocletian}
#VAR Tavern Boar {Dungeon Wroth}
#VAR Tellerium North {Templeton}
#VAR Templeton {Frost Giant Keep}
#VAR Traveller's Retreat {Rune West}
#VAR Twin Moons {Desert Thorne}
#VAR Xaventry North {Mandrake Woods}
#VAR quote {"}
#CLASS 0


Sample Paths

Code:

#PATH {New Rigel North - Bazaar} {2j2ejnh2nh8nh15nh2nh9nj5nj2njn4jn4jnj3nj2nj2n2j2n3jn4jn3j9n2h6nh2nh4nh2n2h12nj5nj7nh3nhnhnh2n}


Sample Image of Script
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Mar 31, 2005 10:46 am   
 
1. #STW on
2. Is little trickier. First you have this:
@start = %1;@finish = %2;@start2 = ""
Should be:
start = %1;finish = %2;start2 = ""
And this:
@start = @start @start2;@final = @start- @finish
Should be
start = %concat(@start," ",@start2);final = %concat(@start," - ",@finish)
Finally:
#if (@reverse="y") {#RE @quote@final@quote};#if (@reverse="n") {"."@quote@final@quote}
Should be:
#if (@reverse="y") {#RE {@final}} {#WALK {@final}}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
ebaptist
Newbie


Joined: 16 Oct 2002
Posts: 7
Location: USA

PostPosted: Fri Apr 01, 2005 1:37 am   
 
Looks good i tried to impliment it all seemed ok until this part

#if (@reverse="y") {#RE {@final}} {#WALK {@final}}
^ identifier expected

I made it {#RE @final} error went away.

Problem is this it sends #RE New Rigel North - Bazaar
Resulting in se s nw w e w s being sent to the mud. Thats not the path.

I need it so it sends #RE "New Rigel North - Bazaar" and uses the path.

Also note #WALK is for mapped areas which you cant do with this mud. Its the wilds and they are incredibly huge at least 45000 rooms. Why we use speedwalks for them.
I read and see that . and .. would work

Code:

start = %concat( @start, " ", @start2)
final = %concat( @start, " -  ", @finish)
#IF (@reverse="y") {#RETRACE %concat( @quote, @final, @quote)} {%concat( ".", @quote, @final, @quote)}


For the forward walk
Code:

[SAFE]<236/236/0hp 437/437/0sp 331/331/0st>
."New Rigel North  -  Bazaar"
I don't understand your wish.

For the reverse walking
Code:

se
s
nw
w
e
w
s


It seems to me its sending the information to the mud not the ZMUD Client, would that be accurate
Thanks for the reply
Reply with quote
ebaptist
Newbie


Joined: 16 Oct 2002
Posts: 7
Location: USA

PostPosted: Sat Apr 02, 2005 4:32 pm   
 
hmm still not working quite right.. ahh well.. work on it as i can.
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