|
tbone235 Apprentice
Joined: 02 Nov 2002 Posts: 107 Location: Australia
|
Posted: Sat Jan 25, 2003 6:02 am
Walking and room finding |
OK, I would like to know if this is possible or not, many quests or campaigns in my mud give room names that the mob is in, what I would like to be able to do is capture that room name in a variable (EZ stuff) but then I would like it to on a certain command search the entire mud for that room name without me having to go into the mapper choose find and copy in paste it in then click ok.
Now something else would be that maybe I could capture this room name and assuming its the only room in that area that has that room name i would like to be able to just type walk (or use some alias) that would then walk to that room...
Maybe this can't be done, infact probly most likely can't be done, but if anyone has any ideas or helpful info plz share it with me. Tried looking in the help files but..didn't come up with too much. Thanks |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sat Jan 25, 2003 6:30 am |
Use something like:
quote:
#MAPQUERY {[Name] LIKE '%street%'
Then you select the room you wish and click on the walk button in the pop up
Map View.
Ton Diening |
|
|
|
tbone235 Apprentice
Joined: 02 Nov 2002 Posts: 107 Location: Australia
|
Posted: Sat Jan 25, 2003 6:31 am |
Kewl thanks so much! I will try that right away :)
|
|
|
|
tbone235 Apprentice
Joined: 02 Nov 2002 Posts: 107 Location: Australia
|
Posted: Sat Jan 25, 2003 6:44 am |
OK...I'm obviously missing something? Because well, the command itself doesn't seem to do anything so, can you plz explain it a little more. And I am using Zmud 6.16 automapper, so maybe that makes a diff?
Cause atm it doesn't do anything.
Thanks |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sun Jan 26, 2003 7:05 am |
Try upgrading to v6.40 with its faster mapper.
See the version history for reasons why.
Ton Diening |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Jan 26, 2003 9:30 pm |
Yes, of course the version makes a difference. #MAPQUERY wasn't introduced until version 6.37 according to the version history.
LightBulb
Senior Member |
|
|
|
tbone235 Apprentice
Joined: 02 Nov 2002 Posts: 107 Location: Australia
|
Posted: Wed Jan 29, 2003 2:32 am |
Ok...now that i've finally upgraded to 6.4 I can use the command, but... its sorta good but sorta not. Say for quests where i am given the room AND the area, can i use the same mapquery command and expand it to be a more complicated sql query so that i can say
#MAPQUERY {[Name] LIKE '%street%' AND [Zone] LIKE '%zonename%'} or something like that...
Also does this mapquery command *always* search every map, or is it based on what you have selected in the find room dialog box that you can open from within the mapper?
Thanks...have many more questions but...i'll stop there for now :) |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Wed Jan 29, 2003 3:02 am |
Yes, you should be able to make the query more complex like that. Also, this command searches the entire map, no matter what you may have selected or not.
Kjata |
|
|
|
tbone235 Apprentice
Joined: 02 Nov 2002 Posts: 107 Location: Australia
|
Posted: Wed Jan 29, 2003 3:10 am |
Well, i get errors if i try making it more complex...maybe seeings you know a lot more then me about it you could see if there's something i'm doing wrong? i dunno. But I keep getting Zone parameter has no default value Error :(
(current code)
roomname = %-1
zonename = %zonename( )
#MAPQUERY {[Name] LIKE '@roomname' AND [Zone] LIKE '@zonename'}
-----------
Probly doing something stupid...and I'm sure you'll point it out to me :P |
|
|
|
|
|