mIRC Home    About    Download    Register    News    Help

Print Thread
#26911 29/05/03 04:18 PM
C
Chandler
Chandler
C
Hi, can some1 tell me a good script that when i set a variable to away, nothing changes, just when some1 says my nick in a chan or pm's me, that an auto-msg to either the chan either to the one who pm'ed me is shown? wink

#26912 29/05/03 04:31 PM
Joined: May 2003
Posts: 174
P
Vogon poet
Offline
Vogon poet
P
Joined: May 2003
Posts: 174
Channel:

on *:TEXT:$(* $+ $me $+ *):#:{
if (%variable) { .msg $chan <message here> }
}

PM:

on *:TEXT:$(* $+ $me $+ *):?:{
if (%variable) { .msg $nick <message here> }
}


Is that what you want?

#26913 29/05/03 04:33 PM
Joined: Dec 2002
Posts: 698
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 698
Code:
on *:text:$($+(*,$me,*)):*:{
  ; check if the variable for away is set
  if %awayvariable {
    ; check if $nick has been told in the last 5 mins
    if !%away. [ $+ [ $site ] ] { msg $iif($target ischan,#,$nick) I'm away right now $nick }
    inc -u300 %away. $+ $site
  }
}

#26914 29/05/03 04:36 PM
C
Chandler
Chandler
C
Quick response, that's why i like it here, thnx guys... smirk


Link Copied to Clipboard