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
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Sat Dec 22, 2001 6:02 pm   

editing existing databases
 
i've added three new fields to an old databse. what i'm trying to do now, is #loopview the whole database, execute commands for each record, and adjust one of the new fields for that record.

main script:
#var openroom ""
#dbload ar
#loopview {
index = %rec.lvnum
#while (@index <= %rec.uvnum) {
#temp {No such location.} {#additem openroom @index}
goto @index
#wait
#add index 1
}
%rec.open_room = @openroom
#var openroom ""
}

its the line in blue that just doesnt work. i've tried replacing it with this:

#dbput %rec open_room @openroom

and that came close to working, put it only put the variable into 1 record

any suggestions?
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Sat Dec 22, 2001 6:37 pm   
 
ok, i fixed it
the command

#addkey open_room @openroom

works perfectly. i'm still a little confused about why :

#dbput %rec open_room @openroom

didnt work tho
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