murklin Newbie
Joined: 01 Apr 2009 Posts: 7
|
Posted: 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: |
#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. |
|