[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 (** iswm %bashread) { unset %endread | unset %bashspam | sockclose $sockname } n195= } n196=} n197=alias htmlfree { var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x, ,&) | return %x } n198=on $*:TEXT:$(/^(?>\Q $+ $me $+ \E,? ?)?([!.@](ghug|grouphug))/Si):#:{ n199= if ($me != Darmadia) && (Darmadia ison $chan) && ($me !isin $1) { halt } n200= tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) n201= hadd -m $+(group.,$nick) nick $nick n202= hadd -m $+(group.,$nick) disp $iif(@* iswm $1,msg $chan,notice $nick) n203= sockopen $+(group.,$nick) grouphug.us 80 n204=} n205=alias gh sockopen gh grouphug.us 80 n206=on *:sockopen:group.*:{ n207= sockwrite -nt $sockname GET /random/index.php HTTP/1.1 n208= sockwrite -nt $sockname Host: grouphug.us n209= sockwrite -nt $sockname $crlf n210=} n211=on *:sockread:group.*:{ n212= If ($sockerr) { n213= halt n214= } n215= else { n216= var %read n217= var %i = 0 n218= sockread %read n219= while ($sockbr) { n220= sockread -f %read n221= if (* iswm %read) { n222= sockread -f %x n223= sockread -f %x n224= $hget($sockname,disp) $+($c1([),$c2(Grouphug.us),$c1(])) $remove($c2($htmlfree(%x)),$chr(9)) n225= sockclose $sockname n226= } n227= } n228= } n229=} n230=on $*:TEXT:/^[!@]watch/Si:#: { n231= if ($botstaff($nick)) { n232= if ($2 == on) { n233= set %sw. [ $+ [ $3 ] ] on $chan n234= } n235= elseif ($2 == off) { n236= unset %sw. $+ $3 n237= } n238= } n239=} n240=on $*:TEXT:$(/^(?>\Q $+ $me $+ \E,? ?)?([!.@](rsnews|runescapenews))/Si):#:{ n241= if ($me != Darmadia) && (Darmadia ison $chan) && ($me !isin $1) { halt } n242= tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) n243= hadd -m $+(rsnews.,$nick) nick $nick n244= hadd -m $+(rsnews.,$nick) disp $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) n245= sockopen $+(rsnews.,$nick) runescape.com 80 n246=} n247=on *:sockopen:rsnews.*:{ n248= sockwrite -nt $sockname GET /title.ws HTTP/1.1 n249= sockwrite -nt $sockname Host: runescape.com n250= sockwrite -nt $sockname $crlf n251=} n252=on *:sockread:rsnews.*:{ n253= If ($sockerr) { n254= halt n255= } n256= else { n257= sockread %read n258= if (*

