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


Joined: 26 Oct 2004
Posts: 3

PostPosted: Tue Oct 26, 2004 1:29 am   

Help with Capture
 
I have been trying to get the capture to work with tells and a couple of other channels. Here is how I setup the capture for tells:

#trigger {tells you}{#capture window}

Whenever I receive a tell all that I get in my capture window is:

[tells you,-> #cap window]


I have tried using the example on the site for capturing text but had the same results:

#TRIGGER {tells you} {#CAP tell;#GAG}


[tells you-> #CAP tell;#GAG]


Any help would be appreciated.

Thanks,

Jaegar
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Tue Oct 26, 2004 4:21 pm   
 
Code:

#if (@afk) {
  #if (!(%right( %2, (%len( %2)-1)) == "'")) {
    tell .%1 &+wSorry, I'm &+RAFK&+w atm, reason:&+W @afkreason &+w, please leave a &+Wdetailed&+w message concerning the issue you wish to have handled.
    #window tells {~[%time( )] %1, tells you, '%quote(%2)'}
    }
  } {#window tells {~[%time( )] %1, tells you, '%quote(%2)'}
}


That's how I capture text atm. Just a fancy message when I'm AFK.

both @afk and @afkreason are two variables set when I press a button (or macro-key combination)

Edit: My mistake, sorry. You'll have to remove the %quote or you will encounter trouble with strings that contain commas... but instead, without quote you'll encounter problems with strings that contain paranthesis... I haven't solved this one yet entirely...

Edit 2: Solved it. I used the variable %trigger instead of %1 or %2... so [%time( )] %trigger ..gl!
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