Go Back   FlashFXP Forums > >

General Discussion Need help? Have a problem? Let us help you. Bug reports and feature requests should be made using the Bug Tracker or Feature Tracker

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 05-01-2007, 09:37 AM   #1
CaNiBuS
Junior Member
 
Join Date: May 2007
Posts: 2
Default FlashFXP stats irc script

Is there an IRC script to show how much you uploaded/downloaded/FXP'd? I know I used to have one a LONG time ago. I searched these forums, google and yahoo but can't find anything.

Thanks
CaNiBuS is offline  
Old 05-02-2007, 11:47 PM   #2
DayCuts
Senior Member
FlashFXP Beta Tester
 
Join Date: Dec 2003
Posts: 421
Default

There are many, its quite easy to make. Here is a basic example, command is /flashstats <all|fxp|up|down>
Note that these scripts only work when flashfxp's application security is turned off (otherwise cant read encrypted data files)

Code:
Alias -l re.fs.pdate { return $asctime($re.fs.rdate,mmm doo yyyy) }
Alias -l re.fs.rdate { return $calc(($left($re.fs.b(LR),5) - 25569) * 86400) }
Alias -l re.fs.b { return $readini " $+ %re.fs.p $+ stats.dat" #Total# $1 }
Alias -l re.fs.ks { return $bytes($calc(($1) / ($ctime - $2))).suf $+ $iif($right($bytes($calc(($1) / ($ctime - $2))).suf,1) != B,B) $+ /s }
Alias -l re.fs.bd { return $bytes($calc(($1) / (($ctime - $2) / 60 / 60 / 24))).suf $+ $iif($right($bytes($calc(($1) / (($ctime - $2) / 60 / 60 / 24))).suf,1) != B,B) $+ /day }
Alias -l re.fs.a { return $bytes($1).suf $+ $iif($right($bytes($1).suf,1) != B,B) }
Alias -l re.fs.c { if (%re.fs.p == $null) { %re.fs.p = $sdir(C:\.Please select the directory your FlashFXP sites/stats data files are located in) } }
Alias -l re.fs.sl { say 04«14FlashFXP Stats04» 14Since:15 $re.fs.pdate 14Sites:15 $ini( [ %re.fs.p $+ sites.dat ] ,0) 14Connects:15 $re.fs.b(TC) 04«14RedEye04» }
Alias flashstats { refxp $1- }
Alias refxp { 
  re.fs.c
  var %z
  if ($1 == all) { %z = $re.fs.return(X,FXP'd) | %z = %z $re.fs.return(FD,Download) | %z = %z $re.fs.return(FU,Upload) | re.fs.sl }
  elseif ($1 == fxp) { %z = $re.fs.return(X,FXP'd) }
  elseif ($1 == up) { %z = $re.fs.return(FU,Upload) }
  elseif ($1 == down) { %z = $re.fs.return(FD,Download) }
  else { halt }
  say %z
}
Alias -l re.fs.return {
  var %x $re.fs.b($1), %i $re.fs.rdate
  var %ks = $re.fs.ks(%x,%i), %bd = $re.fs.bd(%x,%i), %t = $re.fs.a(%x)
  return 14Total $2 $+ :15 %t 04{-14 %ks 04||14 %bd 04-}
}
DayCuts is offline  
Old 05-03-2007, 02:36 PM   #3
CaNiBuS
Junior Member
 
Join Date: May 2007
Posts: 2
Default

Thanks! I know the basics of IRC scripting but not enough to make one by myself.
CaNiBuS is offline  
Closed Thread

Tags
ago, flashfxp, forums, irc, script

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:53 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)