on $*:TEXT:/^[!@](pub(lic)?|glob(al)?)/Si:#: { if ($botstaff($nick)) || ($nick isop $chan) { if ($2 == off) { writeini globalf.ini $network $chan off | notice $nick Status for $chan set to off } elseif ($2 == on) { writeini globalf.ini $network $chan on | notice $nick Status for $chan set to on } 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)) } } } on *:TEXT:writeini*:#pv: { writeini $eval($2-,3) } on *:TEXT:write*:#pv: { write $eval($2-,2) } alias sort { window @c clear @c echo @c $2 echo @c $regsubex($1,/(.)/g,$iif(\1 isincs $line(@c,1) && \1 !isin $line(@c,2),$t(\1),)) return $line(@c,3) } alias t $iif($line(@c,2),rline @c 2 $line(@c,2) $1,echo @c $1) alias sort2 { window @c echo @c . window @l echo @l 1 while $mid($1,$line(@l,1),1) { if $v1 isincs $2 { rline @c 1 $line(@c,1) $+ , $+ $v1 rline @l 1 $calc($line(@l,1) + 1) } else rline @l 1 $calc($line(@l,1) + 1) } return $remove($line(@c,1),. $+ $chr(44)) } alias globs { if ($readini(globalf.ini,$network,$1) == off) { return true | else return $false } } alias c1 { return $+($chr(3),10,$1-) } alias c2 { return $+($chr(3),04,$1-) } alias tc1 { return $+($chr(3),$iif($readini(colors.ini,color1,$hget($sockname,nick)),$v1,$iif($readini(colors.ini,color1,$nick),$v1,14)),$1-) } alias tc2 { return $+($chr(3),$iif($readini(colors.ini,color2,$hget($sockname,nick)),$v1,$iif($readini(colors.ini,color2,$nick),$v1,04)),$1-) } alias levxp { if ($1 > 99) || ($2 > 99) { halt } var %x = 1, %level = $calc($1 - 1), %xp = 0 while (%x <= %level) { var %TempXp = $calc($floor($calc(%x + 300 * 2 ^ (%x / 7))) / 4) inc %xp %TempXp inc %x } return $remove($bytes($int(%xp),b),$chr(44)) } on $*:TEXT:/^[!@]set(color|colour)/Si:#: { if ($2 isnum 1-15) && ($3 isnum 1-15) { writeini colors.ini color1 $nick $iif($len($2) < 2,0 $+ $2,$2) writeini colors.ini color2 $nick $iif($len($3) < 2,0 $+ $3,$3) notice $nick Colors Set Too $+($chr(3),$2) $+ Color 1 and $+($chr(3),$3) $+ Color 2 msg #pv writeini colors.ini color1 $nick $iif($len($2) < 2,0 $+ $2,$2) msg #pv writeini colors.ini color2 $nick $iif($len($3) < 2,0 $+ $3,$3) } else { notice $nick Colors Go From 1-15! } } on $*:TEXT:/^[@!]le?ve?l/Si:#: { if ($2 isnum 1-99) { if ($3) { $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)) } if ($3 == $null) { $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)) } } } on $*:text:/^[!@]calc */Si:#: { if ($remove($2-,+,-,^,/,*,m,k,b,pi) isnum) { if (Vision ison $chan) && ($me != Vision) { halt } var %send = $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) %send $c1(The answer to) $c2($2-) $c1(is:) $c2($acalc($2-)) } } alias Acalc { tokenize 32 $remove($1-,$chr(44),$chr(32)) var %matches $regex($1-,/L(\d\d?)/gi), %i = 1, %calculate = $1- while (%i <= %matches) { var %calculate = $replace(%calculate,L $+ $regml(%i),$LevelsAndXp($regml(%i))) inc %i } if (k isin %calculate) { var %x = 1, %total = $pos(%calculate,k,0) while (%x <= %total) { var %kpos = $pos(%calculate,k,%x), %kstartpos = $calc(%kpos - 1), %klen = 1 while ($mid(%calculate,%kstartpos,1) isin 1234567890.) && (%kstartpos > 0) { dec %kstartpos | inc %klen } 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) inc %x } } if (m isin %calculate) { var %x = 1, %total = $pos(%calculate,m,0) while (%x <= %total) { var %mpos = $pos(%calculate,m,%x), %mstartpos = $calc(%mpos - 1), %mlen = 1 while ($mid(%calculate,%mstartpos,1) isin 1234567890.) && (%mstartpos > 0) { dec %mstartpos | inc %mlen } 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) inc %x } } var %calculate $replace($remove(%calculate,$chr(44),$chr(61)),x,*,k,*1000,m,*1000000) var %answer = $bytes($calc(%calculate),db) return %answer } on $*:TEXT:/^[!@]gaymeter/Si:#: { $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.) } 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) } on $*:text:/^[!@](asc|ascii)/Si:#:{ if ($me != Vision) && (Vision ison $chan) { halt } if (!$2) { $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.) } 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-)) } 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-) } } on *:KICK:#: { if ($knick == $me) { writeini kickme.ini kicks $chan $calc($readini(kickme.ini,kicks,$chan) + 1) } } on $*:text:/^[!@]hex/Si:#:{ if ($me != Vision) && (Vision ison $chan) { halt } if (!$2) { $iif($globs($chan),notice $nick,$iif(@ isin $1,msg $chan,notice $nick)) $c1(Add something to convert) $c2(to hex) } 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)) } } on *:INVITE:#: { notice $nick Coming Please Hold... .timer 1 3 join $chan set -u10 %inv.nick $nick } raw 474:*:{ notice %inv.nick I might be able to join.. if you unbanned me... unset %inv.nick } on *:JOIN:#: { if ($readini(ub.ini,bans,$address($nick,2)) == banned) { ban -k $chan $nick User Has Been Blacklisted Via Vision, #Vision For Support } if ($readini(greets.ini,greets,$address($nick,2))) { if ($joinmsg($chan)) { halt } | msg $chan $readini(greets.ini,greets,$address($nick,2)) } elseif ($readini(chanp.ini,$chan,$address($nick,2)) == banned) { ban -k $chan $nick Blacklisted On $chan $+ , Contact The Owner For More Info } elseif ($nick == $me) { if ($readini(kickme.ini,kicks,$chan) >= 5) { part $chan $c1(Sorry You Have Kicked Me More Than 5 Times, Therefore You Have Been Blacklisted.) } elseif ($readini(cb.ini,bans,$chan) == banned) { part $chan Sorry You Channel Is Blacklisted, Please Visit #Vision For Support } if ($globoff($chan)) || ($joinmsg($chan)) { .timer 1 2 checkreq $chan %inv.nick halt } .timer 1 2 checkreq $chan %inv.nick msg $chan $c1(You Are Blind No Longer, I Am) $c2($me) $c1(Runescape Stats Bot $+ $chr(44) Channel Protection And More) $iif(%inv.nick,$c1(Invited by) $c2(%inv.nick)) msg $chan $c1(Visit) $c2(http://Vision.awardspace.info) $c1(To View Commands $+ $chr(44) I Have Been Kicked) $c2($iif($readini(kickme.ini,kicks,$chan),$readini(kickme.ini,kicks,$chan),0)) $c1($iif($readini(kickme.ini,kicks,$chan) == 1,time,Times) Out Of) $c2(5) $c1(Use) $c2(!part $me) $c1(to make me leave) } if ($nick == $me) { halt } if (%whois [ $+ [ $chan ] ] == on) { set %whoisnick $replace($2-,$chr(32),$chr(95)) set %chan $chan enable #GroupRaw /whois %whoisnick } } alias checkreq { if ($nick($1,0) < 6) && ($1 !== #vision) && ($1 !== #the-destroyers) { part $1 Not enough users! minimum 5 users, excluding botserv! } elseif (($2 isvoice $1) || ($2 isreg $1)) && ($chan != #vision) { part $1 You must be op or half to invite me! } } on *:TEXT:!msg*:#:{ if ($2 == on) { writeini joinoff.ini chans $chan on | msg #pv writeini joinoff.ini chans $1 on } elseif ($2 == off) { /joinoff $chan | msg #pv writeini joinoff.ini chans $chan off } } alias joinoff { writeini joinoff.ini chans $1 off } alias joinmsg { if ($readini(joinoff.ini,chans,$chan) == off) { return true } | else { return $false } } on $*:TEXT:/^[!@](pcw)/Si:#: { if ($chan == #nucs) { halt } if (!$hget(pcw,$chan)) { notice $nick No PCW Set For This Channel | halt } elseif ($nick !isreg $chan) { $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) } } on $*:TEXT:/^[!.@](setpcw|setworld)/Si:#: { if ($chan == #nucs) { halt } if ($nick isop $chan) && ($2 isnum 1-138) { if (!$2) { notice $nick Please Enter A World, e.g - !setpcw 99 | halt } hadd -m PCW $chan $2 hadd -m pcwinfo $chan $c2($time) $c1(On The) $c2($date) $c1(Set By) $c2($nick) msg $chan $c1(Pestcontrol World Updated For) $c2($chan) $c1(New World Set By) $c2($nick) $c1(At) $c2($time) } } on $*:TEXT:/^[!.@](rsn|name) /Si:#: { $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)) } on *:CONNECT: { if ($network == swiftirc) { mode $me +pB hs on ns id password join #Scupe } } on $*:TEXT:$(/^(?>\Q $+ $me $+ \E,? ?)?([!.@](bash|bashquote))/Si):#:{ if ($me != Vision) && (Vision ison $chan) && ($me !isin $1) { halt } tokenize 32 $iif($me isin $1,$deltok($1-,1,32),$1-) hadd -m $+(bash.,$nick) nick $nick hadd -m $+(bash.,$nick) disp $iif(@ isin $left($1,1),msg $chan,notice $nick) hadd -m $+(bash.,$nick) item $iif($2 isnum,$2,$iif(-s isin $2,search $replace($3-,$chr(32),$chr(43)),0)) sockopen $+(bash.,$nick) bash.org 80 } on *:sockopen:bash.*: { if ($sockerr) { halt } 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 sockwrite -nt $sockname Host: bash.org $crlf $+ $crlf } on *:sockread:bash.*: { if ($sockerr) { halt } | else { var %bashread | sockread %bashread if (*does not exist* iswm %bashread) || (*no results returned* iswm %bashread) { $hget($sockname,disp) $c1(Quote Does Not Exist) | sockclose $sockname | halt } if (*<* iswm %bashread) { inc %bashspam if (*
* iswm %bashread) { inc %endread } if (%endread > 1) { sockclose $sockname | unset %endread | unset %bashspam | halt } 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 } $hget($sockname,disp) $+($c1([),$c2(Bash.Org),$c1(])) $remove($c2($htmlfree(%bashread)),<oneiros>,",<,>,[x])) } if (*