This script has been rendered useless by recent MUM upgrades – The new version is Node Usage 2 this version is still here for historical purposes
So, you’re a leet IRCer yet, you’ve seen this leeter dude with a script that spams the channel with his Internode usage statistics.
This is probably that script.
Step 1 = Download MUM
Go to http://users.on.net/~johnson/internode and grab the latest version
Step 2 = Configure MUM
Make sure it’s configured with the correct username and password, and has updated at least once before proceeding
Step 3 = Install the script
You have two options
The latter is the better option because it will make sure that you get the colour codes.
[script] n0=;*************************************************** n1=;* NodeUsage Version 0.61 ************************** n2=;*************************************************** n3=;* Writen by Freman aka Fremean * n4=;*************************************************** n5=;* Please send comments/complaints to: * n6=;* fremscript@priya.2y.net * n7=;* Note: Anything else won't even be opened, and * n8=;* spamming, selling, or sending junk to this addr * n9=;* will cause me to close it without a 2nd thought * n10=;* So, do the right thing and don't fuck it up for * n11=;* someone who needs it for legit purposes. * n12=;*************************************************** n13=;* To catch me look for Freman/Fremean on Undernet * n14=;* If I'm online and around, I'll get back to you * n15=;* Home Chan(s): #LinuxSupport, #Freak, and #Love * n16=;* Other Frequented Chan(s): #Australia * n17=;*************************************************** n18= n19= n20=;*************************************************** n21=; EVENTS n22=;*************************************************** n23=on *:LOAD: { n24= NodeUsage.Init n25=} n26=on *:UNLOAD: { n27= unset %NodeUsage.* n28=} n29= n30=on *:DIALOG:NodeUsage.Setup:init:0: { n31= didtok $dname 8 46 Male.Female n32= if (%NodeUsage.Gender == his) { n33= did -c $dname 8 1 n34= } n35= else { n36= did -c $dname 8 2 n37= } n38= if (%NodeUsage.Averages == 1) { n39= did -c $dname 10 n40= } n41=} n42= n43=on *:DIALOG:NodeUsage.Setup:sclick:15: { n44= %NodeUsage.AppData = $did($dname,9) n45= if ($did($dname,8).sel == 1) { n46= %NodeUsage.Gender = his n47= %NodeUsage.Gender1 = he n48= } n49= else { n50= %NodeUsage.Gender1 = she n51= %NodeUsage.Gender = her n52= } n53= %NodeUsage.Averages = $did($dname,10).state n54=} n55= n56= n57=;*************************************************** n58=; ALIASES n59=;*************************************************** n60=alias NodeUsage.RegRead { n61= var %a = regread $+ $ticks n62= .comopen %a WScript.Shell n63= if $comerr { return ERROR } n64= if !$com(%a,RegRead,3,bstr,$1) { n65= .comclose %a n66= return ERROR n67= } n68= var %b = $com(%a).result n69= .comclose %a n70= return OK %b n71=} n72= n73=alias NodeUsage { n74= var %file = %NodeUsage.AppData $+ \Internode\InternodeUsage.txt n75= if ($exists(%file)) { n76= var %line = $read(%file,nf,1) n77= var %updated = $file(%file).mtime n78= var %used = $round($gettok(%line,1,32),2) n79= var %limit = $gettok(%line,2,32) n80= var %reset = $gettok(%line,3,32) n81= var %rduation = $duration($calc($ctime(01:01 %reset) - $ctime)) n82= var %dration = $gettok(%rduation, $+(1-,$calc($numtok(%rduation,32)-1)),32) n83= n84= var %daysinmonth = 31.x.31.30.31.30.31.31.30.31.30.31 n85= n86= if (%limit == 0) { n87= var %text = thanks god for flatrate as [ %NodeUsage.Gender2 ] has abused [ %NodeUsage.Gender ] connection and downloaded [ %used ] megs. n88= } n89= else { n90= if (%used > %limit) { n91= var %text = is over [ %NodeUsage.Gender ] %limit meg node usage limit by $calc(%used - %limit) megs, [ %dration ] till reset [Last Updated: $asctime(%updated,h:nn tt zz) $+ ]] n92= } n93= else { n94= var %remain = $calc(%limit - %used) n95= var %text = has [ %dration ] to use the remaining [ %remain megs ] of [ %NodeUsage.Gender ] %limit meg node usage limit [Last Updated: $asctime(%updated,h:nn tt zz) $+ ]] n96= if (%NodeUsage.Averages == 1) { n97= var %avgpast = $round($calc(($ctime(01:01 %reset) - $ctime)/24/60/60),0) n98= %avgpast = $round($calc(%remain / %avgpast),2) n99= %text = %text Average daily to end of month: %avgpast mb n100= } n101= } n102= } n103= /me %text n104= } n105= else { n106= echo Can't find InternodeUsage.txt n107= } n108=} n109= n110=alias NodeUsage.Setup { n111= dialog -m NodeUsage.Setup NodeUsage.Dialog1 n112=} n113= n114=alias NodeUsage.Init { n115= echo 3 -as ................................. n116= echo 3 -as . Node Usage V0.50 .............. n117= echo 3 -as ..................... by Freman . n118= echo 3 -as ................................. n119= echo 3 -as .. Spam the current channel ..... n120= echo 3 -as .............. with your usage .. n121= echo 3 -as ................................. n122= echo 3 -as ..... Setting default vars. ..... n123= echo 3 -as ................................. n124= var %appdata $NodeUsage.RegRead(HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData) n125= if ($gettok(%appdata,1,32) == OK) { n126= set %NodeUsage.AppData $gettok(%appdata,2-,32) n127= } n128= else { n129= set %NodeUsage.AppData Unable to locate 'Application Data' folder n130= } n131= set %NodeUsage.Gender his n132= set %NodeUsage.Gender2 he n133= set %NodeUsage.Averages = 1 n134= NodeUsage.Setup n135=} n136= n137= n138=;*************************************************** n139=; ALIASES n140=;*************************************************** n141=dialog -l NodeUsage.Dialog1 { n142= title "Node Usage Setup" n143= size -1 -1 200 62 n144= option dbu n145= n146= text "Gender:",3,1 2 40 10 n147= text "The path to your 'Application Data' folder:",4,1 12 130 10 n148= n149= combo 8,42 1 50 10,drop n150= edit %NodeUsage.AppData,9,42 21 150 10,autohs n151= check "Display Averages",10,42 31 150 10 n152= n153= button "OK", 15, 160 41 40 10, ok n154= button "Cancel", 16, 160 51 40 10, cancel n155=} Step 4 = Configuring
You may or may not be prompted for confirmation that you want to run the start up commands, but if you are then the answer is YES. If you answer no here, do NOT email me and complain it doesn’t work.
Specify your gender, the path to your Application Data folder (the one that’s there is probably correct) and if you want to see the average monthly usage till end of month then check the “Display Averages” box.
Commenting is closed for this article.