on *:TEXT:*:*: {
if ($1 == !addcmd) && ($nick isop $chan) && (!* iswmcs $2) && ($2 != !$read(C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc,ntw,* $+ : $+ $2 $+ : $+ *)) {
elseif (!$2) { msg $chan $nick More parameters needed. | halt }
elseif ($nick !isop $chan) { msg $chan $nick not enough access. | halt }
elseif ($2 == !addcmd) || ($2 == !delcmd) || ($2 == ! $+ $null) { msg $chan $nick Primary triggers cant be set. | halt }
elseif ($1 == !addcmd) && ($nick isop $chan) && (!* !iswm $2) { msg $chan $nick wrong syntax. | halt }
set %wildcardchk $3-
;yes wildcard
if (*$nick* iswm %wildcardchk) && (*$2* iswm %wildcardchk) {
write -il1 C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc on *:TEXT: $+ $2 $+ $chr(32) $+ $chr(42) $+ : $+ $chr(35) $+ : { describe $chr(35) $3- } | write C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt $2 $3- | write C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc1.txt $2 $3- $chr(91) $+ CREATED BY $+ $chr(93) $nick | /write -l4 C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html This page was modified on: $date(ddd mmm dd $+ $chr(44) yyyy) $chr(64) $time(h:nntt) <br><ol> | write -il7 C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html <tr><td $+ $chr(32) $+ nowrap $+ $chr(61) $+ $chr(34) $+ nowrap $+ $chr(34) $+ > $+ $chr(32) $+ $2 $+ $chr(32) $+ $chr(42) $+ $chr(32) $+ </td> <td> $3- </td></tr> | run -ns: C:\Users\CGI\AppData\Roaming\mIRC\scripts\ccftpbatch.bat
.timer 1 1 describe # $nick added $2 to $me $+ . Thank you for your addition. Click http://tinyurl.com/all-bot-commands for the complete list of commands.
.timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc | .timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt | .timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html
}
;yes wildcard
elseif (*$nick* !iswm %wildcardchk) && (*$2* iswm %wildcardchk) {
write -il1 C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc on *:TEXT: $+ $2 $+ $chr(32) $+ $chr(42) $+ : $+ $chr(35) $+ : { describe $chr(35) $3- } | write C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt $2 $3- | write C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc1.txt $2 $3- $chr(91) $+ CREATED BY $+ $chr(93) $nick | /write -l4 C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html This page was modified on: $date(ddd mmm dd $+ $chr(44) yyyy) $chr(64) $time(h:nntt) <br><ol> | write -il7 C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html <tr><td $+ $chr(32) $+ nowrap $+ $chr(61) $+ $chr(34) $+ nowrap $+ $chr(34) $+ > $+ $chr(32) $+ $2 $+ $chr(32) $+ $chr(42) $+ $chr(32) $+ </td> <td> $3- </td></tr> | run -ns: C:\Users\CGI\AppData\Roaming\mIRC\scripts\ccftpbatch.bat
.timer 1 1 describe # $nick added $2 to $me $+ . Thank you for your addition. Click http://tinyurl.com/all-bot-commands for the complete list of commands.
.timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc | .timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt | .timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html
}
;no wildcard
elseif (*$nick* !iswm %wildcardchk) && (*$2* !iswm %wildcardchk) {
write -il1 C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc on *:TEXT: $+ $2 $+ : $+ $chr(35) $+ : { describe $chr(35) $3- } | write C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt $2 $3- | write C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc1.txt $2 $3- $chr(91) $+ CREATED BY $+ $chr(93) $nick | /write -l4 C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html This page was modified on: $date(ddd mmm dd $+ $chr(44) yyyy) $chr(64) $time(h:nntt) <br><ol> | write -il7 C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html <tr><td $+ $chr(32) $+ nowrap $+ $chr(61) $+ $chr(34) $+ nowrap $+ $chr(34) $+ > $+ $chr(32) $+ $2 $+ $chr(32) $+ </td> <td> $3- </td></tr> | run -ns: C:\Users\CGI\AppData\Roaming\mIRC\scripts\ccftpbatch.bat
.timer 1 1 describe # $nick added $2 to $me $+ . Thank you for your addition. Click http://tinyurl.com/all-bot-commands for the complete list of commands.
.timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc | .timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt | .timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html
}
;no wildcard
elseif (*$nick* iswm %wildcardchk) && (*$2* !iswm %wildcardchk) {
write -il1 C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc on *:TEXT: $+ $2 $+ : $+ $chr(35) $+ : { describe $chr(35) $3- } | write C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt $2 $3- | write C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc1.txt $2 $3- $chr(91) $+ CREATED BY $+ $chr(93) $nick | /write -l4 C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html This page was modified on: $date(ddd mmm dd $+ $chr(44) yyyy) $chr(64) $time(h:nntt) <br><ol> | write -il7 C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html <tr><td $+ $chr(32) $+ nowrap $+ $chr(61) $+ $chr(34) $+ nowrap $+ $chr(34) $+ > $+ $chr(32) $+ $2 $+ $chr(32) $+ </td> <td> $3- </td></tr> | run -ns: C:\Users\CGI\AppData\Roaming\mIRC\scripts\ccftpbatch.bat
.timer 1 1 describe # $nick added $2 to $me $+ . Thank you for your addition. Click http://tinyurl.com/all-bot-commands for the complete list of commands.
.timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc | .timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt | .timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html
}
unset %wildcardchk
}
elseif ($1 == !addcmd) && (!$2 = !$read(C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc,ntw,* $+ : $+ $2 $+ : $+ *)) { msg $chan $nick This trigger already exists. | halt }
elseif ($1 == !addcmd) && (!$2 = !$read(C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc,ntw,* $+ : $+ $2 $+ * $+ : $+ *)) { msg $chan $nick This trigger already exists. | halt }
}
elseif ($1 == !delcmd) && ($nick isop $chan) && (!* iswmcs $2) && (!$2 = !$read(C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc,ntw,* $+ : $+ $2 $+ : $+ *)) {
set %delmrc on *:TEXT: $+ $2 $+ : $+
elseif ($nick !isop $chan) { msg $chan $nick not enough access. | halt }
elseif (!$2) { msg $chan $nick More parameters needed. | halt }
write -dw" %delmrc $+ $chr(42) $+ *" C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc
write -dw"* $+ > $2 < $+ *" C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html
write -ds"* $+ $2 $+ *" C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt
run -ns: C:\Users\CGI\AppData\Roaming\mIRC\scripts\ccftpbatch.bat
msg $chan The trigger $2 has been removed...hopefuly?
.timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc | .timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt | .timer 1 1 load -rs C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.html
unset %delmrc
}
elseif ($1 == !delcmd) && ($nick isop $chan) && ($2 != $read(C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc,ntw,* $+ : $+ $2 $+ *)) { msg $chan $nick This trigger doesnt exists. | halt }
elseif ($1 == !delcmd) && ($nick isop $chan) && (!$read(C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.mrc,ntw,* $+ : $+ $2 $+ *)) { msg $chan $nick This trigger doesnt exists. | halt }
elseif ($1 == !editcmd) {
set %istriggeredit $2
set %istriggert $3 $4-
if ($nick !isop $chan) { msg $chan $nick not enough access. | halt }
elseif (!$3) { msg $chan $nick More parameters needed. | halt }
elseif (!$read(C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt,ntw,* $+ %istriggeredit $+ *)) { msg $chan $nick This trigger doesnt exist. | halt }
write -ds" $+ %istriggeredit $+ " C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt | write C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt %istriggert
msg $chan The trigger %istriggeredit has been edited...hopefuly? | run -ns: C:\Users\CGI\AppData\Roaming\mIRC\scripts\ccftpbatch.bat
unset %istriggeredit
unset %istriggert
}
elseif ($1 == !search) {
set %istriggersearch $2-
elseif (!$3) { msg $chan not the correct parameters | halt }
elseif (!$read(C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt,nts,* $+ %istriggersearch $+ *)) { msg $chan $nick This trigger doesnt exist. | halt }
msg $chan searching %istriggersearch
filter -ff C:\Users\CGI\AppData\Roaming\mIRC\scripts\cc.txt C:\Users\CGI\AppData\Roaming\mIRC\scripts\temp.txt * $+ %istriggersearch $+ *
.play -pq3f1m1 $chan C:\Users\CGI\AppData\Roaming\mIRC\scripts\temp.txt 2000
remove C:\Users\CGI\AppData\Roaming\mIRC\scripts\temp.txt
unset %istriggersearch
}