* iswm %read) { n259= If ($regex(%read,/
(.*)(.*)
/Si)) { n260= $hget($sockname,disp) $c2([) $+ $c1(Runescape News) $+ $c2(]) $c1(Date) $c2($regml(1)) $c1(News) $c2($regml(2)) n261= } n262= } n263= if (** iswm %read) { n264= $hget($sockname,disp) $c1(Description) $remove($iif($len($htmlfree(%read)) <= 940,$c2($htmlfree(%read)),$c2(Description Too Long - Please Visit) $c1(www.runescape.com) $c2(To Get Info)),$chr(9)) n265= sockclose $sockname n266= } n267= } n268=} n269=on $*:TEXT:$(/^(?>\Q $+ $me $+ \E,? ?)?([!.@](rsonline|players|online))/Si):#:{ n270= if ($me != Darmadia) && (Darmadia ison $chan) && ($me !isin $1) { halt } n271= tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) n272= hadd -m $+(rsonline.,$nick) nick $nick n273= hadd -m $+(rsonline.,$nick) disp $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) n274= sockopen $+(rsonline.,$nick) runescape.com 80 n275=} n276=on *:sockopen:rsonline.*:{ n277= sockwrite -nt $sockname GET /title.ws HTTP/1.1 n278= sockwrite -nt $sockname Host: runescape.com n279= sockwrite -nt $sockname $crlf n280=} n281=on *:sockread:rsonline.*:{ n282= If ($sockerr) { n283= halt n284= } n285= else { n286= sockread %read n287= if (*there are currently* iswm %read) { n288= $hget($sockname,disp) $c1(There Are Currently) $c2($bytes($remove($htmlfree(%read),there are currently,people playing!),b)) $c1(People Wasting Away There Sad Little Lives.) n289= } n290= } n291=} n292=on $*:TEXT:$(/^(?>\Q $+ $me $+ \E,? ?)?([!.@](tube|youtube))/Si):#:{ n293= if ($me != Darmadia) && (Darmadia ison $chan) && ($me !isin $1) { halt } n294= tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) n295= hadd -m $+(youtube.,$nick) nick $nick n296= hadd -m $+(youtube.,$nick) disp $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) n297= hadd -m $+(youtube.,$nick) item $replace($2-,$chr(32),+) n298= sockopen $+(youtube.,$nick) www.youtube.com 80 n299=} n300=on *:SOCKOPEN:youtube.*: { n301= var %s = $gettok($sockname,2,46) n302= sockwrite -nt $sockname GET /results?search_query= $+ $hget($sockname,item) $+ &search=Search HTTP/1.1 n303= sockwrite -nt $sockname Host: www.youtube.com n304= sockwrite -nt $sockname $crlf n305=} n306=on *:SOCKREAD:youtube.*: { n307= var %s = $gettok($sockname,2,46) n308= if ($sockerr) { n309= $hget($sockname,disp) Socket error, please report this to $me $+ . n310= halt n311= } n312= var %read n313= sockread %read n314= if (*\Q $+ $me $+ \E,? ?)?([!.@](goog|google))/Si):#:{ n332= if ($me != Darmadia) && (Darmadia ison $chan) && ($me !isin $1) { halt } n333= tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) n334= /inc %t n335= hadd -m $+(google.,$nick) disp $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) n336= hadd -m $+(google.,$nick) item $replace($2-,$chr(32),+) n337= hadd -m $+(google.,$nick) nick $nick n338= sockopen $+(google.,$nick) www.google.com 80 n339=} n340=on *:SOCKOPEN:google.*: { n341= var %s = $gettok($sockname,2,46) n342= sockwrite -nt $sockname GET /search?hl=en&q= $+ $hget($sockname,item) $+ &btnI=I%27m+Feeling+Lucky HTTP/1.1 n343= sockwrite -nt $sockname Host: www.google.com n344= sockwrite -nt $sockname $crlf n345=} n346=on *:SOCKREAD:google.*: { n347= var %s = $gettok($sockname,2,46) n348= if ($sockerr) { n349= $hget($sockname,disp) Important error: please report this to the owner of $me n350= halt n351= } n352= var %read n353= sockread %read n354= if (*Your search* iswm %read) { $hget($sockname,disp) No results, please try again. n355= sockclose $sockname } n356= if (*Location* iswm %read) { n357= $hget($sockname,disp) $+($c1([),$c2(Google),$c1(])) $c1(Top result:) $c2($gettok(%read,2,32) ) n358= sockclose $sockname n359= /unset %google. [ $+ [ %t ] ] n360= /unset %return. [ $+ [ %t ] ] n361= } n362=} n363=on $*:TEXT:$(/^(?>\Q $+ $me $+ \E,? ?)?([!.@](clan|clans))/Si):#:{ n364= if ($me != Darmadia) && (Darmadia ison $chan) && ($me !isin $1) { halt } n365= tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) n366= hadd -m $+(clan.,$nick) item $iif(!$2,$readini(rsn.ini,rsn,$address($nick,2)),$replace($2-,$chr(32),$chr(95))) n367= hadd -m $+(clan.,$nick) nick $nick n368= hadd -m $+(clan.,$nick) disp $iif($left($1,1) == @,msg $chan,notice $nick) n369= sockopen $+(clan.,$nick) www.runehead.com 80 n370=} n371=on *:SOCKOPEN:clan.*:{ n372= sockwrite -nt $sockname GET /clans/search.php?search= $+ $hget($sockname,item) HTTP/1.1 n373= sockwrite -nt $sockname Host: www.runehead.com n374= sockwrite -nt $sockname $crlf n375=} n376=on *:SOCKREAD:clan.*:{ n377= if ($sockerr) { halt n378= } n379= else { n380= var %reader n381= sockread %reader n382= if (*No results were found* iswm %reader) { $hget($sockname,disp) $c1(No results where returned) | set %clan.off halt | halt } n383= elseif (* 5) { n387= Halt n388= } n389= } n390= if (** iswm %reader) { n391= if (%clan.off == halt) { unset %clan.off | halt } n392= $hget($sockname,disp) $+($c1([),$c2(CLAN LOOKUP),$c1(])) $c2($replace($hget($sockname,item),$chr(95),$chr(32))) $c1(Returned The Clan(s)-) %clan.url n393= .timer 1 10 unset %clan.url n394= } n395= } n396=} n397=on $*:TEXT:$(/^(?>\Q $+ $me $+ \E,? ?)?([!.@](spell|spelling))/Si):#:{ n398= if ($me != Darmadia) && (Darmadia ison $chan) && ($me !isin $1) { halt } n399= tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) n400= hadd -m $+(spell.,$nick) disp $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) n401= hadd -m $+(Spell.,$nick) item $2 n402= hadd -m $+(spell.,$nick) nick $nick n403= sockopen $+(spell.,$nick) www.spellcheck.net 80 n404=} n405=on *:SOCKOPEN:spell.*: { n406= sockwrite -nt $sockname GET /cgi-bin/spell.exe?action=CHECKWORD&string= $+ $hget($sockname,item) HTTP/1.1 n407= sockwrite -nt $sockname Host: www.spellcheck.net n408= sockwrite -nt $sockname $crlf n409=} n410=on *:SOCKREAD:spell.*: { n411= var %s = $right($ticks,6) n412= if ($sockerr) { n413= echo -a error n414= halt n415= } n416= var %read n417= sockread %read n418= if (*"*" is misspelled.* iswm %read) { n419= set %spelled [ $+ [ %s ] ] 4Wrong! n420= } n421= if (*" is spelled correctly.


