rendered paste bodyalias -l c1 { return $+($chr(3),12,$1-,$chr(3)) }
alias -l c2 { return $+($chr(3),01,$1-,$chr(3)) }
on *:JOIN:#dealt_weed: {
hadd -m $+(stats.,$nick) disp msg $chan
sockopen $+(stats.,$nick) www.o-ss.net 80
}
on *:SOCKOPEN:stats.*:{
sockwrite -nt $sockname GET /parsers/stats.php?user= $+ $replace($hget($sockname,name),$chr(32),+) HTTP/1.1
sockwrite -nt $sockname Host: www.o-ss.net $+ $crlf $+ $crlf
}
on *:SOCKREAD:stats.*:{
sockread -f $+(%,$sockname,.,read)
tokenize 32 $($+(%,$sockname,.,read),2)
$hget($sockname,disp) $c2(Combat stats for) $c1($replace($hget($sockname,name),+,$chr(32))) $c2(Level:) $c1($floor($1) $replace($hget($sockname,name),$chr(32),+))
$hget($sockname,disp) $c2(Att:) $c1($hget($sockname,attack)) $c2(Str:) $c1($hget($sockname,strength)) $c2(Def:) $c1($hget($sockname,defence)) $c2(Hits:) $c1($hget($sockname,hitpoints)) $c2(Pray:) $c1($hget($sockname,prayer)) $c2(Range:) $c1($hget($sockname,ranged)) $c2(Magic:) $c1($hget($sockname,magic))
hfree $sockname
unset $+(%,$sockname,.,%read) | sockclose $sockname
}
alias skill {
if ($regex($1,/c(mb|ombat)/Si)) Return Combat
if ($1 == overall) return Overall
if ($1 == pest) return Pest
if ($1 == vk) return VK
if ($1 == pc) return pc
if ($regex($1,/^Stats/Si)) Return Stats
if ($regex($1,/^att(ack)?$/Si)) Return Attack
if ($regex($1,/^str(ength)?$/Si)) Return Strength
if ($regex($1,/^Def(ence)?$/Si)) Return Defence
if ($regex($1,/^h(p|its|itpoints)?$/Si)) Return Hitpoints
if ($regex($1,/^pray(er)?$/Si)) Return Prayer
if ($regex($1,/^mag(e|ic)?$/Si)) Return Magic
if ($regex($1,/^range(d)?$/Si)) Return Ranged
if ($regex($1,/^Cook(ing)?$/Si)) Return Coooking
if ($regex($1,/^wc|Woodcut|woodcutting/Si)) Return Woodcutting
if ($regex($1,/^fletch(ing)?$/Si)) Return Fletching
if ($regex($1,/^fish(ing)?$/Si)) Return Fishing
if ($regex($1,/^fm|Firemake|firemaking/Si)) Return Firemaking
if ($regex($1,/^craft(ing)?$/Si)) Return Crafting
if ($regex($1,/^smith(ing)?$/Si)) Return Smithing
if ($regex($1,/^min(e|ing)?$/Si)) Return Mining
if ($regex($1,/^Herb(lore|y)?$/Si)) Return Herblore
if ($regex($1,/^Agility/Si)) Return Agility
if ($regex($1,/^th(ie|ei)v(e|ing)/Si)) Return Thieving
if ($regex($1,/^Slay(er|ing)?$/Si)) Return Slayer
if ($regex($1,/^farm(ing)?$/Si)) Return Farming
if ($regex($1,/^rc|runecraft|runecrafting/Si)) Return Runecraft
if ($regex($1,/^con(struction)?$/Si)) Return Construction
if ($1 == 13248624621354321574863) Return attack:strength:ranged:magic:hitpoints:prayer:defence
}
;<!---Combat Calculator---!>
alias -l extcmbcalc {
var %line = $replace($1 $2 $3 $4 $5 $6 $7,NA,1)
tokenize 32 %line
if (($calc($1 + $2) > $6) && ($calc($1 + $2) > $7)) { var %type = melee }
if (($calc($1 + $2) < $6) || ($calc($1 + $2) < $7)) {
if ($7 > $calc($1 + $2)) {
if ($7 > $6) { var %type = magic }
}
if ($6 > $calc($1 + $2)) {
if ($6 > $7) { var %type = range }
}
}
if (%type == range) { return $calc((0.487 * $6) + (0.249 * $3) + (0.25 * $4) + (0.124 * $5)) (Range Based) }
if (%type == magic) { return $calc((0.487 * $7) + (0.249 * $3) + (0.25 * $4) + (0.124 * $5)) (Magic Based) }
if (%type == melee) { return $calc((0.32707 * $1) + (0.249 * $3) + (0.324 * $2) + (0.25 * $4) + (0.124 * $5)) (Melee Based) }
}
;<!---No Dot Plz :)---!>
alias ndp {
if (*.* iswm $1) { return $calc($gettok($1,1,46) + 1) }
else { return $1 }
}