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
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: Thu Oct 20, 2005 5:04 pm   

Matching partial Zone Names
 
Im currently using areavnum=%zonenum( @qarea)
to pull the ZoneID out of the mapper but if @qarea isnt an exact name in the mapper it fitters out on me, anyway to get zmud to match partial names like this?
_________________
The Seaworthy
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Thu Oct 20, 2005 7:09 pm   
 
Have you taken a look at %mapquery yet? You can use the 'LIKE' syntax from SQL to do partial matches on the map database.
Reply with quote
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: Thu Oct 20, 2005 7:50 pm   
 
I tried this but it didnt return anything
_________________
The Seaworthy
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Oct 20, 2005 8:08 pm   
 
%mapquery is restricted to the ObjTbl, whereas zone names are stored in the ZoneTbl. You can always loop through the zones getting all the names with %zonename and comparing that with %pos.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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