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


Joined: 25 Aug 2002
Posts: 13
Location: Australia

PostPosted: Sun Sep 22, 2002 5:18 pm   

problem with db and #var
 
Can't figure this out here is my code i'll put the problem after it

the trigger is
you have slain (*)
code is
#var dbrecord ""
#addkey dbrecord mob %1
#addkey dbrecord room %roomnum
#addkey dbrecord time %time( hhmm)
#new hourly @dbrecord


the problem is that mob allway's turns into the first word not a problem except that sometimes the letter A is put in, and that's all that's getting recorded, i even tried useing #var to put %1 into a var but the var ends up the same, just the first word,

it's possible i'm going about the entire thing wrong, basicly i have mobs that reset every hour, i want to automaticly record each mob killed, and 1 hour later let me know it's back and where it is, (using the zmapper's roomnum would be best,

right now i'm having trouble recording the mobs name specialy with multiple words involved,

anyway all advice welcome
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Sep 22, 2002 6:09 pm   
 
When %1 is likely or even possibly going to contain more then one word surround it in either ""'s or ()'s.

#addkey dbrecord mob "%1"
#addkey dbrecord mob {%1}
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