|
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: 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?
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Dec 20, 2010 6:31 pm |
I believe you're looking for %mapquery and #WALK
|
|
_________________ Asati di tempari! |
|
|
|
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: 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 |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
|
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: 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
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
|
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: 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
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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. |
|
|
|
|
|