TimeBan: on *:TEXT:!tb *:#:{ if ($nick isop $chan) || ($nick ishop $chan) { inc %kcount | /ban -ku $+ $3 $chan $2 2 7 Reason: $4- 1- 11 $3 Second Ban 1- 12Noobs Pwnt: 1(4 %kcount 1) } } ----- END OF TIMEBAN ----- Amsg: on *:text:@amsg*:#:{ if ($address($nick,2) iswm $address($me,2)) { /amsg 4[-Global Message-]12 $2- } } ----- END OF AMSG ----- Welcome Message: on *:join:#:{ notice $nick Hello $nick $+ , and welcome to $chan $+ ! To see my commands list, type "!commands". } ----- END OF WELCOME MESSAGE ----- Commands List: on *:text:!commands*:#:{ msg $nick 4 My commands are as follows: msg $nick Command1 msg $nick Command2 msg $nick Command3 msg $nick Command4 msg $nick -- End -- } ----- END OF COMMANDS LIST ----- PestControlWorld Script For Each Channel: on $*:text:/^[!]setpcw #CHANNEL */Si:#: { if ($nick isop #) || ($nick ishop #) { set %pccCHANNEL $ctime set %pcCHANNEL $3- notice $nick The new pc-world for $chan has been set as %pcCHANNEL topic $chan TOPIC DESIGN WITH $3- IN THE TOPIC WHERE THE WORLD GOES! msg # [4Pc-World Update1] 12New world for $chan $+ : $3- 4( $+ $nick $+ ) } } on *:Text:!pcw #CHANNEL *:#: { if (!%pcCHANNEL) notice $nick The pc-world for $chan is not set notice $nick The current pc-world for $chan is: %pcCHANNEL - Last update: $duration($calc($ctime - %pccCHANNEL)) ago } ----- END OF PCWS ----- Invite/5 User Script: on *:invite:#: { join $chan .timerinvite 1 1 .signal join $chan $nick } on *:signal:join:{ if ($nick($1,0) > 5) { msg $1 Thank you for invited me $nick $+ , to your channel! I am mainly a Pest Control bot. To get your pest control world commands set, please speak to Xil_Leat_Xil. } elseif ($nick($1,0) < 5) { part $1 4Sorry, not enough users. } } on *:part:#: { if ($nick($chan,0) < 5) { part $chan 4Sorry, not enough users. } } ----- END OF INVITE ----- RS Stats Lookup by Urza and edited by Invicible with a little edit by Me: alias c1 { return $+(,$1-) } alias c2 { return $+(,$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) == setrsn) && ($2) { if ($2 == -h) { writeini DefRSN.ini RSNs $mask($fulladdress,3) $replace($3-,$chr(32),-) .notice $nick You're default RSN for the host $mask($fulladdress,3) has been set to $3- } else { writeini DefRSN.ini RSNs $nick $replace($2-,$chr(32),-) .notice $nick You're default RSN for the nick $nick has been set to $2- } halt } else halt inc %ID if ($len($2-) > 12) { $($+(%,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, ).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),