mIRC Home    About    Download    Register    News    Help

Print Thread
#26911 29/05/03 04:18 PM
Joined: May 2003
Posts: 29
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2003
Posts: 29
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: 177
P
Vogon poet
Offline
Vogon poet
P
Joined: May 2003
Posts: 177
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: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
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
Joined: May 2003
Posts: 29
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2003
Posts: 29
Quick response, that's why i like it here, thnx guys... smirk


Link Copied to Clipboard