mIRC Home    About    Download    Register    News    Help

Print Thread
#151134 14/06/06 12:20 AM
Joined: Jun 2004
Posts: 25
Q
Quia Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jun 2004
Posts: 25
This script does not work.
Code:
on ^*:Notice:*:*: { if ($nick == Chanserv) set %bracket ( | set %ebracket ) { 
    if (# isin $1) {  echo 14 -mt $remove($1,%bracket,%ebracket) $$1- | halt }
    else echo 14 -mta - $+ $nick $+ - $$1- | halt 
  }
  else echo 14 -mta - $+ $nick $+ - $$1- | halt 
}


This one does.
Code:
on ^*:Notice:*:*: { if ($nick == Chanserv) set %bracket ( | set %ebracket ) { 
    if (%bracket $+ # isin $1) {  echo 14 -mt $remove($1,%bracket,%ebracket) $$1- | halt }
    else echo 14 -mta - $+ $nick $+ - $$1- | halt 
  }
  else echo 14 -mta - $+ $nick $+ - $$1- | halt 
}


WHYYYY?

#151135 14/06/06 03:44 AM
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
Here try this code You need to use echo -tmi2 to stop the message and replace it with the following code

Code:
 [color:red] 

on ^*:notice:*:?: {
if ($nick == Chanserv) { echo -tmi2 # $+(<,$remove($nick(#,$nick).pnick,@,+,),>) $1- | haltdef } 
  else { echo -tlmi2 $nick = $+(<,$nick,>) $1- | haltdef } 
}

 [/color]   




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
#151136 14/06/06 09:33 AM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
You're misusing the { } braces. That's bound to cause some problems.


Link Copied to Clipboard