|
bair Beginner
Joined: 31 Oct 2006 Posts: 22
|
Posted: 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. |
|
|
|
bair Beginner
Joined: 31 Oct 2006 Posts: 22
|
Posted: Mon Nov 20, 2006 9:28 pm |
my friend tried to use this same script and it works perfectly for him.
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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. |
|
|
|
|
|