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
Humpton
Apprentice


Joined: 10 Oct 2000
Posts: 158
Location: Chicago, IL

PostPosted: Thu May 25, 2006 6:58 am   

Parsing db Variables to a Channel
 
Hi there.

Hopefully this makes sense...

As lots of us do, I like to report some things to my group channel.

I thought I could create a database of the different things I want to report and then use the magical
gtell %db(@dbQuotes, quote1)
and all would be fine.

Using ADDKEY I have no problem getting into quote1 "I just leveled!", for example.

Catch is I'm actually sending '%db(@dbQuotes, quote1)' to the channel not 'I just leveled!".

Any thoughts?
_________________
Stay JOLLY!
H

___
Humpton lives like he types.... fast, and full of mistakes!
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Thu May 25, 2006 8:06 am   
 
put it in an alias for example.

Create a bobtell alias
in it
gtell BLAH BLAH

and i think it might be %item but without actually knowing whether gtell is a real command and some structure on if its a true database or a data record variable im not positive.

Its 4am ill check on this after i wake up.. if its still unanswered ill post a script
_________________
Confucious say "Bugs in Programs need Hammer"
Reply with quote
Humpton
Apprentice


Joined: 10 Oct 2000
Posts: 158
Location: Chicago, IL

PostPosted: Thu May 25, 2006 9:38 am   
 
Hmm, you're right. It does work out of an alias. Odd, but I can live with it.

Thanks!
H
_________________
Stay JOLLY!
H

___
Humpton lives like he types.... fast, and full of mistakes!
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu May 25, 2006 10:42 pm   
 
To expand it from the command line you would have to do gtell <%db(@dbQuotes, quote1)>
Also you must have allow <> for expansion checked in the prefrences.
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Humpton
Apprentice


Joined: 10 Oct 2000
Posts: 158
Location: Chicago, IL

PostPosted: Thu May 25, 2006 11:12 pm   
 
WOW! It's easy when you know how...

Thanks again!
_________________
Stay JOLLY!
H

___
Humpton lives like he types.... fast, and full of mistakes!
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