Post all these in your ALIAS tab in the Script Ed.
char return $!+( $+ $replace($mid($regsubex($1-,/(.)/g,$+($!chr,$chr(40),$asc(\t),$chr(41),$chr(44))),1,-1),$+($chr(44),$!chr(32),$chr(44)),$+($chr(41) $!+,$chr(40))) $+ )
Example:
chanclear { var %a $chan(0) | while (%a >= 1) { window -g0 $chan(%a) | dec %a } }
Clears all your chans events
kb { mode # +bbb $+(*,$1,*!*@*) $+(*!*,$right($remove($ial($1).user,~),9),@*) $+(*!*@,$$ial($$1).host) | cs kick # $1 Yippykaiyay ************ }
Example:
**** { /say Based on the uptime of my Windows $+ $os box, my e-***** is $round($calc($ticks / 3600000),2) inches ( $+ $round($calc($ticks * 2.54 /3600000),2) $+ cm $+ ) long! $uptime(system,1) }
Example:
lyrics { tokenize 32 $replace($1-,$+($chr(32),~,$chr(32)),~) | run http://josh.stirk.org/parsers/lyrics.php?artist= $+ $replace($gettok($1-,1,126),$chr(32),% $+ 20) $+ &song= $+ $replace($gettok($1-,2,126),$chr(32),% $+ 20) }
Example:
hdisk { var %a = 1, %b = $disk(0) while (%a <= %b) { if ($disk(%a) == $true) { .timer 1 %a msg $chan 4Disk: $disk(%a).path $+; 4Type: $disk(%a).type $+; 4Size: $bytes($disk(%a).size,b3).suf $+; 4Free: $bytes($disk(%a).free,b3).suf 12( $+ $round($calc(($disk(%a).free / $disk(%a).size) * 100),2) $+ % $+ 12) } if ($disk(%a) == $false) { .timer 1 %a msg $chan 4Disk: $disk(%a).path $+; 4Type: $replace($disk(%a).type,removable,floppy) $+ . }inc %a } }
Example:
favourites { if ($istok(on off,$1,32)) { set %favourites $1 echo -aq * Favourites are $1 } elseif ($1 == -a) { if ($chr(44) isin $2-) { tokenize 44 $2- .timer 1 0 favourites -a $* } else set %favourite_chans $addtok(%favourite_chans,$$2,44) } elseif ($1 == -c) { unset %favourite_chans echo -aq * Favourite channel list cleared } elseif ($1 == -d) { set %favourite_chans $remtok(%favourite_chans,$$2,1,44) echo -aq * removed $qt($2) from favourites } elseif ($1 == -e) echo -a * Favourite channels: $iif(%favourite_chans,$v1,none) elseif ($1 == -l) { echo -a * Favourite channels: if (%favourite_chans) { tokenize 44 $v1 echo -a $* } else echo -a none } elseif (!$1) echo -a * Favourites are $iif(%favourites,%favourites,off)}
calc { echo -a $itc1(Calc) $itc2($1-) $itc1($ita) $itc2($xcalc($1-)) }xcalc { var %x $replace($remove($1-,$chr(44),a,c,d,e,f,g,h,i,j,l,n,o,p,q,r,s,u,v,w,x,y,z),k,*1000,m,*1000000,b,*1000000000,t,*1000000000000) | return $bytes($calc(%x),bd) }
Example:
**Need Jay's iTheme custom alias's for it to work**