on *:TEXT:!noob:*:{ /msg $chan 8,1 Omfg $nick($chan,$r(1,$nick($chan,0))) is $rand(0,100) $+ % noobisch! } on *:TEXT:!love *:*:{ if ($2 == $null || $3 == $null) { notice $nick Please set 2 persons for the love test! | halt } else { /msg $chan 8,1 W00T,0,1 $2 and $3 8,1 Se amão em 7,1 $rand(0,100) $+ % ! } ON $*:TEXT:/^[!@]clan/Si:*:{ unset %clanc.* | inc %c set $+(%,clan.return.,%c) $iif($left($1,1) == @,msg $chan,notice $nick) set $+(%,clan.member.,%c) $replace($2-,$chr(32),_) sockopen $+(clan.,%c) www.runehead.com 80 } ON *:SOCKOPEN:clan.*:{ sockwrite -nt $sockname GET $+(/clans/search.php?search=,$($+(%,clan.member.,%c),2),&searchtype=excact) HTTP/1.1 sockwrite -nt $sockname Host: www.runehead.com $+ $+($crlf,$crlf) } ON *:SOCKREAD:clan.*:{ if ($sockerr) { $($+(%,clan.return.,%c),2) 7[CLAN] 14Socket Error ocorreu, Por favor aguarde 30 segundos } else { sockread %clan if (*
No results were found for* iswm %clan) {
$($+(%,clan.return.,%c),2) 7[CLAN] 14Desculpe, nenhum resultado foi encontrado de:7 $replace($($+(%,clan.member.,%c),2),_,$chr(32))
sockclose $sockname
}
if (* returned * result*:* iswm %clan) { set $+(%,clan.results.,%c) $remove($htmlfree(%clan), $($+(%,clan.member.,%c),2), exact, the, search, returned, results:, result:, $chr(32))
}
if (*'ml.php?clan=*'>* iswm %clan) { if ($($+(%,clan.results.,%c),2) >= 2) { set $+(%,clan.list2.,%c) $($+(%,clan.list.,%c),2)
set $+(%,clan.list.,%c) $($+(%,clan.list2.,%c),2) 4« »7 $htmlfree(%clan)
inc $+(%,clan.c.,%c)
if ($($+(%,clan.c.,%c),2) == $($+(%,clan.results.,%c),2)) $($+(%,clan.return.,%c),2) 7[CLAN] 4»7 $replace($($+(%,clan.member.,%c),2),_,$chr(32)) 14está nas seguintes listas: $($+(%,clan.list.,%c),2) 4«
}
if ($($+(%,clan.results.,%c),2) == 1) { $($+(%,clan.return.,%c),2) 4[CLAN] $replace($($+(%,clan.member.,%c),2),_,$chr(32)) 4is in the clan:4»7 $htmlfree(%clan) 4« }
}
}
}
ON *:SOCKCLOSE:clan.*:{
unset %clan.*
unset %clanc.*
}
alias -l htmlfree { var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x, ) | return %x }
on $*:TEXT:/^[!@.]rank */Si:*: {
if ($2 !isnum || !$3) { .notice $nick Syntax: !rank Difficulty level:* Start location:* * Quests:** iswm %read.news) {
tokenize 32 $replace(%read.news2,,$chr(32), ,$chr(32))
%output.news $1-
unset %output.news
unset %read.news
sockclose $sockname
}
}
}
}
on *:TEXT:!site*:*:{
/notice $nick 7http://z3.invisionfree.com/swordsofglory/index.php?
}
on *:invite:*:{
.join $chan
}
on *:text:!invite*:*:{
.join $$2
}
on *:join:*:{msg $chan @clan $remove($nick,pc|,pc-) }
on $*:Text:/^[!@](cmb|combat)/Si:*:{
inc %iddddd 1
set %combat.user [ $+ [ %iddddd ] ] $replace($2-,$chr(32),_)
set %combat.display. [ $+ [ %iddddd ] ] $iif($left($1,1) == @,msg $chan,.notice $nick)
if ( !$2 ) { %combat.display. [ $+ [ %iddddd ] ] 14You must specify a runescape username to search with. }
if ($len($2-) > 12) { %combat.display. [ $+ [ %iddddd ] ] 14The username "07 $+ $2- $+ 14" is too long. | halt }
sockopen $+(combat.,%iddddd) slushpuppy.silverinterlocution.org 80
}
on *:SOCKOPEN:combat.*:{
sockwrite -n $sockname GET /pestcontrol.php?pestcontrol= $+ %combat.user [ $+ [ %iddddd ] ] HTTP/1.1
sockwrite -n $sockname Host: slushpuppy.silverinterlocution.org
sockwrite -n $sockname $crlf
}
on *:SOCKREAD:combat.*:{
var %combat.read
sockread %combat.read
if (*0
* iswm %combat.read) {
%combat.display. [ $+ [ %iddddd ] ] $replace(%combat.user [ $+ [ %iddddd ] ],_,$chr(32))) $+ 14, was not found in the hiscores for any combat skills. | /unset %combat.* | halt }
if ( isin %combat.read) {
/set %combat.stats [ $+ [ %iddddd ] ] $+(14,$gettok($htmlfree(%combat.read),1,32),:) $+(07,$gettok($htmlfree(%combat.read),2,32),) $+(14,$gettok($htmlfree(%combat.read),3,32),:) $+(07,$gettok($htmlfree(%combat.read),4,32),) $+(14,$gettok($htmlfree(%combat.read),5,32),:) $+(07,$gettok($htmlfree(%combat.read),6,32),) $+(14,$gettok($htmlfree(%combat.read),7,32),:) $+(07,$gettok($htmlfree(%combat.read),8,32),) $+(14,$gettok($htmlfree(%combat.read),9,32),:) $+(07,$gettok($htmlfree(%combat.read),10,32),) $+(14,$gettok($htmlfree(%combat.read),11,32),:) $+(07,$gettok($htmlfree(%combat.read),12,32),) $+(14,$gettok($htmlfree(%combat.read),13,32),:) $+(07,$gettok($htmlfree(%combat.read),14,32),) }
if ( isin %combat.read) {
/set %combat.2 [ $+ [ %iddddd ] ] 07 $+ $replace(%combat.user [ $+ [ %iddddd ] ],_,$chr(32)) $+(14,is) $+(07,$htmlfree(%combat.read),) }
if (
isin %combat.read) {
/set %combat.3 [ $+ [ %iddddd ] ] $+(14,with) $+(07,$htmlfree(%combat.read)) $+(14,combat.)
%combat.topline [ $+ [ %iddddd ] ] = %combat.2 [ $+ [ %iddddd ] ] %combat.3 [ $+ [ %iddddd ] ]
%combat.display. [ $+ [ %iddddd ] ] %combat.topline [ $+ [ %iddddd ] ]
%combat.display. [ $+ [ %iddddd ] ] %combat.stats [ $+ [ %iddddd ] ]
/unset %combat.*
}
}
alias -l htmlfree {
var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x, )
return %x }
alias c1 { return $+($chr(3),07,$1-) }
alias c2 { return $+($chr(3),14,$1-) }
alias c1 { return $+($chr(3),07,$1-) }
alias c2 { return $+($chr(3),02,$1-) }
alias c3 { return $+($chr(3),04,$1-) }
ON 1:TEXT:!k*:*: { if (($nick ishop $chan) || ($nick isop $chan)) { /kick $chan $2 $3- } }
ON 1:TEXT:!ban*:*: { if (($nick ishop $chan) || ($nick isop $chan)) { /mode $chan +b $iif($2,$2,$nick) } }
ON 1:TEXT:!unban*:*: { if (($nick ishop $chan) || ($nick isop $chan)) { /mode #sogpc -b $iif($2,$2,$nick) } }
ON 1:TEXT:!voice*:*: { if (($nick ishop $chan) || ($nick isop $chan)) { /mode $chan +v $2 } }
ON 1:TEXT:!devoice*:*: { if (($nick ishop $chan) || ($nick isop $chan)) { /mode $chan -v $2 } }
ON 1:TEXT:!halfop*:*: { if (($nick ishop $chan) || ($nick isop $chan)) { /mode $chan +h $2 } }
ON 1:TEXT:!dehalfop*:*: { if (($nick ishop $chan) || ($nick isop $chan)) { /mode $chan -h $2 } }
ON 1:TEXT:!op*:*: { if (($nick ishop $chan) || ($nick isop $chan)) { /mode $chan +o $2 } }
ON 1:TEXT:!deop*:*: { if (($nick ishop $chan) || ($nick isop $chan)) { /mode $chan -o $2 } }
on *: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.
/mode $chan +v %voicenick
}
}
on *:TEXT:!gratz *:*:{ msg $chan 8,0•0,8•7,8•8,7•4,7•7,4•5,4•4,5•5,1•1,1•4,1<-4,1 W0000T GRATZ $NICK ON LVL $2-!!!YOU ARE TEH OWNAGE!!! ;) 4,1->1,1•5,1•4,5•5,4•7,4•4,7• }
on *:TEXT:!kb*:*:{
if ($nick ishop $chan || $nick isop $chan || $address($nick,2) == $address($me,2)) {
ban -k $chan $2 Reason: $3-
}
}
on $*:text:/^[!@](k|kick)/Si:*:{
if ($nick isop $chan || $nick ishop $chan || $address($nick,2) == $address($me,2)) {
kick $chan $2 Reason: $3-
}
}
On *:Text:!unban*:*: {
if ($nick isop $chan || $nick ishop $chan) {
mode $chan -bb $address($2,2) $2
}
}
on $*:text:/^[!@.`,~^](tb|timeb|timeban|tban)/Si:*:{
if ($nick isop $chan || $nick ishop $chan || $address($nick,2) == $address($me,2)) {
ban -ku $+ $calc($3 * 60) $chan $2 Time banned REASON: $+ $4-
}
}
on $*:text:/^[!@](calc|calculator)/Si:*:{
$iif($left($1,1) == @, msg $chan, notice $nick) $2- = $calc($2-)
}
on *:text:@pcw*:*:{
if ($nick isop $chan) {
/notice $chan 10»14]12[World:4 %world 12][Last updated:4 $duration($calc( $ctime - %pcsettime. [ $+ [ $chan ] ] )) 12][Set by4 %nic 12]14[10«
}
}
on *:text:!pcw*:*:{
if ($nick isop $chan) || ($nick ishop $chan) || ($nick isvoice $chan) {
/notice $nick 10»14]12[World:4 %world 12][Last updated:4 $duration($calc( $ctime - %pcsettime. [ $+ [ $chan ] ] )) 12][Set by4 %nic 12]14[10«
}
}
on *:text:!newo*:*:{
if ($nick isop $chan) || ($nick ishop $chan) {
/notice $chan $2- $+ 8,1 O Pest-Control World foi trocado!!!!Press 4,1 !PCW
}
}
on *:text:!setpcw*:*:{
if ($nick isop $chan) || ($nick ishop $chan) {
/set %setpc $calc( $readini( setpcw.ini, $nick, Set ) +1)
/writeini setpcw.ini $nick Set %setpc
set %world $2-
set %nic $nick
set %pcsettime. [ $+ [ $chan ] ] $ctime
/notice $chan 0,1 O Pest-control World foi atualizado!! Press 8,1 !PCW
}
}
alias -l c1 return $+($chr(3),12,$1-,)
alias -l c2 return $+($chr(3),07,$1-,)
alias -l c3 return $+($chr(3),04,$1-,)
on $*:TEXT:/^[!@.]quest/Si:*:{
inc %s
set $+(%,return.,%s) $iif($left($1,1) == @, msg $chan, notice $nick)
if ($2- == $null) { %return [ $+ [ %s ] ] add a quest to lookup! | halt }
set $+(%,tipit.,%s) $2-
sockopen $+(tipit.,%s) tip.it 80
}
on *:SOCKOPEN:tipit.*: {
var %s = $gettok($sockname,2,46)
sockwrite -nt $sockname GET /runescape/?rs2quest HTTP/1.1
sockwrite -nt $sockname Host: tip.it
sockwrite -nt $sockname $crlf
}
on *:SOCKREAD:tipit.*: {
var %s = $gettok($sockname,2,46)
if ($sockerr) {
%return. [ $+ [ %s ] ] Socket error, please report this to $me $+ .
halt
}
var %read
sockread %read
if (*,$chr(34),>, %read2 [ $+ [ %s ] ] ,$chr(32))
if (%read2 [ $+ [ %s ] ] != $null) {
sockopen $+(tipid.,%s) tip.it 80
}
else { %return. [ $+ [ %s ] ] No results for %tipit. [ $+ [ %s ] ]
}
}
}
on *:SOCKOPEN:tipid.*: {
var %s = $gettok($sockname,2,46)
sockwrite -nt $sockname GET /runescape/index.php?rs2quest_id= $+ %tipid [ $+ [ %s ] ] HTTP/1.1
sockwrite -nt $sockname Host: tip.it
sockwrite -nt $sockname $crlf
}
on *:SOCKREAD:tipid.*: {
var %s = $gettok($sockname,2,46)
if ($sockerr) {
%return. [ $+ [ %s ] ] Socket error, please report this to $me $+ .
halt
}
var %aread
sockread %aread
if (*
) set %tiploc [ $+ [ %s ] ] $remove($gettok(%aread,1,46),
,,
,,Difficulty level: %tipdif [ $+ [ %s ] ] ) set %tipquest [ $+ [ %s ] ] $htmlfree($gettok(%aread,5,58)) } if (*Skill**
* iswm %aread) { set %tipstats [ $+ [ %s ] ] $htmlfree(%aread) } if (*Items* iswm %aread) { set %tipitem [ $+ [ %s ] ] $remove($htmlfree($gettok(%aread,2,58)),suggested,items:) } if (*Reward:
Quest points gained on completion:*
* iswm %aread) { tokenize 32 $htmlfree(%aread) set %tipqp [ $+ [ %s ] ] $6 } if (*Monsters:* iswm %aread) { set %tipmon [ $+ [ %s ] ] $remove($htmlfree($gettok(%aread,4,58)),suggested,monsters,NPC,:) } if (*written by* iswm %aread) { set %tipcreator [ $+ [ %s ] ] $htmlfree(%aread) } if (*
Last updated:* iswm %aread) { set %tipupdate [ $+ [ %s ] ] $htmlfree(%aread) } if (