|
blkno1 Novice
Joined: 26 May 2002 Posts: 30 Location: USA
|
Posted: Tue May 03, 2005 11:22 am
Need a lil help. |
MUD output.
1. 05-05-02 06:02 Bob transfers 2,000,000 to the clan account.
Im trying to grab JUST the name and the amount.
This is what I have so far.
#TRIGGER {^(%d). (%d)-(%d)-(%d) (%d):(%d) (%a) transfers (%n) to the clan account.}
#VAR clanmem %7
#VAR donamount %8
It test ok with the trigger tester, but doesnt seem to grab the name correctly.
-bk |
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Tue May 03, 2005 11:53 am |
#TRIGGER {^%d. %d-%d-%d %d:%d (*) transfers (%n) to the clan account.}
Unless the name is always a single word, %a probably won't grab it everytime. |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Tue May 03, 2005 11:59 am |
Try this one:
#TRIGGER {^%d. %d-%d-%d %d:%d ([%w%s]) transfers ([%d,]) to the clan account.$} {
#VAR clanmem %1
#VAR donamount %2
} |
|
|
|
|
|