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
murklin
Newbie


Joined: 01 Apr 2009
Posts: 7

PostPosted: Wed Apr 01, 2009 5:42 am   

Database Question
 
I'm pretty new to scripting so this has been stumping me for a few days now. Basically what I'm trying to do is have a trigger that when someone asks me someone's name, I pull their info from a DB and respond with the appropriate info.
So what I have right now is a Database named Paths, in which I have some people's info.

What I can't seem to get to happen is having it #FIND the person people are asking me about. I've tried (*), %numbers %letters, nothing seems to work. The trigger as it stands is:
Code:
^(%w) tells you 'lookup=(*)'

which does...
Code:

#DBLOAD Paths
#wait 500
#FIND %2
tell %1 Name: &name  Path: &Path


I'm obviously doing something wrong, but I don't know how to fix it, I've read all the help files on variables and the like and not seeming to be able to pull it off.


Edit: I kinda got it working with this trigger:
Code:
lookup=(*)'

Code:
#FIND %1
reply |wPlayer: |C&Name|w Race: |C&Race|w Path: |C&Path


but I really would prefer having it TELL the person and not reply so I know who is using it or who is spamming me out if someone chooses to do that.
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