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
gasolin
Novice


Joined: 17 Aug 2002
Posts: 31
Location: Denmark

PostPosted: Wed Jun 11, 2003 8:51 pm   

New to Database
 
Hi agian

I have made a database to store all the roomnum in a zone.
Its Name Walk and have 2 fields.

RoomNumber Type Number
Check Type Boolean Display Format Yes/No

I have a alias with this value:
#VAR NextRoom 125
#UNTIL (@NextRoom = 1216) {
#UNTIL (%roomname(@NextRoom)<>"") {#ADD NextRoom 1}
#VAR Room ""
#ADDKEY Room RoomNumber @NextRoom
#ADDKEY Room Check No}

The 125 is the first RoomNum and 1216 is the last,
the 2 #Until is there because there are "holes"
between 125 and 1216.

I want to use the db to check if I have been in
the room before
#TRIGGER {~<(%n)hp (%n)sp (%n)st>} {
#VAR Room ""
#ADDKEY Room RoomNumber %RoomNum
#ADDKEY Room Check Yes} {nocr|prompt}

I know Iam doing something very worng with the #ADDKEY,
but I hope you can understand and help me.

Gasolin
Denmark
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