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


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Mon Apr 11, 2005 6:48 am   

Mapper SQL fields
 
#MAPQUERY {Name LIKE '%@room_to_find%'}
works fine, but i wanna go a step farther:

#MAPQUERY {Name LIKE '%@room_to_find%' AND Area LIKE '%@current_area%'}

Area gives an error stating: Area is not defined
Zone gives an unspecified error.

What exactly are the other SQL field names in the automapper?

Thanks in advance,
Private
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Mon Apr 11, 2005 10:06 pm   
 
The common ones and there type (I think they can all be used)
name - string
desc - string
hint - string
userstr - string
userint - int
cost - int
color - int
ZONEID - int

since zoneid is refrenced by a number you have to do some fancy footwork to select it properly and you will need the FULL zone name, also %zonenum() without a paramater will return the zonenum of the current zone you are in, in the mapper

#MAPQUERY {Name LIKE '%@room_to_find%' AND ZONEID LIKE '%zonenum(@current_area)'}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Tue Apr 12, 2005 7:18 am   
 
Thanks a ton, those field name/types should be added to the help file, would make like more simple :)

That was exactly what i was looking for, where'd ya find em? trial and error?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Apr 12, 2005 7:38 pm   
 
Opened the map database in access :p
_________________
Zmud Support Library
Zmud Knowledge Base
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