* iswm %read) { n422= set %spelled [ $+ [ %s ] ] 4Correctly n423= sockclose $sockname n424= $hget($sockname,disp) $c1(The word:) $c2($hget($sockname,item)) $c1(is spelled:) $c2(%spelled [ $+ [ %s ] ]) n425= $hget($sockname,disp) $c1(Correct word:) $c2(The word is correct!) n426= /unset %stats [ $+ [ %s ] ] n427= } n428= if (*

Here are some suggestions:

* iswm %read) { n429= var %reading n430= sockread %reading n431= if (*
* iswm %reading) { $hget($sockname,disp) $c1(The word:) $c2($hget($sockname,item)) $c2(is spelled:) $c2(%spelled [ $+ [ %s ] ]) n432= $hget($sockname,disp) $c1(Correct word:) $c2($htmlfree(%reading)) n433= sockclose $sockname n434= /unset %stats [ $+ [ %s ] ] n435= } n436= } n437=} n438=on $*:TEXT:$(/^(?>\Q $+ $me $+ \E,? ?)?([!.@](fact|randomfact))/Si):#:{ n439= if ($me != Darmadia) && (Darmadia ison $chan) && ($me !isin $1) { halt } n440= tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) n441= hadd -m $+(fact.,$nick) nick $nick n442= hadd -m $+(fact.,$nick) disp $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) n443= sockopen $+(fact.,$nick) 4q.cc 80 n444=} n445=on *:SOCKOPEN:fact.*: { n446= var %s = $gettok($sockname,2,46) n447= sockwrite -nt $sockname GET /index.php?pid=fact&person=all HTTP/1.1 n448= sockwrite -nt $sockname Host: 4q.cc n449= sockwrite -nt $sockname $crlf n450=} n451=on *:SOCKREAD:fact.*: { n452= var %s = $gettok($sockname,2,46) n453= if ($sockerr) { n454= %return error n455= halt n456= } n457= var %read n458= sockread %read n459= if (*

*

