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
peewee
Wanderer


Joined: 22 Oct 2000
Posts: 90
Location: Sweden

PostPosted: Sat Aug 10, 2002 12:29 am   

Speedwalking to closest room
 
Greetings and salutations!

I'm trying to create a small alias that will do the following:

1. Run to the closest shop.
2. Sell all loot.
3. Run to the closest bank (from the shop).
4. "deposit all coins".
5. Run back to where we started.

I know that I should use:
#MARK
And when I reach the bank:
#PATH lootpath
After depositing the coins:
#RETRACE lootpath
However, in some zones there are more than one bank/shop, and I want to be able to give the same ShortName to all banks/shops (banks are named "bank", and shops "shop" of course!)

Now, how do I
#WALK (closest bank)
and
#WALK (closest bank)
That is the question... We all want to loot-a-lot, don't we?


"May the Force be with you"
[url]peeweesweden@bredband.net[/url]
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Aug 10, 2002 2:43 am   
 
You could use %walk to return the speedwalk to the room and compare the speedwalk to each other to see which one is shortest. The problem is that zMUD will only return the speedwalk to the first room it encounters that has the name "bank".

You may be able, however, to store the names of all the different banks in a stringlist (like bank1|bank2|bank|etc.) and you could have a zone script for each zone to load the appropiate list into a variable when you enter that zone.

Otherwise, the other solution I'm thinking of involves the beta version, COM scripting and ADO. However, this way, it starts to get somewhat messy.

Kjata
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