mIRC Home    About    Download    Register    News    Help

Print Thread
#256167 26/12/15 07:04 PM
L
lance22
lance22
L
this protection works good but can i use those 3 just need help thts all

on @*:JOIN:#: if (%fld_temp. [ $+ [ # ] ] == $true) { return } | inc %bfld. [ $+ [ # ] ] | .timer -o 1 3 unset %bfld. [ $+ [ # ] ] | if (%bfld. [ $+ [ # ] ] >= 5) { set -u60 %fld_temp. [ $+ [ # ] ] $true | notice # Channel has been locked due to possible floods, please be patient. Thank you. | .raw MODE # +mR | .timer 1 60 .mode # -mR | .timer 2 61 .notice # Channel has been unlocked. Sorry for any inconvinience }

-----
on *:JOIN:#: {
if ($me isop #) {
if ( a !isin $nick ) && ( e !isin $nick ) && ( i !isin $nick ) && ( o !isin $nick ) && ( u !isin $nick ) && ( $asc($left($nick,3)) !isnum 65-97 ) && ( _ !isin $nick ) && ( ^ !isin $nick ) && ( - !isin $nick ) && ( 200 !isin $nick ) && ( ` !isin $nick ) && ($len($nick) > 3) && ( $mid($nick,1,1) != $mid($nick,2,1) ) && ( $mid($nick,1,1) != $mid($nick,3,1) ) && ( $right($nick,1) !isnum 0-9 ) && ( $asc($left($nick,1)) != 123 ) && ($nick != wyld) {
ban -u600 $chan $nick $+ !*@*
kick $chan $nick Possible spammer 10 minute ban
}
}
}
----
on *:START: { massjoin }
on *:LOAD: { massjoin }
on *:CONNECT: { massjoin }

alias -l massjoin { if ($hget(massjoin) == $null) { hmake massjoin 750 } }
alias -l abmj {
echo -a 12,1*!14 MASS JOIN KICKER II 12!*
echo -a 12,1*!14 By Neo Nemesis 12!*
echo -a 12,1*!14 http://mirc-deluxe.webs.com 12!*
}

on @*:JOIN:#: {
if (%massjoin == $true) {
set -u15 %mj1 $addtok(%mj1,$nick,44)
hinc -mu5 massjoin JOIN 1
if ($hget(massjoin,JOIN) >= 7) {
if (%modechan != $true) {
mode $chan +im
set -u15 %modechan $true
set -u15 %mj2 1
notice $chan 12*! 4MASS JOIN DETECTED12 !* 2- 12channel locked down for4 5-7 minuets.12 Sorry for any inconvenience this may cause.
.timermjs 1 300 mode $chan -im
}
while (%mj2 <= $numtok(%mj1,44)) {
if ($gettok(%mj1,%mj2,44) ison $chan) {
if (%mj2 <= 8) { .timermj $+ %mj2 1 %mj2 kick $chan $gettok(%mj1,%mj2,44) 2MASS JOIN KICKER II - By Neo Nemesis }
elseif (%mj2 > 8) { .timermj $+ %mj2 -m 1 $calc(790 * %mj2) kick $chan $gettok(%mj1,%mj2,44) 2MASS JOIN KICKER II - By Neo Nemesis }
}
inc %mj2
}
}
}
}
menu status,query,nicklist,channel {
MASS JOIN KICKER II - $iif(%massjoin = $true,ON,OFF)
.ON:/set %massjoin $true
.OFF:/set %massjoin $false
.About:/abmj
}

#256177 27/12/15 10:39 AM
Joined: Dec 2008
Posts: 1,483
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Try to put all each "ON JOIN" event into different script files into the script editor.

e.g:

File 1: one ON JOIN event

File 2: second ON JOIN event

File 3: third ON JOIN event

westor #256178 27/12/15 10:41 AM
L
lance22
lance22
L
u mean add those 3 deffent code deffent file u mean

#256179 27/12/15 10:54 AM
Joined: Dec 2008
Posts: 1,483
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Yes only the code of ON JOIN event (you have 3 on join codes)

also remove the -l from the alias into the following aliases:

Code:
alias massjoin { if ($hget(massjoin) == $null) { hmake massjoin 750 } }
alias abmj {
echo -a 12,1*!14 MASS JOIN KICKER II 12!*
echo -a 12,1*!14 By Neo Nemesis 12!*
echo -a 12,1*!14 http://mirc-deluxe.webs.com 12!*
}

westor #256180 27/12/15 10:57 AM
L
lance22
lance22
L
ok i just add it that mass join kicker how do i tst that

#256181 27/12/15 11:00 AM
L
lance22
lance22
L
on *:START: { massjoin }
on *:LOAD: { massjoin }
on *:CONNECT: { massjoin }

on @*:JOIN:#: {
if (%massjoin == $true) {
set -u15 %mj1 $addtok(%mj1,$nick,44)
hinc -mu5 massjoin JOIN 1
if ($hget(massjoin,JOIN) >= 7) {
if (%modechan != $true) {
mode $chan +im
set -u15 %modechan $true
set -u15 %mj2 1
notice $chan 12*! 4MASS JOIN DETECTED12 !* 2- 12channel locked down for4 5-7 minuets.12 Sorry for any inconvenience this may cause.
.timermjs 1 300 mode $chan -im
}
while (%mj2 <= $numtok(%mj1,44)) {
if ($gettok(%mj1,%mj2,44) ison $chan) {
if (%mj2 <= 8) { .timermj $+ %mj2 1 %mj2 kick $chan $gettok(%mj1,%mj2,44) 2MASS JOIN KICKER II - By Neo Nemesis }
elseif (%mj2 > 8) { .timermj $+ %mj2 -m 1 $calc(790 * %mj2) kick $chan $gettok(%mj1,%mj2,44) 2MASS JOIN KICKER II - By Neo Nemesis }
}
inc %mj2
}
}
}
}
menu status,query,nicklist,channel {
MASS JOIN KICKER II - $iif(%massjoin = $true,ON,OFF)
.ON:/set %massjoin $true
.OFF:/set %massjoin $false
.About:/abmj
}



like that

#256182 27/12/15 11:11 AM
Joined: Dec 2008
Posts: 1,483
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Yes like that.

westor #256183 27/12/15 11:15 AM
L
lance22
lance22
L
thx u for the help im getting this * /massjoin: not connected to server is that normal

#256184 27/12/15 11:18 AM
L
lance22
lance22
L
Unknown command: [MASSJOIN]

#256185 27/12/15 11:22 AM
Joined: Dec 2008
Posts: 1,483
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
You did not add the MASSJOIN alias into noone of the script files in the script editor, also all these must be into the "Remotes" tab!, try transfer the code carefully.

westor #256186 27/12/15 11:27 AM
L
lance22
lance22
L
ive add the code carefully. samething wired

on *:START: { massjoin }
on *:LOAD: { massjoin }
on *:CONNECT: { massjoin }

on @*:JOIN:#: {
if (%massjoin == $true) {
set -u15 %mj1 $addtok(%mj1,$nick,44)
hinc -mu5 massjoin JOIN 1
if ($hget(massjoin,JOIN) >= 7) {
if (%modechan != $true) {
mode $chan +im
set -u15 %modechan $true
set -u15 %mj2 1
notice $chan 12*! 4MASS JOIN DETECTED12 !* 2- 12channel locked down for4 5-7 minuets.12 Sorry for any inconvenience this may cause.
.timermjs 1 300 mode $chan -im
}
while (%mj2 <= $numtok(%mj1,44)) {
if ($gettok(%mj1,%mj2,44) ison $chan) {
if (%mj2 <= 8) { .timermj $+ %mj2 1 %mj2 kick $chan $gettok(%mj1,%mj2,44) 2MASS JOIN KICKER II - By Neo Nemesis }
elseif (%mj2 > 8) { .timermj $+ %mj2 -m 1 $calc(790 * %mj2) kick $chan $gettok(%mj1,%mj2,44) 2MASS JOIN KICKER II - By Neo Nemesis }
}
inc %mj2
}
}
}
}
menu status,query,nicklist,channel {
MASS JOIN KICKER II - $iif(%massjoin = $true,ON,OFF)
.ON:/set %massjoin $true
.OFF:/set %massjoin $false
.About:/abmj

#256187 27/12/15 11:34 AM
Joined: Dec 2008
Posts: 1,483
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Try to read what i said word by word and you will see that you forgot to add these aliases:

Code:
alias massjoin { if ($hget(massjoin) == $null) { hmake massjoin 750 } }
alias abmj {
echo -a 12,1*!14 MASS JOIN KICKER II 12!*
echo -a 12,1*!14 By Neo Nemesis 12!*
echo -a 12,1*!14 http://mirc-deluxe.webs.com 12!*
}

westor #256188 27/12/15 11:40 AM
L
lance22
lance22
L
it works thx u no error sorry abt b4 codes can frustred how do i test it smile


Link Copied to Clipboard