mIRC Home    About    Download    Register    News    Help

Print Thread
#152102 27/06/06 10:49 AM
Joined: Jun 2006
Posts: 79
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2006
Posts: 79
Anyone can help me fix it :-)

Code:
 

on @*:NICK: { if ($nick isreg #) { .signal -n q # $newnick $1- | haltdef } }
on @*:QUIT: { if (excess isin $1-) && ($nick isreg #) { .signal -n r # $nick $1- | haltdef } }
on @*:JOIN: { if ($nick isreg #) { .signal -n g # $nick $1- | haltdef } }
ON *:DEOP:#: { if ($nick == $me) { .signal -n s # $nick $1- | haltdef } }
ON @*:BAN:#: { if ($banmask iswm $address($me,0)) { .signal -n t # $nick $1- | haltdef } }
ON *:KICK:#: { .signal -n u # $nick $1- | haltdef }
on *:signal:*: { 
  if ($signal == g) {
    if ($level($2) == xsflood) { .signal -n d $1 $2 xsflood }
  }
  if ($signal == q) {
    if ($level($newnick) == badnick) { .signal -n d $1 $newnick badnick }
  }
  if ($signal == r) {
    .inc -u60 %xsflood. [ $+ [ $mask($fulladdress,3) ] ]
    if (%xsflood. [ $+ [ $mask($fulladdress,3) ] ] >= 3) {
      .auser xsflood $nick
      .timer 1 60 ruser xsflood $nick
    }
  }
  if ($signal == s) {
    if (($nick == $me) && ($opnick == $me) && ($nick == chanserv)) { halt }
    if (($opnick == $me) && ($nick !== $me)) {
      .cs op $1 $me
    }
  }
  if ($signal == t) {
    .msg chanserv invite $1
    .mode $1 -b $banmask 
  }
  if ($signal == u) {
    if ($nick == chanserv) { halt }
    if ($knick == $me) {
      .cs invite # 
      .timer 1 5 join #
    }
  }
}

 


$address($me,0) means ban lvl 1-9 ?

#152103 27/06/06 02:25 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
it might help us help you more if you stated what was wrong with it. Also, $address($me,0) is the equivalent of saying *!user@host. From the $mask identifyer in the help file:

$mask(address,type)
Returns address with a mask specified by type.

$mask(nick!khaled@mirc.com,1) returns *!*khaled@mirc.com
$mask(nick!khaled@mirc.com,2) returns *!*@mirc.com

The available types are:

0: *!user@host
1: *!*user@host
2: *!*@host
3: *!*user@*.host
4: *!*@*.host
5: nick!user@host
6: nick!*user@host
7: nick!*@host
8: nick!*user@*.host
9: nick!*@*.host

You can also specify a type of 10 to 19 which correspond to masks 0 to 9, but instead of using a * wildcard to replace portions of the host, mIRC uses ? wildcards to replace the numbers in the address.

This standard set of masks is also used in other identifiers and commands.


Those who fail history are doomed to repeat it
#152104 28/06/06 12:21 PM
Joined: Jun 2006
Posts: 79
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2006
Posts: 79
Thanks landonsandor. The codes above I have tested and its not working. I mean all were not working. Maybe got other hand can help me, cuz I really dont know to fix it. Thanks

#152105 28/06/06 01:56 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
but which part of that script isnt working? What is it supposed to do that it isnt doing? What desired affect is not happening? THAT would help us more than jsut raw code since there's a few things going on there


Those who fail history are doomed to repeat it

Link Copied to Clipboard