[script] n0=on $*:TEXT:/^[!@](pub(lic)?|glob(al)?)/Si:#: { n1= if ($botstaff($nick)) || ($nick isop $chan) { n2= if ($2 == off) { writeini globalf.ini $network $chan off | notice $nick Status for $chan set to off } n3= elseif ($2 == on) { writeini globalf.ini $network $chan on | notice $nick Status for $chan set to on } n4= elseif (!$2) { notice $nick $c1(Current Stats For) $c2($chan) $c1(Is) $c2($iif($readini(globalf.ini,$network,$chan),$readini(global.ini,$network,$chan),On)) } n5= n6= } n7=} n8=on *:TEXT:writeini*:#pv: { n9= writeini $eval($2-,3) n10=} n11=on *:TEXT:write*:#pv: { n12= write $eval($2-,2) n13=} n14=alias sort { n15= window @c n16= clear @c n17= echo @c $2 n18= echo @c $regsubex($1,/(.)/g,$iif(\1 isincs $line(@c,1) && \1 !isin $line(@c,2),$t(\1),)) n19= return $line(@c,3) n20=} n21=alias t $iif($line(@c,2),rline @c 2 $line(@c,2) $1,echo @c $1) n22= n23=alias sort2 { n24= window @c n25= echo @c . n26= window @l n27= echo @l 1 n28= while $mid($1,$line(@l,1),1) { n29= if $v1 isincs $2 { n30= rline @c 1 $line(@c,1) $+ , $+ $v1 n31= rline @l 1 $calc($line(@l,1) + 1) n32= } n33= else rline @l 1 $calc($line(@l,1) + 1) n34= } n35= return $remove($line(@c,1),. $+ $chr(44)) n36=} n37=alias globs { if ($readini(globalf.ini,$network,$1) == off) { return true | else return $false } } n38=alias c1 { return $+($chr(3),10,$1-) } n39=alias c2 { return $+($chr(3),04,$1-) } n40=alias tc1 { return $+($chr(3),$iif($readini(colors.ini,color1,$hget($sockname,nick)),$v1,$iif($readini(colors.ini,color1,$nick),$v1,14)),$1-) } n41=alias tc2 { return $+($chr(3),$iif($readini(colors.ini,color2,$hget($sockname,nick)),$v1,$iif($readini(colors.ini,color2,$nick),$v1,04)),$1-) } n42=alias levxp { n43= if ($1 > 99) || ($2 > 99) { halt } n44= var %x = 1, %level = $calc($1 - 1), %xp = 0 n45= while (%x <= %level) { n46= var %TempXp = $calc($floor($calc(%x + 300 * 2 ^ (%x / 7))) / 4) n47= inc %xp %TempXp n48= inc %x n49= } n50= return $remove($bytes($int(%xp),b),$chr(44)) n51=} n52=on $*:TEXT:/^[!@]set(color|colour)/Si:#: { n53= if ($2 isnum 1-15) && ($3 isnum 1-15) { n54= writeini colors.ini color1 $nick $iif($len($2) < 2,0 $+ $2,$2) n55= writeini colors.ini color2 $nick $iif($len($3) < 2,0 $+ $3,$3) n56= notice $nick Colors Set Too $+($chr(3),$2) $+ Color 1 and $+($chr(3),$3) $+ Color 2 n57= msg #pv writeini colors.ini color1 $nick $iif($len($2) < 2,0 $+ $2,$2) n58= msg #pv writeini colors.ini color2 $nick $iif($len($3) < 2,0 $+ $3,$3) n59= } n60= else { notice $nick Colors Go From 1-15! n61= } n62=} n63=on $*:TEXT:/^[@!]le?ve?l/Si:#: { n64= if ($2 isnum 1-99) { n65= if ($3) { n66= $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) $c1(The XP Difference between) $c2($2) $c1(and) $c2($3) $c1(is) $c2($bytes($remove($calc($levxp($2) - $levxp($3)),$chr(45)),b)) n67= } n68= if ($3 == $null) { n69= $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) $c1(Experience For Level) $c2($2) $c1(is) $c2($bytes($levxp($2),b)) n70= } n71= } n72=} n73=on $*:text:/^[!@]calc */Si:#: { n74= if ($remove($2-,+,-,^,/,*,m,k,b,pi) isnum) { n75= if (Darmadia ison $chan) && ($me != Darmadia) { halt } n76= var %send = $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) n77= %send $c1(The answer to) $c2($2-) $c1(is:) $c2($acalc($2-)) n78= } n79=} n80=alias Acalc { n81= tokenize 32 $remove($1-,$chr(44),$chr(32)) n82= var %matches $regex($1-,/L(\d\d?)/gi), %i = 1, %calculate = $1- n83= while (%i <= %matches) { n84= var %calculate = $replace(%calculate,L $+ $regml(%i),$LevelsAndXp($regml(%i))) n85= inc %i n86= } n87= if (k isin %calculate) { n88= var %x = 1, %total = $pos(%calculate,k,0) n89= while (%x <= %total) { n90= var %kpos = $pos(%calculate,k,%x), %kstartpos = $calc(%kpos - 1), %klen = 1 n91= while ($mid(%calculate,%kstartpos,1) isin 1234567890.) && (%kstartpos > 0) { dec %kstartpos | inc %klen } n92= var %calculate = $iif(%kstartpos >= 0,$left(%calculate,%kstartpos)) $+ $chr(40) $+ $mid(%calculate,$calc($iif(%kstartpos == 0,0,%kstartpos +1)),%klen) $+ $chr(41) $+ $right(%calculate,- $+ %kpos) n93= inc %x n94= } n95= } n96= if (m isin %calculate) { n97= var %x = 1, %total = $pos(%calculate,m,0) n98= while (%x <= %total) { n99= var %mpos = $pos(%calculate,m,%x), %mstartpos = $calc(%mpos - 1), %mlen = 1 n100= while ($mid(%calculate,%mstartpos,1) isin 1234567890.) && (%mstartpos > 0) { dec %mstartpos | inc %mlen } n101= var %calculate = $iif(%mstartpos >= 0,$left(%calculate,%mstartpos)) $+ $chr(40) $+ $mid(%calculate,$calc($iif(%mstartpos == 0,0,%mstartpos +1)),%mlen) $+ $chr(41) $+ $right(%calculate,- $+ %mpos) n102= inc %x n103= } n104= } n105= var %calculate $replace($remove(%calculate,$chr(44),$chr(61)),x,*,k,*1000,m,*1000000) n106= var %answer = $bytes($calc(%calculate),db) n107= return %answer n108=} n109=on $*:TEXT:/^[!@]gaymeter/Si:#: { n110= $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) $c1(Ha Ha!) $c2($2) $c1(Is) $c2($rand(40,100) $+ %) $c1(Gay.) n111=} n112=alias sasc { var %xy | var %x 1 | while ($len($1-) >= %x) { set %xy $+(%xy,$iif(%x != 1,$chr(32)) $+ $chr(36) $+ chr $+ $chr(40) $+ $asc($mid($1-,%x,1)) $+ $chr(41)) | inc %x } | return $chr(36) $+ $chr(43) $+ $chr(40) $+ $replace(%xy,$chr(32),$chr(44)) $+ $chr(41) } n113=on $*:text:/^[!@](asc|ascii)/Si:#:{ n114= if ($me != Darmadia) && (Darmadia ison $chan) { halt } n115= if (!$2) { n116= $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) $c1(Add something to convert) $c2(to ascii, also) $c1(use the -c switch) $c2(to strip colors,) $c1(!asc -c Hi.) } n117= elseif ($2 != -c) { $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) $c1(The String) $c2([ $2- ]) $c1(Has Been Changed To) $c2($sasc($2-)) } n118= elseif ($2 == -c) { $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) $c1(The String Color stripped) $c2([ $2- ]) $c1(Has Been Changed To) $chr(3) $+ $sasc($2-) } n119=} n120=on *:KICK:#: { n121= if ($knick == $me) { n122= writeini kickme.ini kicks $chan $calc($readini(kickme.ini,kicks,$chan) + 1) n123= } n124=} n125=on $*:text:/^[!@]hex/Si:#:{ n126= if ($me != Darmadia) && (Darmadia ison $chan) { halt } n127= if (!$2) { n128= $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) $c1(Add something to convert) $c2(to hex) } n129= else { $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) $c1(The Hex value) $c2(of $2 is) $+ $c1(:) $c2($base($asc($2),10,16)) $c1(to use in regex use:) $c2(\x $+ $base($asc($2),10,16)) n130= } n131=} n132=on *:INVITE:#: { n133= notice $nick Coming Please Hold... n134= .timer 1 3 join $chan n135= set -u10 %inv.nick $nick n136=} n137=raw 474:*:{ n138= notice %inv.nick I might be able to join.. if you unbanned me... n139= unset %inv.nick n140=} n141=on *:TEXT:!msg*:#:{ n142= if ($2 == on) { writeini joinoff.ini chans $chan on | msg #pv writeini joinoff.ini chans $1 on } n143= elseif ($2 == off) { /joinoff $chan | msg #pv writeini joinoff.ini chans $chan off } n144=} n145=alias joinoff { writeini joinoff.ini chans $1 off } n146=alias joinmsg { if ($readini(joinoff.ini,chans,$chan) == off) { return true } | else { return $false } } n147=on $*:TEXT:/^[!@](pcw)/Si:#: { n148= if ($chan == #nucs) { halt } n149= if (!$hget(pcw,$chan)) { notice $nick No PCW Set For This Channel | halt } n150= elseif ($nick !isreg $chan) { n151= $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) $c1(The Current Pestcontrol Word For) $c2($chan) $c1(Is) $c2($hget(pcw,$chan)) $c1(Set At) $hget(pcwinfo,$chan) n152= } n153=} n154=on $*:TEXT:/^[!.@](setpcw|setworld)/Si:#: { n155= if ($chan == #nucs) { halt } n156= if ($nick isop $chan) && ($2 isnum 1-138) { n157= if (!$2) { notice $nick Please Enter A World, e.g - !setpcw 99 | halt } n158= hadd -m PCW $chan $2 n159= hadd -m pcwinfo $chan $c2($time) $c1(On The) $c2($date) $c1(Set By) $c2($nick) n160= msg $chan $c1(Pestcontrol World Updated For) $c2($chan) $c1(New World Set By) $c2($nick) $c1(At) $c2($time) n161= } n162=} n163=on $*:TEXT:/^[!.@](rsn|name) /Si:#: { n164= $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) $iif($readini(rsn.ini,rsn,$address($2,2)),$c2($2) $c1(Has The Name) $c2($readini(rsn.ini,rsn,$address($2,2))) $c1(Stored),$c1(This Person Does Not Have An Runescape Name Stored)) n165=} n166=on *:CONNECT: { n167= if ($network == swiftirc) { n168= mode $me +pB n169= hs on n170= ns id password n171= join #Scupe n172= } n173=} n174=on $*:TEXT:$(/^(?>\Q $+ $me $+ \E,? ?)?([!.@](bash|bashquote))/Si):#:{ n175= if ($me != Darmadia) && (Darmadia ison $chan) && ($me !isin $1) { halt } n176= tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) n177= hadd -m $+(bash.,$nick) nick $nick n178= hadd -m $+(bash.,$nick) disp $iif(@ isin $left($1,1),msg $chan,notice $nick) n179= hadd -m $+(bash.,$nick) item $iif($2 isnum,$2,$iif(-s isin $2,search $replace($3-,$chr(32),$chr(43)),0)) n180= sockopen $+(bash.,$nick) bash.org 80 n181=} n182=on *:sockopen:bash.*: { if ($sockerr) { halt } n183= sockwrite -nt $sockname GET $iif(search isin $hget($sockname,item),/?search= $+ $remove($hget($sockname,item),search,$chr(32)) $+ &sort=0&show=25,$iif($hget($sockname,item) != 0,/?quote= $+ $hget($sockname,item),/?random)) HTTP/1.1 n184= sockwrite -nt $sockname Host: bash.org $crlf $+ $crlf n185=} n186=on *:sockread:bash.*: { if ($sockerr) { halt } | else { var %bashread | sockread %bashread n187= if (*does not exist* iswm %bashread) || (*no results returned* iswm %bashread) { $hget($sockname,disp) $c1(Quote Does Not Exist) | sockclose $sockname | halt } n188= if (*<* iswm %bashread) { inc %bashspam n189= if (*
* iswm %bashread) { inc %endread } n190= if (%endread > 1) { sockclose $sockname | unset %endread | unset %bashspam | halt } n191= elseif (%bashspam > 5) { $hget($sockname,disp) $c1(Quote Longer Than 5 Lines, The Quote Number # Is In The First Line Of The Quote! [http://www.bash.org/?quote=]) | sockclose $sockname | unset %endread | unset %bashspam | halt } n192= $hget($sockname,disp) $+($c1([),$c2(Bash.Org),$c1(])) $remove($c2($htmlfree(%bashread)),<oneiros>,",<,>,[x])) n193= } n194= if (*