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
bair
Beginner


Joined: 31 Oct 2006
Posts: 22

PostPosted: Sun Nov 19, 2006 11:43 pm   

quest db problems
 
This is supposed to prompt me when i complete an item on a quest card...right now it is prompting me correctly, changing the variables correct, and saying that it has been added, but its not adding it to the database. if i just do #add qitem item="blah blah" mob/zone="blah blah" it works fine, but it wont work in the trigger w/ the variables.

Code:

#TRIGGER {You touch (&qitem) to a quest card, and * vanishes!} {
  qmob=%prompt( "", "What mob/room?")
  qzone=%prompt( "", "What zone?")
  #if %query( ((&item=@qitem)&(&mob=@qmob)&(&zone=@qzone))) {#show That item was already in the database.} {
    #new qitem Item=@qitem Mob/Room=@qmob Zone=@qzone
    #show A NEW item was added to the database.
    }


So basically everything works perfectly except it doesn't add the entry to the db.
Reply with quote
bair
Beginner


Joined: 31 Oct 2006
Posts: 22

PostPosted: Mon Nov 20, 2006 9:28 pm   
 
my friend tried to use this same script and it works perfectly for him.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Nov 22, 2006 3:48 pm   
 
Is the database open and online?


#DBLOAD database-name
#DBONLINE
Puts the database into Online mode so that scripting commands effect the user interface.
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