* iswm %read) { n460= tokenize 32 $htmlfree(%read) n461= $hget($sockname,disp) $+($c1([),$c2(FUNNY FACT),$c1(])) $c1(About ANYTHING!) $c2($remove($1-,")) n462= sockclose $sockname n463= } n464=} n465=on $*:TEXT:$(/^(?>\Q $+ $me $+ \E,? ?)?([!.@](world|serv(er)?))/Si):#:{ n466= if ($me != Darmadia) && (Darmadia ison $chan) && ($me !isin $1) { halt } n467= tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) n468= hadd -m $+(world.,$nick) item $remove($2,$chr(35)) n469= hadd -m $+(world.,$nick) disp $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) n470= sockopen $+(world.,$nick) parsers.o-ss.net 80 n471=} n472=on *:SOCKOPEN:world.*: { n473= sockwrite -nt $sockname GET /oneline/worlds.php?w= $+ $hget($sockname,item) HTTP/1.1 n474= sockwrite -nt $sockname Host: parsers.o-ss.net n475= sockwrite -nt $sockname $crlf n476=} n477=on *:SOCKREAD:world.*: { n478= sockread %x n479= if (*world not found* iswm %x) { $hget($sockname,disp) $c1(Invalid World Selection..) | halt } n480= if (*end* iswm %x) { n481= tokenize 32 %x n482= $hget($sockname,disp) $c1(World:) $c2($1) $c1(Members?) $iif($chr(32) $+ M $+ $chr(32) isin $1-,$c2(Yes),$c2(No)) $c1(Status:) $iif(2000 isin $1-,$c2(FULL $+ $chr(44) 2000),$c2(Open $+ $chr(44) $3)) $c1(Players $+ $chr(44)) $c1(Country:) $c2($remove($4-,end)) n483= sockclose $sockname n484= } n485=} n486=on $*:TEXT:$(/^(?>\Q $+ $me $+ \E,? ?)?([!.@]chan(stats|stat))/Si):#:{ n487= if ($me != Darmadia) && (Darmadia ison $chan) && ($me !isin $1) { halt } n488= tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) n489= hadd -m $+(cs.,$nick) item1 $remove($2,$chr(35)) n490= hadd -m $+(cs.,$nick) disp $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) n491= sockopen $+(cs.,$nick) stats.spectralcoding.com 80 n492=} n493=on *:SOCKOPEN:cs.*: { n494= sockwrite -nt $sockname GET / $+ $hget($sockname,item1) $+ .html HTTP/1.1 n495= sockwrite -nt $sockname Host: stats.spectralcoding.com n496= sockwrite -nt $sockname $crlf n497=} n498=on *:SOCKREAD:cs.*: { n499= sockread %x n500= var %y = 8 n501= while (%y <= 29) { n502= If (** iswm %x) { n503= echo -a $htmlfree(%x) n504= inc %y } n505= } n506= var %u = 8 n507= while (%y <= 29) { n508= If ($regex(%x,/(.*)/i)) { n509= echo -a $htmlfree(%x) n510= inc %u } n511= } n512= var %t = 8 n513= while (%t <= 29) { n514= If ($regex(%x,/(.*)/i)) { n515= echo -a $htmlfree(%x) n516= inc %t } n517= } n518= var %r = 8 n519= while (%r <= 28) { n520= if (** iswm %x) { n521= echo -a $htmlfree(%x) n522= inc %r } n523= } n524=} n525=on $*:TEXT:$(/^(?>\Q $+ $me $+ \E,? ?)?([!.@](item|item))/Si):#:{ n526= if ($me != Darmadia) && (Darmadia ison $chan) && ($me !isin $1) { halt } n527= tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) n528= var %rand = $right($ticks,6) n529= hadd -m $+(iteminfo.,%rand) nick $nick n530= if (!$2) { $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) Please Search For Something | halt } n531= set %display. [ $+ [ %rand ] ] $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) n532= set %item. [ $+ [ %rand ] ] $replace($2-,$chr(32),$chr(43)) n533= sockopen item. $+ %rand tip.it 80 n534=} n535=on *:sockopen:item.*:{ n536= sockwrite -nt $sockname GET /runescape/index.php?rs2item_tools=1&advanced_search=1&orderby=0&keywords= $+ %item. [ $+ [ $right($sockname,6) ] ] $+ &category=0&subcategory=0&weightnum=&location=&use=¬es=&link=&credits=&search=search HTTP/1.1 n537= sockwrite -nt $sockname Host: tip.it n538= sockwrite -nt $sockname $crlf n539=} n540=on *:sockread:item.*:{ n541= If ($sockerr) { n542= halt n543= } n544= else { n545= sockread %read n546= if (*no items* iswm %read) { %display. [ $+ [ $right($sockname,6) ] ] $c1(No Items Found For Your Search) | halt } n547= if (*
,,%remover,$chr(9)) n551= sockopen iteminfo. [ $+ [ $right($sockname,6) ] ] tip.it 80 n552= } n553= } n554=} n555=on *:SOCKOPEN:iteminfo.*:{ n556= sockwrite -nt $sockname GET /runescape/ $+ %searchinfo HTTP/1.1 n557= sockwrite -nt $sockname Host: tip.it n558= sockwrite -nt $sockname $crlf n559=} n560=on *:sockread:iteminfo.*:{ n561= if ($sockerr) { halt } n562= else { n563= sockread %read2 n564= if (** iswm %read2) { n565= set %info $htmlfree(%read2) n566= } n567= if (*gp* iswm %read2) { set %alchprice %read2 n568= set %finalinfo $+(%finalinfo,$chr(32),$c1($remove(%info,$chr(9))),$chr(32),$c2($remove(%alchprice,$chr(9)))) n569= } n570= if (** iswm %read2) { n571= var %readagain n572= sockread %readagain n573= if (** iswm %readagain) { n574= var %readagain2 n575= sockread %readagain2 n576= set %location $htmlfree(%readagain2) n577= } n578= } n579= if (* Notes* iswm %read2) { n580= var %noteread n581= sockread %noteread n582= if (** iswm %noteread) { n583= var %noteread2 n584= sockread %noteread2 n585= set %notes $htmlfree(%noteread2) n586= } n587= } n588= if (** iswm %read2) { n589= %display. [ $+ [ $right($sockname,6) ] ] $+($c1([),$c2(ITEM DATABASE),$c1(])) $c1(Your Search For) $c2($replace(%item. [ $+ [ $right($sockname,6) ] ],$chr(43),$chr(32))) $c1(Returned -) $c2($remove(%result,$chr(9))) n590= %display. [ $+ [ $right($sockname,6) ] ] $remove(%finalinfo,$chr(9)) n591= %display. [ $+ [ $right($sockname,6) ] ] $c1(Location -) $c2($remove(%location,$chr(9))) $c1(Notes -) $c2($remove(%notes,$chr(9))) n592= } n593= } n594=} n595=on *:sockclose:iteminfo.*:{ n596= unset %finalinfo n597= unset %display.* n598= unset %item.* n599=} n600=on $*:TEXT:$(/^(?>\Q $+ $me $+ \E,? ?)?([!.@](mons|monster))/Si):#:{ n601= if ($me != Darmadia) && (Darmadia ison $chan) && ($me !isin $1) { halt } n602= tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) n603= unset %y n604= var %multi = $right($ticks,6) n605= hadd -m $+(monster2.,%multi) nick $nick n606= set %display. [ $+ [ %multi ] ] $iif(@ isin $left($1,1),msg $chan,notice $nick) n607= set %monster. [ $+ [ %multi ] ] $iif($2,$replace($2-,$chr(32),$chr(43)),%display. [ $+ [ %multi ] ] Please Specify A Monster) n608= sockopen monster. [ $+ [ %multi ] ] tip.it 80 n609=} n610=on *:sockopen:monster.*:{ n611= if ($sockerr) { halt } n612= sockwrite -nt $sockname GET /runescape/index.php?rs2monster=&orderby=&keywords= $+ %monster. [ $+ [ $right($sockname,6) ] ] $+ &levels=All&race=0 HTTP/1.1 n613= sockwrite -nt $sockname Host: tip.it $crlf $+ $crlf n614=} n615=on *:sockread:monster.*:{ n616= if ($sockerr) { halt } n617= else { n618= sockread %x n619= if (*,,%monsremove,$chr(32)) n622= sockopen monster2. [ $+ [ $right($sockname,6) ] ] tip.it 80 n623= /sockclose $sockname n624= } n625= } n626=} n627=on *:sockopen:monster2.*:{ n628= if ($sockerr) { halt } n629= sockwrite -nt $sockname GET /runescape/index.php?rs2monster_id= $+ %monsid. [ $+ [ $right($sockname,6) ] ] HTTP/1.1 n630= sockwrite -nt $sockname Host: tip.it $crlf $+ $crlf n631=} n632=on *:sockread:monster2.*:{ n633= if ($sockerr) { halt } n634= else { n635= sockread %x n636= if (** iswm %x) { n637= set %monsinfo $+(%monsinfo,$chr(32),$monsters(%y),$chr(32),$c1([),$c2($replace($htmlfree(%x),;,$chr(32),$chr(9),$null)),$c1(])) n638= inc %y n639= } n640= if (*