rendered paste bodyon *:text:!av*:#:{
if ($nick isop $chan) || ($nick ishop $chan) {
set %voicenick $2-
/cs access $chan add %voicenick 3
/notice %voicenick You have been added to the auto-voice list.
/notice $nick %voicenick has been added to the auto-voice list.
/mode $chan +v %voicenick
}
}
ON $*:TEXT:/^[!@.]gaymeter*/Si:*:{
/set %8ball $rand(1,102)
if (%8ball == 1) .msg $chan hmm $2- is 1% gay
if (%8ball == 2) .msg $chan hmm $2- is 2% gay
if (%8ball == 3) .msg $chan hmm $2- is 3% gay
if (%8ball == 4) .msg $chan hmm $2- is 4% gay
if (%8ball == 5) .msg $chan hmm $2- is 5% gay
if (%8ball == 6) .msg $chan hmm $2- is 6% gay
if (%8ball == 7) .msg $chan hmm $2- is 7% gay
if (%8ball == 8) .msg $chan hmm $2- is 8% gay
if (%8ball == 9) .msg $chan hmm $2- is 9% gay
if (%8ball == 10) .msg $chan hmm $2- is 10 %gay
if (%8ball == 11) .msg $chan hmm $2- is 11% gay
if (%8ball == 12) .msg $chan hmm $2- is 12% gay
if (%8ball == 13) .msg $chan hmm $2- is 13% gay
if (%8ball == 14) .msg $chan hmm $2- is 14% gay
if (%8ball == 15) .msg $chan hmm $2- is 15% gay
if (%8ball == 16) .msg $chan hmm $2- is 16% gay
if (%8ball == 17) .msg $chan hmm $2- is 17% gay
if (%8ball == 18) .msg $chan hmm $2- is 18% gay
if (%8ball == 19) .msg $chan hmm $2- is 19% gay
if (%8ball == 20) .msg $chan hmm $2- is 20% gay
if (%8ball == 21) .msg $chan hmm $2- is 21% gay
if (%8ball == 22) .msg $chan hmm $2- is 22% gay
if (%8ball == 23) .msg $chan hmm $2- is 23% gay
if (%8ball == 24) .msg $chan hmm $2- is 24% gay
if (%8ball == 25) .msg $chan hmm $2- is 25% gay
if (%8ball == 26) .msg $chan hmm $2- is 26% gay
if (%8ball == 27) .msg $chan hmm $2- is 27% gay
if (%8ball == 28) .msg $chan hmm $2- is 28% gay
if (%8ball == 29) .msg $chan hmm $2- is 29% gay
if (%8ball == 30) .msg $chan hmm $2- is 30% gay
if (%8ball == 31) .msg $chan hmm $2- is 31% gay
if (%8ball == 32) .msg $chan hmm $2- is 32% gay
if (%8ball == 33) .msg $chan hmm $2- is 33% gay
if (%8ball == 34) .msg $chan hmm $2- is 34% gay
if (%8ball == 35) .msg $chan hmm $2- is 35% gay
if (%8ball == 36) .msg $chan hmm $2- is 36% gay
if (%8ball == 37) .msg $chan hmm $2- is 37% gay
if (%8ball == 38) .msg $chan hmm $2- is 38% gay
if (%8ball == 39) .msg $chan hmm $2- is 39% gay
if (%8ball == 40) .msg $chan hmm $2- is 40% gay
if (%8ball == 41) .msg $chan hmm $2- is 41% gay
if (%8ball == 42) .msg $chan hmm $2- is 42% gay
if (%8ball == 43) .msg $chan hmm $2- is 43% gay
if (%8ball == 44) .msg $chan hmm $2- is 44% gay
if (%8ball == 45) .msg $chan hmm $2- is 45% gay
if (%8ball == 46) .msg $chan hmm $2- is 46% gay
if (%8ball == 47) .msg $chan hmm $2- is 47% gay
if (%8ball == 48) .msg $chan hmm $2- is 48% gay
if (%8ball == 49) .msg $chan hmm $2- is 49% gay
if (%8ball == 50) .msg $chan hmm $2- is 50% gay
if (%8ball == 51) .msg $chan hmm $2- is 51% gay
if (%8ball == 52) .msg $chan hmm $2- is 52% gay
if (%8ball == 53) .msg $chan hmm $2- is 53% gay
if (%8ball == 54) .msg $chan hmm $2- is 54% gay
if (%8ball == 55) .msg $chan hmm $2- is 55% gay
if (%8ball == 56) .msg $chan hmm $2- is 56% gay
if (%8ball == 57) .msg $chan hmm $2- is 57% gay
if (%8ball == 58) .msg $chan hmm $2- is 58% gay
if (%8ball == 59) .msg $chan hmm $2- is 59% gay
if (%8ball == 60) .msg $chan hmm $2- is 60% gay
if (%8ball == 61) .msg $chan hmm $2- is 61% gay
if (%8ball == 62) .msg $chan hmm $2- is 62% gay
if (%8ball == 63) .msg $chan hmm $2- is 63% gay
if (%8ball == 64) .msg $chan hmm $2- is 64% gay
if (%8ball == 65) .msg $chan hmm $2- is 65% gay
if (%8ball == 66) .msg $chan hmm $2- is 66% gay
if (%8ball == 67) .msg $chan hmm $2- is 67% gay
if (%8ball == 68) .msg $chan hmm $2- is 68% gay
if (%8ball == 69) .msg $chan hmm $2- is 69% gay
if (%8ball == 70) .msg $chan hmm $2- is 70% gay
if (%8ball == 71) .msg $chan hmm $2- is 71% gay
if (%8ball == 72) .msg $chan hmm $2- is 72% gay
if (%8ball == 73) .msg $chan hmm $2- is 73% gay
if (%8ball == 74) .msg $chan hmm $2- is 74% gay
if (%8ball == 75) .msg $chan hmm $2- is 75% gay
if (%8ball == 76) .msg $chan hmm $2- is 76% gay
if (%8ball == 77) .msg $chan hmm $2- is 77% gay
if (%8ball == 78) .msg $chan hmm $2- is 78% gay
if (%8ball == 79) .msg $chan hmm $2- is 79% gay
if (%8ball == 80) .msg $chan hmm $2- is 80% gay
if (%8ball == 81) .msg $chan hmm $2- is 81% gay
if (%8ball == 82) .msg $chan hmm $2- is 82% gay
if (%8ball == 83) .msg $chan hmm $2- is 83% gay
if (%8ball == 84) .msg $chan hmm $2- is 84% gay
if (%8ball == 85) .msg $chan hmm $2- is 85% gay
if (%8ball == 86) .msg $chan hmm $2- is 86% gay
if (%8ball == 87) .msg $chan hmm $2- is 87% gay
if (%8ball == 88) .msg $chan hmm $2- is 88% gay
if (%8ball == 89) .msg $chan hmm $2- is 89% gay
if (%8ball == 90) .msg $chan hmm $2- is 90% gay
if (%8ball == 91) .msg $chan hmm $2- is 91% gay
if (%8ball == 92) .msg $chan hmm $2- is 92% gay
if (%8ball == 93) .msg $chan hmm $2- is 93% gay
if (%8ball == 94) .msg $chan hmm $2- is 94% gay
if (%8ball == 95) .msg $chan hmm $2- is 95% gay
if (%8ball == 96) .msg $chan hmm $2- is 96% gay
if (%8ball == 97) .msg $chan hmm $2- is 97% gay
if (%8ball == 98) .msg $chan hmm $2- is 98% gay
if (%8ball == 99) .msg $chan hmm $2- is 99% gay
if (%8ball == 100) .msg $chan hmm $2- is 100% gay
if (%8ball == 101) .msg $chan hmm $2- is 0% gay
if (%8ball == 102) .msg $chan hmm $2- is Completely Gay. 999%.
}
ON $*:TEXT:/^[!@.]penistest*/Si:*:{
/set %8ball $rand(1,8)
if (%8ball == 1) .msg $chan wow, $2 How do you live with such a small thing?
if (%8ball == 2) .msg $chan woah, $2 It's so huge!!
if (%8ball == 3) .msg $chan hmm, $2 I might need a telescope!
if (%8ball == 4) .msg $chan OMG, $2 ITS A MONSTER
if (%8ball == 5) .msg $chan OMG, $2 ITS really small from Swifty (The master on these things)
if (%8ball == 6) .msg $chan OMG, $2 OMG Eng would lick that!
if (%8ball == 7) .msg $chan OMG, $2 Put it away, it's fucking demented.
if (%8ball == 8) .msg $chan Jesus Mary Christ, $2 Is it just me, but you have tits AND a dick? SHIT!
}
on $*:text:/^[!@.]slap*/Si:#: {
/set %8ball $rand(1,14)
if (%8ball == 1) .describe $chan slaps $2 with a Abbysal whip
if (%8ball == 2) .describe $chan slaps $2 with a 2ez1pure
if (%8ball == 3) .describe $chan slaps $2 with a Defiler (level 100)
if (%8ball == 4) .describe $chan slaps $2 with a Guthans warspear (100)
if (%8ball == 5) .describe $chan slaps $2 with a Rune Essence
if (%8ball == 6) .describe $chan slaps $2 with a Ddp++
if (%8ball == 7) .describe $chan slaps $2 with a Dragon 2hand
if (%8ball == 7) .describe $chan slaps $2 with a Ring of charos(a)
if (%8ball == 8) .describe $chan slaps $2 with a rune plateskirt (g)
if (%8ball == 9) .describe $chan slaps $2 with a Burnt lobster
if (%8ball == 10) .describe $chan slaps $2 with a Wizard hat (g)
if (%8ball == 11) .describe $chan slaps $2 with a Dharoks great axe (75)
if (%8ball == 12) .describe $chan slaps $2 with a Void knight
if (%8ball == 13) .describe $chan slaps $2 with 2\3 of a chocolate cake
if (%8ball == 14) .describe $chan slaps $2 with a Green boater
}
ON $*:TEXT:/^[!@.]8ball*/Si:*:{
/set %8ball $rand(1,8)
if (%8ball == 1) .msg $chan 4No!
if (%8ball == 2) .msg $chan 4Yes
if (%8ball == 3) .msg $chan 4Maybe
if (%8ball == 4) .msg $chan 4of course
if (%8ball == 5) .msg $chan 4Are you crazy?!?!
if (%8ball == 6) /msg $chan 4How should I know?
if (%8ball == 7) /msg $chan 4Are you fucking dumb?
if (%8ball == 8) /msg $chan 4All I know is your mother is a man.
}
on *:TEXT:!Calc*:#: {
notice $nick 8,1.4,1::8,1.0,1The answer to $2 is: $calc($replace($2,x,*))8,1.4,1::8,1.
}
alias c1 { return $+( 4 $1-,) }
alias c2 { return $+( 7 $1-,) }
on *:text:*:#: {
tokenize 32 $strip($1-)
if ($left($1,1) !isin @!.) halt
if ($right($1,-1) == stats) var %style = astats
elseif ($regex($1,/co?mb(at)?/Si)) var %style = combat
elseif ($setskill($remove($1,@,!,.))) var %style = istat, %skill = $setskill($remove($1,@,!,.))
elseif ($right($1,-1) == defname) && ($2) {
writeini DefRSN.ini RSNs $mask($fulladdress,3) $replace($2-,$chr(32),-)
.notice $nick 7You're default RSN for the host 4 $mask($fulladdress,3) 7has been set to $2-
halt
}
else halt
inc %ID
if ($len($2-) > 12) {
4 $($+(%,stats.display.,%ID),2) $c1(The nick) $c2($2-) $c1(is too long)
cleanup %ID
halt
}
elseif ($2) set $+(%,stats.rsn.,%ID) $replace($2-,$chr(32),-)
elseif ($readini(DefRSN.ini,RSNs,$mask($fulladdress,3))) set $+(%,stats.rsn.,%ID) $ifmatch
elseif ($readini(DefRSN.ini,RSNs,$nick)) set $+(%,stats.rsn.,%ID) $ifmatch
else set $+(%,stats.rsn.,%ID) $nick
set $+(%,stats.style.,%ID) %style
set $+(%,stats.skill.,%ID) %skill
set $+(%,stats.display.,%ID) $iif($left($1,1) == @,msg $chan,notice $nick)
sockopen $+(stats.,%ID) hiscore.runescape.com 80
}
on *:sockopen:stats.*: {
var %id = $gettok($sockname,2,46)
sockwrite -n $sockname GET /lang/en/aff/runescape/hiscorepersonal.ws?user1= $+ $($+(%,stats.rsn.,%ID),2) HTTP/1.1
sockwrite -n $sockname Host: hiscore.runescape.com $+ $crlf $+ $crlf
}
on *:sockread:stats.*: {
sockread &Incoming
bwrite $sockname -1 -1 &Incoming
if ($bfind(&Incoming, 1, </html>).text) makehash $sockname
elseif ($bfind(&Incoming, 1, does not feature in the hiscores.).text) {
$($+(%,stats.display.,%ID),2) $c1(The nick) $c2($($+(%,stats.rsn.,%ID),2)) $c1(Does not appear in the hiscores)
cleanup $gettok($sockname,2,46)
}
}
alias -l makehash {
var %file = $1
bread %file 1 $file(%file).size &stats
var %currentstat, %x = 1
while (%x) {
var %x = $bfind(&stats,$calc(%x + 1),<a href="overall.ws?table=)
var %currentstat = $striptags($bvar(&stats,%x,200).text)
tokenize 10 %currentstat
hadd -m %file $1 $2 $3 $4 $xp2next($3,$4)
}
process %file
}
alias process {
var %table = $1, %id = $gettok($1,2,46), %x = 0, $&
%display = $($+(%,stats.display.,%ID),2), $&
%rsn = $($+(%,stats.rsn.,%ID),2), $&
%skill = $($+(%,stats.skill.,%ID),2), $&
%style = $($+(%,stats.style.,%ID),2)
;shoot;
if (%style == astats) {
while (%x <= 23) {
tokenize 32 $hget(%table,$setskill(%x))
if ($2) var %statline = %statline $c1($setskill(%x)) $c2($2)
inc %x
}
%display $c1(Stats for) $c2(%rsn) $+ $c1(:)
%display %statline
}
elseif (%style == istat) {
if (!$hget(%table,%skill)) 7 %display $c1(The nick) $c2(%rsn) $c1(does not appear in the hiscores for) $c2(%skill)
else {
tokenize 32 $hget(%table,%skill)
%display $c2(%skill) $c1(stats for) $c2(%rsn) $+ $c1(:)
%display $c1(Rank:) $c2($1) $c1(Level:) $c2($bytes($2,b)) $c1(Exp:) $c2($3) $&
$iif(%skill != Overall,$c1(Exp to lvl) $c2($calc($2 + 1)) $+ $c1(:) $c2($bytes($4,b)))
}
}
elseif (%style == combat) {
var %a.mult = .32707, %s.mult = .324, %d.mult = .25, %h.mult = .25, %p.mult = .124, %r.mult = .487, %m.mult = .487
var %a = $iif($gettok($hget(%table,attack),2,32),$v1,-), $&
%s = $iif($gettok($hget(%table,strength),2,32),$v1,-), $&
%d = $iif($gettok($hget(%table,defence),2,32),$v1,-), $&
%h = $iif($gettok($hget(%table,hitpoints),2,32),$v1,-), $&
%r = $iif($gettok($hget(%table,ranged),2,32),$v1,-), $&
%m = $iif($gettok($hget(%table,magic),2,32),$v1,-), $&
%p = $iif($gettok($hget(%table,prayer),2,32),$v1,-)
var %meleecombat = $calc(%a * %a.mult + %s * %s.mult + %d * %d.mult + %h * %h.mult + %p * %p.mult), $&
%RangedCombat = $calc(%r * %r.mult + %p * %p.mult + %d * %d.mult + %h * %h.mult), $&
%MagicCombat = $calc(%m * %m.mult + %p * %p.mult + %d * %d.mult + %h * %h.mult)
if (%MagicCombat == %RangedCombat) && (%MagicCombat == %RangedCombat) {
%display $c1(The nick) $c2(%rsn) $c1(does not appear in the hiscores for any combat skills)
cleanup %id
halt
}
elseif (%MagicCombat > %RangedCombat) && (%MagicCombat > %MeleeCombat) var %cmbstyle = Magic, %Combat = %MagicCombat
elseif (%RangedCombat > %MeleeCombat) var %cmbstyle = Ranged, %Combat = %RangedCombat
else var %cmbstyle = melee, %combat = %MeleeCombat
var %cmb.temp = $abs($calc($int($calc(%combat +1)) - %combat)), $&
%a.2lvl = $ceil($calc(%cmb.temp / %a.mult)), %s.2lvl = $ceil($calc(%cmb.temp / %s.mult)), $&
%d.2lvl = $ceil($calc(%cmb.temp / %d.mult)), %m.2lvl = $ceil($calc(%cmb.temp / %m.mult)), $&
%r.2lvl = $ceil($calc(%cmb.temp / %r.mult)), %p.2lvl = $ceil($calc(%cmb.temp / %p.mult))
if (%cmbstyle == magic) var %dynamic.2lvl = $c1(Magic:) $c2(%m.2lvl)
elseif (%cmbstyle == Ranged) var %dynamic.2lvl = $c1(Ranged:) $c2(%r.2lvl)
else var %dynamic.2lvl = $c1(Att:) $c2(%a.2lvl) $c1(Str:) $c2(%s.2lvl)
var %combat = $round(%combat,2), %next = $ceil(%combat)
%display $c2(%rsn) $c1(is) $c2(%combat) $c1(%cmbstyle style combat)
%display $c1(Attack:) $c2(%a) $c1(Defence:) $c2(%d) $c1(Strength:) $c2(%s) $c1(Hits:) $c2(%h) $&
$c1(Mage:) $c2(%m) $c1(Range:) $c2(%r) $c1(Pray:) $c2(%p)
%display $c1(Levels for) $c2(%next) $+ $c1(:) %dynamic.2lvl $&
$c1(Def/Hp:) $c2(%d.2lvl) $c1(Prayer:) $c2(%p.2lvl)
}
cleanup %id
}
alias -l cleanup {
unset $+(%,stats.*.,$1)
sockclose $+(Stats.,$1)
.remove $+(Stats.,$1)
}
alias -l xp {
var %x = 1, %level = $calc($1 - 1), %xp = 0
while (%x <= %level) {
var %TempXp = $calc((%x + 300 * 2^(%x / 7)) /4)
inc %xp %TempXp
inc %x
}
return $int(%xp)
}
alias -l xp2Next {
var %xp = $remove($2,$chr(44)), %nextxp = $xp($calc($1 + 1))
return $calc(%nextxp - %xp)
}
alias -l striptags { var %x,%y = $regsub($1-,/(<[^>]+>)/g,$null,%x) | return %x }
alias -l setskill {
if ($1 == 0) || ($regex($1,/^(st|(skill)?total|overall)$/Si)) return Overall
elseif ($1 == 1) || ($regex($1,/^at(t|k|tack)$/Si)) return Attack
elseif ($1 == 2) || ($regex($1,/^def(en[cs]e)?$$/Si)) return Defence
elseif ($1 == 3) || ($regex($1,/^str(ength)?$/Si)) return Strength
elseif ($1 == 4) || ($regex($1,/^hp|hit(s|points?)?$/Si)) return Hitpoints
elseif ($1 == 5) || ($regex($1,/^range(r|d|ing)?$/Si)) return Ranged
elseif ($1 == 6) || ($regex($1,/^Pray(er)?$$/Si)) return Prayer
elseif ($1 == 7) || ($regex($1,/^mag(e|ic)$$/Si)) return Magic
elseif ($1 == 8) || ($regex($1,/^cook(ing)?$/Si)) return Cooking
elseif ($1 == 9) || ($regex($1,/^wc|wood(cut(ting)?)?$/Si)) return Woodcutting
elseif ($1 == 10) || ($regex($1,/^fletch(ing)?$/Si)) return Fletching
elseif ($1 == 11) || ($regex($1,/^fish(ing)?$/Si)) return Fishing
elseif ($1 == 12) || ($regex($1,/^(fire|fm)(make?(ing)?|ing)?$/Si)) return Firemaking
elseif ($1 == 13) || ($regex($1,/^craft(ing)?$/Si)) return Crafting
elseif ($1 == 14) || ($regex($1,/^(smith|smelt)(ing)?$/Si)) return Smithing
elseif ($1 == 15) || ($regex($1,/^mine(ing)?$/Si)) return Mining
elseif ($1 == 16) || ($regex($1,/^herb(law|lore)?$/Si)) return Herblore
elseif ($1 == 17) || ($regex($1,/^agil(ity)?$/Si)) return Agility
elseif ($1 == 18) || ($regex($1,/^(th(ei|ie)[fv](e|ing)?)$/Si)) return Thieving
elseif ($1 == 19) || ($regex($1,/^slay(er|ing)?$/Si)) return Slayer
elseif ($1 == 20) || ($regex($1,/^farm(er|ing)?$/Si)) return Farming
elseif ($1 == 21) || ($regex($1,/^(rc|runecraft)(er|ing)?$/Si)) return Runecraft
elseif ($1 == 22) || ($regex($1,/^hunt(er)?(ing?)?$/Si)) return Hunter
elseif ($1 == 23) || ($regex($1,/^(construct)(ion|ing)?$/si)) return Construction
}
}