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


Joined: 20 Nov 2004
Posts: 38

PostPosted: Thu Aug 04, 2005 5:49 pm   

Database Question and also one about #echo
 
Ok, I am trying to get a simple script to sort my vials using the database worked out. I have been able to get almost all of it done except one small part. It doesn't want to display the final toxin.

Here is the output to my screen when I type in the following alias -

Code:
#alias {tstat} {#LOOPDB @toxincount {#IF %eval( %val<>0) {#ECHO You have %db( @toxincount, %key) %db( @toxinnames, %key)}}
#ECHO Empty vials: @empty}



You have 4 vials of the toxin Mercury
You have 3 vials of the toxin Noctec
You have 2 vials of the toxin Aconite
You have 2 vials of the toxin Benzedrine
You have 2 vials of the toxin Arsenic
You have 2 vials of the toxin Opium
You have 2 vials of the toxin Xeroderma
You have 2 vials of the toxin Strychnine
You have 4 vials of the toxin Ciguatoxin
You have 1 vials of the toxin Botulinum
You have 3 vials of the toxin Mazanor
You have 1 vials of the toxin Mebaral
You have 4 vials of the toxin Bromine
You have 3 vials of the toxin Iodine
You have 1 vials of the toxin Oxycodone
You have 1 vials of the toxin Atropine
You have 2 vials of the toxin Ether
You have 1 vials of the toxin Lindane
You have 2 vials of the toxin Metrazol
You have 3 vials of the toxin Vitriol
You have 2
Empty vials: 11


As you can see, its not wanting to display the final name, which should be 'vials of the toxin Benzene'.

Now, when I do the same thing with a code for my healing vials,

Code:
#alias {hstat} {#LOOPDB @healcount {#IF %eval( %val<>0) {#ECHO You have %db( @healcount, %key) %db( @healnames, %key)}}
#ECHO Empty vials: @empty}


I get the following output.

You have 3 vials of the elixer Immunity
You have 4 vials of the elixer Speed
You have 3 vials of the elixer Venom
You have 3 vials of the elixer Levitation
You have 3 vials of the elixer Mana
You have 2 vials of the elixer Frost
You have 16 vials of the elixer Health
You have 2 vials of the salve Restoration
You have 5 vials of the salve Mending
You have 2 vials of the salve Epidermal
You have 4 vials of the salve Mass
You have 5 vials of the salve Caloric
Empty vials: 11


Any idea what can be causing the problem? I mean, my hstat displays all the vials I have and the other one doesn't
Reply with quote
Toihva
Novice


Joined: 20 Nov 2004
Posts: 38

PostPosted: Thu Aug 04, 2005 5:54 pm   
 
Nevermind, I goofed and mispelled a word
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