All pastes #180290 Raw Edit

Untitled

public text v1 · immutable
#180290 ·published 2006-09-23 00:13 UTC
rendered paste body
alias container { 
var %rushcontainer = $dll(rushmirc.dll,Invoke,RushApp.Containers.ContainerCount) 
var %rushconn = $dll(rushmirc.dll,Invoke,RushApp.Containers.ConnectedSiteCount) 
var %rushtran = $dll(rushmirc.dll,Invoke,RushApp.Containers.TransferSiteCount) 
msg $active 4(0Containers4) 414 %rushcontainer 4 0Connected 414 %rushconn 4 0Transfering 414 %rushtran  
} 
alias sizeprocess { var %ord = $1 | if ((%ord !isnum) || (%ord == $null)) { return $null } | var %dh = $round($calc(%ord / 1024),2) | if (%dh < 1) { return %ord MB } | elseif (%dh < 1023) { return %dh GB } | else { var %po = $round($calc(%dh / 1024),2) | return %po TB } } 
menu channel { 
Rush-Stats 
.All:{ 
var %ftpdown = $dll(rushmirc.dll,Invoke,RushApp.TotalDownloadSize) 
var %ftpup = $dll(rushmirc.dll,Invoke,RushApp.TotalUploadSize) 
var %ftpfxp = $dll(rushmirc.dll,Invoke,RushApp.TotalFXPSize) 
var %ftpdownc = $dll(rushmirc.dll,Invoke,RushApp.CurDownloadSize) 
var %ftpupc = $dll(rushmirc.dll,Invoke,RushApp.CurUploadSize) 
var %ftpfxpc = $dll(rushmirc.dll,Invoke,RushApp.CurFXPSize) 
var %ftpstart = $dll(rushmirc.dll,Invoke,RushApp.StartDate) 
var %ftpday = $dll(rushmirc.dll,Invoke,RushApp.DayCount) 
var %rushver = $dll(rushmirc.dll,Invoke,RushApp.Version) 
if (!%rushver) { msg $active 4(0FTPRush4) 4 0The client is not currently working. | halt } 
elseif (Invalid Command isin %rushver) { msg $active 4(0FTPRush4) 40 Incompatible Version. | halt } 
elseif (not ready isin %rushver) { msg $active 4(0FTPRush4) 4 0The client is not ready. | halt } 
var %rushpool = $dll(rushmirc.dll,Invoke,RushApp.PoolInfo) 
var %rushcontainer = $dll(rushmirc.dll,Invoke,RushApp.Containers.ContainerCount) 
var %rushconn = $dll(rushmirc.dll,Invoke,RushApp.Containers.ConnectedSiteCount) 
var %rushtran = $dll(rushmirc.dll,Invoke,RushApp.Containers.TransferSiteCount) 
var %rushbwu = $dll(rushmirc.dll,Invoke,RushApp.UploadBW) 
var %rushbwd = $dll(rushmirc.dll,Invoke,RushApp.DownloadBW) 
var %ftpstart = $gettok(%ftpstart,1,32) 
dec %ftpday 
msg $active 4(0Version4) 4 14 $+ %rushver  
msg $active 4(0Status4) 4 14 $+ %rushpool  
msg $active 4(0Containers4) 4 14 $+ %rushcontainer 400 Connected 414 %rushconn 400 Transfering 414 %rushtran  
msg $active 4(0Session4) 4 00Since14 %ftpstart $+ ,14 %ftpday 00day(s), I downloaded14 $sizeprocess(%ftpdown) $+ 00, uploaded14 $sizeprocess(%ftpup) $+ 00, FXPex14 $sizeprocess(%ftpfxp)  
msg $active 4(0Today Stats4) 4 00Downloaded 414 $sizeprocess(%ftpdownc) 4 0Uploaded 414 $sizeprocess(%ftpupc) 40 FXPed 414 $sizeprocess(%ftpfxpc) 
} 
.Version:{ 
var %rushver = $dll(rushmirc.dll,Invoke,RushApp.Version) 
if (!%rushver) { msg $active 4(0FTPRush4) 4 0The client is not currently working. | halt } 
elseif (Invalid Command isin %rushver) { msg $active 4(0FTPRush4) 4 0 Incompatible Version. | halt } 
elseif (not ready isin %rushver) { msg $active 4(0FTPRush4) 4 0The client is not ready. | halt } 
var %ftpdown = $dll(rushmirc.dll,Invoke,RushApp.TotalDownloadSize) 
msg $active 4(0Version4) 414 %rushver  
} 
.Status:{ 
var %rushver = $dll(rushmirc.dll,Invoke,RushApp.Version) 
if (!%rushver) { msg $active 4(0FTPRush4) 4 0The client is not currently working. | halt } 
elseif (Invalid Command isin %rushver) { msg $active 4(0FTPRush4) 4 0 Incompatible Version. | halt } 
elseif (not ready isin %rushver) { msg $active 4(0FTPRush4) 4 0The client is not ready. | halt } 
var %rushpool = $dll(rushmirc.dll,Invoke,RushApp.PoolInfo) 
msg $active 4(0Status4) 414 %rushpool  
} 
.Containers: { 
var %rushver = $dll(rushmirc.dll,Invoke,RushApp.Version) 
if (!%rushver) { msg $active 4(0FTPRush4) 4 0The client is not currently working. | halt } 
elseif (Invalid Command isin %rushver) { msg $active 4(0FTPRush4) 4 0 Incompatible Version. | halt } 
elseif (not ready isin %rushver) { msg $active 4(0FTPRush4) 4 0The client is not ready. | halt } 
var %rushcontainer = $dll(rushmirc.dll,Invoke,RushApp.Containers.ContainerCount) 
var %rushconn = $dll(rushmirc.dll,Invoke,RushApp.Containers.ConnectedSiteCount) 
var %rushtran = $dll(rushmirc.dll,Invoke,RushApp.Containers.TransferSiteCount) 
msg $active 4(0Containers4) 414 %rushcontainer 4 0Connected 414 %rushconn 4 0Transfering 414 %rushtran  
} 
.Bandwith:{ 
var %rushver = $dll(rushmirc.dll,Invoke,RushApp.Version) 
if (!%rushver) { msg $active 4(0FTPRush4) 4 0The client is not currently working. | halt } 
elseif (Invalid Command isin %rushver) { msg $active 4(0FTPRush4) 4 0 Incompatible Version. | halt } 
elseif (not ready isin %rushver) { msg $active 4(0FTPRush4) 4 0The client is not ready. | halt } 
var %rushbwu = $dll(rushmirc.dll,Invoke,RushApp.UploadBW) 
var %rushbwd = $dll(rushmirc.dll,Invoke,RushApp.DownloadBW) 
msg $active 4(0FTpRush Bandwith4) 4 0Bw-Up 414 %rushbwu kbps 4 0Bw-Dn 414 %rushbwd kbps 
} 
.Stats:{ 
var %rushver = $dll(rushmirc.dll,Invoke,RushApp.Version) 
if (!%rushver) { msg $active 4(0FTPRush4) 4 0The client is not currently working. | halt } 
elseif (Invalid Command isin %rushver) { msg $active 4(0FTPRush4) 4 0 Incompatible Version. | halt } 
elseif (not ready isin %rushver) { msg $active 4(0FTPRush4) 4 0The client is not ready. | halt } 
var %ftpupc = $dll(rushmirc.dll,Invoke,RushApp.CurUploadSize) 
var %ftpfxpc = $dll(rushmirc.dll,Invoke,RushApp.CurFXPSize) 
var %ftpdown = $dll(rushmirc.dll,Invoke,RushApp.TotalDownloadSize) 
var %ftpup = $dll(rushmirc.dll,Invoke,RushApp.TotalUploadSize) 
var %ftpfxp = $dll(rushmirc.dll,Invoke,RushApp.TotalFXPSize) 
var %ftpstart = $dll(rushmirc.dll,Invoke,RushApp.StartDate) 
var %ftpday = $dll(rushmirc.dll,Invoke,RushApp.DayCount) 
var %ftpdownc = $dll(rushmirc.dll,Invoke,RushApp.CurDownloadSize) 
msg $active 4(0RushStats4) 4 0Since 14 %ftpstart $+ , %ftpday day(s), 40 I downloaded 14 $sizeprocess(%ftpdown) $+ , 4 0uploaded 14 $sizeprocess(%ftpup) $+ , 4 0FXPex 14 $sizeprocess(%ftpfxp) 
msg $active 4(0Today4) 4 0Downloaded 414 $sizeprocess(%ftpdownc) 4 0Uploaded 414 $sizeprocess(%ftpupc) 40 FXPed 414 $sizeprocess(%ftpfxpc) 
} 
}