home *** CD-ROM | disk | FTP | other *** search
- on 1:SERV:stats:{
- /msg =$nick 2DCC 3Send 4Status5:
- /msg =$nick 5Total Number Of 2Gets 4Currently:3 $send(0)
- /msg =$nick 5Maximum Number of 2Gets 4Total:3 %maxglobal
- /if ($send(0) > 0) {
- /msg =$nick 5Individual 2DCC 3Send 4Status5:
- /set %abcabc 1
- :abcabcl
- /if (%abcabc <= $send(0) ) {
- /set %temp0 $send(%abcabc).size
- /set %temp1 $send(%abcabc).pc
- /set %temp5 $send(%abcabc).cps
- %temp2 = 100 - %temp1
- %temp2 = %temp2 / 100
- %temp3 = %temp0 * %temp2
- %temp4 = %temp3 / %temp5
- /msg =$nick 3 $send(%abcabc) 5has been sent2 $bkm($send(%abcabc).sent) 5of4 $send(%abcabc).file and is3 $send(%abcabc).pc $+ % $+ 5 done 5- 2Cps:3 $send(%abcabc).cps 2Left:3 $duration(%temp4)
- /inc %abcabc
- goto abcabcl
- }
- /unset %abcabc
- /unset %temp0
- /unset %temp1
- /unset %temp2
- /unset %temp3
- /unset %temp4
- /unset %temp5
- }
- /halt
- }
- ; When a fserve opens or closes
- on 1:OPEN:!:{
- /msg =$nick 5Commands:
- /msg =$nick 3cd dir get ls
- /msg =$nick 3stats help
- /msg =$nick 3exit bye
- /msg =$nick 5This fserve was created 5By 3Aaron18
- /if ($group(#other1) == on) {
- /msg =$nick 4Type2 %other1trig 5to 3access 5my2 %other1desc
- }
- /if ($group(#other2) == on) {
- /msg =$nick 4Type2 %other2trig 5to 3access 5my2 %other2desc
- }
- /if ($group(#other3) == on) {
- /msg =$nick 4Type2 %other3trig 5to 3access 5my2 %other3desc
- }
- /if ($group(#other1) == on || $group(#other2) == on || $group(#other3) == on) {
- /msg =$nick 4Type2 !home 5to 3return 5to my 2main directory
- }
- /inc %fserved 1
- }
- }
- #other1 off
- on 1:SERV:%other1trig:{
- /.notice $nick Now bringing you to my %other1desc
- /close -f $nick
- /fserve $nick %maxgets %other1dir %wtext
- }
- #other1 end
- #other2 off
- on 1:SERV:%other2trig:{
- /.notice $nick Now bringing you to my %other2desc
- /close -f $nick
- /fserve $nick %maxgets %other2dir %wtext
- }
- #other2 end
- #other3 off
- on 1:SERV:%other3trig:{
- /.notice $nick Now bringing you to my %other3desc
- /close -f $nick
- /fserve $nick %maxgets %other3dir %wtext
- }
- #other3 end
- on 1:SERV:!home:{
- /if ($group(#other1) == on || $group(#other2) == on || $group(#other3) == on) {
- /.notice $nick Now bringing you home
- /close -f $nick
- /fserve $nick %maxgets %homedir %wtext
- }
- }
-