aByss — File Browser
aByssv1.0 / aByssv1.0 / aByss.mrc
aByss.mrc — 9.37 KB — Download this file
on 1:load {
if ($version != 5.02) { echo -a .z[a4Z]z. sorry, but you need mIRC v5.02 to load .z[aByss]z. | echo -a .z[a4Z]z. obtain a copy at [http://www.mirc.co.uk] | echo -a .z[a4Z]z. load failed | halt }
else {
window -a @aByss
echo @aByss .z[a4Z]z. welcome to the .z[abyss]z.
echo @aByss .z[a4Z]z.----------------------------------------------------------------
echo @aByss .z[a4Z]z. commands are
echo @aByss .z[a4Z]z. [ctcpprot <config/on/off>] to configurate or toggle ctcp protection
echo @aByss .z[a4Z]z. [dccprot <config/on/off>] to configurate or toggle dcc protection
echo @aByss .z[a4Z]z. [xdcc on/off>] to toggle xdcc
echo @aByss .z[a4Z]z. [xdcc ad] to advertise xdcc
echo @aByss .z[a4Z]z. [xdcc a] to add packets to xdcc
echo @aByss .z[a4Z]z. [xdcc r] to remove packets from xdcc
echo @aByss .z[a4Z]z. [helpabyss] for help
echo @aByss .z[a4Z]z. [unabyss] to unload
echo @aByss .z[a4Z]z. ---------------------------------------------------------------
echo @aByss .z[a4Z]z. have fun,
echo @aByss .z[a4Z]z. m00n
echo @aByss .z[a4Z]z. knight@bc.sympatico.ca
echo @aByss .z[a4Z]z. http://www.m3rk.home.ml.org
}
}
set %abyss + .z[aByss]z. v1.0 by m00n (05.10.95)
set %ver %ver .z[aByss]z. v1.0 by m00n (05.10.95)
#ctcpprot on
ctcp 1:* {
if ($1 != dcc) {
if (%ctcps >= %max.ctcps) {
if ($count(%ctcp.addy,$site) == 4) { .ignore -tu60 $wildsite | echo -a .z[a4Z]z. $+ $1 $+ flood detected from $na | echo -a .z[a4Z]z. press F12 to unignore | %flood.addy = $wildsite | unset %ctcp.addy | halt }
else { .ignore -tu60 * | echo -a .z[a4Z]z. ctcp flood detected. | echo -a .z[a4Z]z. all ctcps ignored for 60 seconds | echo -a .z[a4Z]z. press F12 to unignore | %flood.addy = * | unset %ctcp.addy | halt }
}
else { inc %ctcps | .timer 1 7 /unset %ctcp.addy | .timer 1 7 /set %ctcps 0 | %ctcp.addy = %ctcp.addy $site | halt }
}
}
#ctcpprot end
#dccprot on
ctcp 1:dcc {
if (%dcc.accept == no) { .notice $nick .z[a4Z]z. sorry, but i am not accepting dcc's right now | .ignore -tu10 | echo -a .z[a4Z]z. DCC $2 $+ from $na ignored | halt }
else {
if (%dccs >= %max.dccs) {
if ($count(%dcc.addy,$site) == 4) { .ignore -tu30 $wildsite | echo -a .z[a4Z]z. dcc $2 $+ flood detected from $na | echo -a .z[a4Z]z. press F12 to unignore | %flood.addy = $wildsite | unset %dcc.addy | halt }
else { .ignore -tu60 * | echo -a .z[a4Z]z. dcc flood detected. | echo -a .z[a4Z]z. all dccs ignored for 60 seconds | echo -a .z[a4Z]z. press F12 to unignore | %flood.addy = * | unset %dcc.addy | halt }
}
else { inc %dccs | .timer 1 7 /unset %dcc.addy | .timer 1 7 /set %dccs 0 | %dcc.addy = %dcc.addy $site | halt }
}
}
#dccprot end
#xdcc off
ctcp 1:xdcc:* {
:help
if ($parm2 == help) { .ignore -tu5 $wildsite | xdcc e | .notice $nick .z[a4Z]z. xdcc help | .notice $nick .z[a4Z]z. syntax: /ctcp $me <option> | .notice $nick .z[a4Z]z. xdcc list (lists current xdcc packs) | .notice $nick .z[a4Z]z. xdcc send <packet> (sends packet specified) | halt }
elseif $2 == list {
.ignore -tu5 $wildsite
xdcc e
.notice $nick .z[a4Z]z. xdcc file list
if (%xdcc.packs == $null) { .notice $nick .z[a4Z]z. no filled slots in xdcc | halt }
else {
%xdcc.list = 0
:start
inc %xdcc.list
.timer 1 2 /.notice $nick .z[a4Z]z. packet %xdcc.list ( $+ % [ $+ [ desc [ $+ [ %xdcc.list ] ] ] ] $+ ( $+ % [ $+ [ size [ $+ [ %xdn ] ] ] ] $+ ) $+ )
if (%xdcc.list == %xdcc.packs) { unset %xdcc.list | halt }
else { goto start }
}
}
elseif $2 == send {
if ($parm2 > %xdcc.packs) { .notice $nick .z[a4Z]z. no such file) | halt }
else { dcc send $nick %pack $+ $parm2 | .notice $nick .z[a4Z]z. now sending % [ %desc [ $+ [ $parm2 ] ] ] ] | echo -s .z[a4Z]z. now sending $nick ( $+ $address $+ ) % [ %desc [ $+ [ $parm2 ] ] ] ] | .ignore -tu5 $wildsite | halt }
}
elseif ($parm2 != help) && ($parm2 != list) && ($parm2 != send) { goto help }
}
#xdcc end
alias F12 .ignore -r %flood.addy
alias Na return [ $+ $nick @ $address $+ ]
alias Unabyss unload -a aByss.mrc | unload -rs aByss.mrc | set %ver $remove(%ver,%abyss) | unset %abyss
alias Helpabyss {
window -a @abyss
echo @aByss .z[a4Z]z. welcome to the .z[abyss]z. help
echo @aByss -------------------------------------------------------------------------------
echo @aByss .z[a4Z]z. commands are
echo @aByss .z[a4Z]z. [ctcpprot <config/on/off>] to configurate or toggle ctcp protection
echo @aByss .z[a4Z]z. [dccprot <config/on/off>] to configurate or toggle dcc protection
echo @aByss .z[a4Z]z. [xdcc on/off>] to toggle xdcc
echo @aByss .z[a4Z]z. [xdcc ad] to advertise xdcc
echo @aByss .z[a4Z]z. [xdcc a] to add packets to xdcc
echo @aByss .z[a4Z]z. [xdcc r] to remove packets from xdcc
echo @aByss .z[a4Z]z. [helpabyss] for help
echo @aByss .z[a4Z]z. [unabyss] to unload
echo @aByss -------------------------------------------------------------------------------
}
alias ctcpprot {
if ($1 == config) { %max.ctcps = $$?="enter max number of ctcps" | .enable #ctcpprot | echo -a .z[a4Z]z. ctcp flood protection on | echo -a .z[a4Z]z. triggers when $+ %max.ctcps $+ is reached | echo -a .z[a4Z]z. ignores user(s) for 60 seconds | halt }
if ($1 == on) { if (%max.ctcps == $null) { %max.ctcps = $$?="enter max number of ctcps" | goto end } | else { goto end } | :end | .enable #ctcpprot | echo -a .z[a4Z]z. ctcp flood protection on | echo -a .z[a4Z]z. triggers when $+ %max.ctcps $+ is reached | echo -a .z[a4Z]z. ignores user(s) for 60 seconds | halt }
if ($1 == off) { disable #ctcpprot | echo -a .z[a4Z]z. ctcp flood protection off | halt }
}
alias dccprot {
if ($1 == config) { %max.dccs = $$?="enter max number of dccs" | .enable #dccprot | echo -a .z[a4Z]z. dcc flood protection on | echo -a .z[a4Z]z. triggers when $+ %max.dccs $+ is reached | echo -a .z[a4Z]z. ignores user(s) for 60 seconds | halt }
if ($1 == on) { if (%max.dccs == $null) { %max.dccs = $$?="enter max number of dccs" | goto end } | else { goto end } | :end | .enable #dccprot | echo -a .z[a4Z]z. dcc flood protection on | echo -a .z[a4Z]z. triggers when $+ %max.dccs $+ is reached | echo -a .z[a4Z]z. ignores user(s) for 60 seconds | halt }
if ($1 == off) { .disable #dccprot | echo -a .z[a4Z]z. dcc flood protection off | halt }
}
alias xdcc {
if ($1 == on) { .enable #xdcc | window -a @xdcc | echo @xdcc .z[a4Z]z. look in here for xdcc requests | amsg .z[a4Z]z. xdcc open [ctcp $me xdcc help] | halt }
if ($1 == off) { .disable #xdcc | if (%xdcc.ad == on) { .timer69 off | unset %xdcc.ad } | amsg .z[a4Z]z. xdcc closed }
if ($1 == ad) { %xdcc.ad = on | timer69 0 $$?="how long between each ad" amsg .z[a4Z]z. xdcc open [ctcp $me xdcc help] | halt }
if ($1 == e) { echo @xdcc .z[a4Z]z. xdcc $2 $+ from $na }
if ($1 == a) {
%add = $$?="how many packs to add"
%temp = 0
:start
if (%temp == $null) { set %temp 1 } | else { inc %temp } | if (%xdcc.packs == $null) { set %xdn 1 } | else { %xdn = %xdcc.packs + 1 } | set % [ $+ [ pack [ $+ [ %xdn ] ] ] ] $dir="Choose a File" $mircdir | set % [ $+ [ desc [ $+ [ %xdn ] ] ] ] $$?="Enter Description For File" | set %pre % [ $+ [ pack [ $+ [ %xdn ] ] ] ] | set % [ $+ [ size [ $+ [ %xdn ] ] ] ] $size($lof(%pre))
inc %xdcc.packs | echo -a .z[a4Z]z. xdcc packet %xdn $+ | echo -a .z[a4Z]z. file: $nopath(%pre) | echo -a .z[a4Z]z. path: % [ $+ [ pack [ $+ [ %xdn ] ] ] ] | echo -a .z[a4Z]z. description: % [ $+ [ desc [ $+ [ %xdn ] ] ] ] | echo -a .z[a4Z]z. size: % [ $+ [ size [ $+ [ %xdn ] ] ] ] | if (%temp == %add) { unset %pre | unset %temp | halt } | else { goto start }
}
if ($1 == r) {
set %remove $$?="enter pack to remove. 'all' for all"
if (%remove isnum) { unset % [ $+ [ pack [ $+ [ $! ] ] ] ] | unset % [ $+ [ desc [ $+ [ $! ] ] ] ] | unset % [ $+ [ size [ $+ [ $! ] ] ] ] | dec %xdcc.packs | dec %xdn | unset %remove | echo -a .z[a4Z]z. xdcc packet $! removed }
else if (%remove == all) { unset % [ $+ [ pack [ $+ [ * ] ] ] ] | unset % [ $+ [ desc [ $+ [ * ] ] ] ] | unset % [ $+ [ size [ $+ [ * ] ] ] ] | unset %xdn | unset %pre | unset %remove | echo -a .z[a4Z]z. %xdcc.packs xdcc packs removed | unset %xdcc.packs }
}
if ($1 == l) {
if (%xdcc.packs == $null) { .echo -a .z[a4Z]z. no filled slots in xdcc | halt }
else { set %xdcc.list 0 | :start | inc %xdcc.list | echo -a .z[a4Z]z. packet %xdcc.list [ $+ [ % [ $+ [ desc [ $+ [ %xdcc.list ] ] ] ] $+ ] [ $+ % [ $+ [ size [ $+ [ %xdcc.list ] ] ] ] $+ ] | if (%xdcc.list == %xdcc.packs) { unset %xdcc.list | halt } | else { goto start }
}
}
}