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


Joined: 26 May 2002
Posts: 30
Location: USA

PostPosted: 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
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: 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.
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: 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
}
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