mIRC Home    About    Download    Register    News    Help

Print Thread
#113571 06/03/05 11:22 AM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
How can I get the next phrase someone says after a word?
Example: (stars are wildcards)

<nick> *help*
<other nick> *
<nick> how can i do this?

I want the script to 'listen' after the word help if spoken by the person 'nick' (even if it is in a sentence). I want the script to get the first phrase the nick says AFTER the help matchtext. In the case of the example this would be 'how can i do this?'

Is this possible and if so, how? Any help is extremely appreciated!

#113572 06/03/05 11:47 AM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
on *:text:*help*:#zethbot:{
if ( $nick == Testweenie ) { set %waiting on }
}
on *:text:*:#zethbot:{
if ( $nick == Testweenie $$ %waiting = on) { unset %waiting | echo $chan $1- }
}


This doesn't work. Could anybody help?

#113573 06/03/05 11:50 AM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
Nevermind, used && instead of $$ -_-


Link Copied to Clipboard