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
gasolin
Novice


Joined: 17 Aug 2002
Posts: 31
Location: Denmark

PostPosted: Tue May 27, 2003 6:52 pm   

Mapquery
 
Hi

Is there a way to make the mapquery only show the room found from a single zone.

This I have find in a old message, but it dosent work
#MAPQUERY {[Name] LIKE 'kitchen' AND [Zone] LIKE 'Tellerium'}


And is there a way to walk true all the rooms in a zone via the vNum ?

Gasolin
Denmark
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue May 27, 2003 11:25 pm   
 
The problem is that the table in the datbase that has all the rooms, does not store the names of the zones, but rather an ID. So you would have to have it match [ZoneID] and know the ID of the zone you want. To find out the ID of a zone, use the %zonenum function.

As for walking all rooms in a zone, you could loop through all the rooms in the zone and use %walk function to get the path to the room. Then using the onwalkend alias, you could have it continue to the next, until it has walked to each room.

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