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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: Mon Dec 20, 2010 5:59 pm   

map
 
i have been looking for a command or function where i can query the map database to find the room im looking for and walk there, i have found it one time before but sense then i have not been able to locate it, or is there already a simple script out there to walk to rooms on the map?
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Mon Dec 20, 2010 6:31 pm   
 
I believe you're looking for %mapquery and #WALK
_________________
Asati di tempari!
Reply with quote
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: Mon Dec 20, 2010 6:40 pm   
 
i got mapquery from the help file and when i tired #SHOW %mapquery(%concat("Zoneid=",%zonenum," AND Name='name of room'")) it did not work

i also thought there was somethere that outputted the speedwalk to the room
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Dec 20, 2010 7:33 pm   
 
To find the name, you need to use "[Name]" rather than "Name", because Name is a special word in the map database system.
Reply with quote
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: Mon Dec 20, 2010 7:36 pm   
 
i actually think its a bug with the current version because [Name] does not work either unless i am doing something wrong, as i said i just copy/pasted that from the help file
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Dec 20, 2010 7:40 pm   
 
It has worked just fine for me on v. 3.xx, though I can't test it here from work.
Reply with quote
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: Mon Dec 20, 2010 7:53 pm   
 
i figured it out it does not take wildcard expressions the name has to be the complete name sorry for the confusion
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Dec 20, 2010 8:35 pm   
 
Yes, "=" only works if it is an _exact_ text match.

If you want a LIKE match, then use: "[Name] LIKE '%part of name%'"
This will match if "part of name" appears anywhere in the Name.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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