---------------- Pest Control Related Scripts ---------------- Set a PCW: on $*:text:/^[!@.]set pcw */Si:#: { if ($nick isop #) || ($nick ishop #) { set %pcc $ctime set %pc $3- set %pcwnick $nick msg #pc-hq 1[4PC-World Update1] 12Type 4"!pcw" 1(12 $+ $nick $+ 1) /notice Eragonj newpcw $3 %pcwnick %pcc } } --------------- The "!pcw" Command: on *:Text:!pcw*:#:{ inc %pcwcount notice $nick 1- 12The current pc-world is:4 %pc 1- 12Last update:4 $duration($calc($ctime - %pcc)) 12ago 1- 12Last updated by:4 %pcwnick 1-12 The "!pcw" command count:4 %pcwcount 1- } else { notice $nick 12You aren't a member of 4#pc-hq! 12Go here to register>4 http://z9.invisionfree.com/Pest_Control_HQ/index.php?act=idx } ---------------------------------------------------------------- Leading !world Script: off *:text:!world*:#:{ notice $nick 4 The correct command is: 3 "!pcw". } } ---------- on *:TEXT:!k *:#:{ if ($nick isop $chan) || ($nick ishop $chan) { inc %kcount | kick #pc-hq $2 Reason: $3- - N00B5 H4X0R3D: ( %kcount ) } } ---------------- Pest Control Related Scripts ---------------- Set a PCW: alias setpcw { set %pcc $ctime set %pc $1- set %pcwnick $me msg #pc-hq 1[4PC-World Update1] 12Type 4"!pcw" 1(12 $+ $me $+ 1) } --------------- Rawrr Command: on *:TEXT:!rawrr*:#:{ if ($2 == $null) { notice $nick please enter a nickname. } else { describe $chan 4RA2W5R6R7R8!9!8!!!!13's4 at $2 8... 8,2FEAR 4 for3 $nick !!! } } ---------------------------- Requirement/Validation Scripts ------------------------------- Validate the user and give them 3 access: on *:text:!valid*:#:{ if ($nick isop #hq-staff) { cs access #pc-hq add $2 3 | mode $chan +b $address($2,2) | /kick $chan $2 1- 4You are now validated, please type /hop in #pc-hq and identify: /ns id PASSWORD 1- } } --------------- The user does not meet the requirements: on *:text:!decline*:#:{ if ($nick isop #hq-staff) { mode $chan +b $address($2,2) | /kick $chan $2 1- 4You do not meet the requirements for #pc-hq, they are one of these: 90+ Combat - 140+ Strength+Attack - 85+ Range - 88+ Mage 1- } } --------------- Add to voice access: on *:text:!bav*:#:{ if ($nick isop #hq-staff) { cs access #pc-hq add $2 3 | notice $nick The nickname of $2 has been added to level 3 access. } } Register Help Command: on *:text:!reg*:#:{ if ($2 == $null) { notice $nick Give me a user to tell how to register to! } else { msg $2 12In order to view the world in 4#pc-hq12, you must register. You can do so by following the 4application format12 and posting here> 4http://z9.invisionfree.com/Pest_Control_HQ/index.php?act=idx1 (12 This message has been sent by:4 $nick 1) notice $nick Your register message has been sent to $2 successfully. } } ----------------- BotOper Commands ------------------------------ Global Message: on *:text:!amsg*:#:{ if ($nick isop #hq-staff) { /amsg 1[-4Global Message1-4( $+ $nick $+ )1-]12 $2- } else { notice $nick Your not a BotOper! } } --------------- AMSG Notice: on *:text:!notice*:#:{ if ($nick isop #hq-staff) { /amsg 4** Notice 1-12 $2- } else { notice $nick You aren't a botoper! } } Kick in #pc-hq: on *:text:!khq*:#:{ if ($nick isop #hq-staff) { inc %kcount 1 kick #pc-hq $2 1- 4Reason:12 $3- 1- 7NOOBS OWND: 1(4 %kcount 1) } else { notice $nick You aren't a botoper! } } --------------- Quit PCB Bot: on *:text:$$$$$:#:{ if ($address($nick,2) iswm $address($me,2)) { /quit - BotOperQuit command used by $nick - } else { notice $nick You aren't a BotOper! } } --------------- Channel Join/Part: on *:text:!ejoin*:#:{ if ($nick isop #hq-staff) { join $2 | msg $2 - BotOperJoin command used by $nick - } else { notice $nick You aren't a BotOper! } } on *:text:!epart*:#:{ if ($nick isop #hq-staff) { part $2 - BotOperPart command used by $nick - } else { notice $nick You aren't a BotOper! } } --------------- Message A Certain Channel: on *:text:!msg*:#:{ if ($nick isop #hq-staff) { msg $2 1[-4Message1-4From1-4 $+ $nick $+ 1-]12 $3-  } else { notice $nick You aren't a BotOper! } } --------------- Kick Ban a User from Bot Oper Channel: on *:text:!kbp*:#hq-staff:{ if ($nick isop #hq-staff) { ban $chan $2 2 kick $chan $2 4This is the BotOper channel, guests are not allowed. } } --------------- Nick Count in a Channel: OFF *:text:!ncount*:#:{ if ($nick isop #hq-staff) { msg # 12The current amount of users on $2 is:1 (4 $nick($2,0) 1) } else { notice $nick You aren't a BotOper! } } --------------- Bot Info Script: off *:text:binfo:#:{ if ($nick isop #hq-staff) { msg # The mIRC program is currently 12[ $+ $appstate $+ ]. msg # I am on 12[ $+ $chan(0) $+ ] Channels. 12[ $+ $query(0) $+ ] Open Querys. msg # Using 12[ $+ $os $+ ]. My Titlebar 12[ $+ $titlebar $+ ]. mIRC Version 12[ $+ $version $+ ] } else { notice $nick You aren't a BotOper! } } --------------- ------------------------------------ Regular Commands -------------------------------------------- How much experience you get per PC point at this level: on *:text:!pest*:#: { if ($2 isnum 1-99) { notice $nick At level $2 you will get $calc( $2 * $2 /6 ) experience for 1 point and $calc( ( $2 * $2 /6/10*100 )+ $2 * $2 /6 *100 ) experience for 100 points. } } --------------- Teh Super Calculator: on *:text:!calc*:#:{ if ($2 == $null) { notice $nick 4Error - You Didn't Specify An Equasion To Solve | halt } else { notice $nick 12The answer to4 $2- 12is..4 $calc($replace($2-,k,000,m,000000,c,00) $2- )) } } --------------- Suggest A World: (Command) off *:text:!suggest*:#:{ if ($3 == $null) { notice $nick You did not suggest a reason why, therefore your suggestion has been ignored. | halt } else { msg #hq-staff 1|World Suggestion| 4From:12 $nick 4World:12 $2 4Why:12 $3- 1| 7If this is abuse, type "10!asaw $nick $+ 7" in here and it will kick. (3 Kicks = Ban)1 | notice $nick Thank you for your suggestion, we will look into it. } } (Notice) on *:notice:saw*:?:{ if ($3 == $null) { notice $nick You did not suggest a reason why, therefore your suggestion has been ignored. | halt } else { msg #hq-staff 1|World Suggestion| 4From:12 $nick 4World:12 $2 4Why:12 $3- 1| 7If this is abuse, type "1!asaw $nick $+ 7" in here and it will kick. (3 Kicks = Ban)1 | notice $nick Thank you for your suggestion, we will look into it. } } (Abuse Kicker) on *:TEXT:!asaw*:#hq-staff:{ if ($nick isop #hq-staff) { if (!$($+(%,sawkick.,$2),2)) { /set $+(%,sawkick.,$2) 1 /kick #pc-hq $2 4Don't abuse the Suggest-A-World command! (1/3 Warnings) } elseif ($($+(%,sawkick.,$2),2) == 1) { /inc $+(%,sawkick.,$2) /kick #pc-hq $2 4Don't abuse the Suggest-A-World command! (2/3 Warnings) } elseif ($($+(%,sawkick.,$2),2) == 2) { /mode #pc-hq +b $address($2,2) | /kick #pc-hq $2 4Don't abuse the Suggest-A-World command! (3/3 Warnings) /unset $+(%,sawkick.,$2) } } } --------------- Waffle Command: on *:TEXT:%waffle*:#:{ if ($2 == $null) { describe $chan walks up to $nick and smashes the waffle into his face, filled with butter and syrup because THEY DIDN'T SAY A NICK TO GIVE THE WAFFLE TOO FOOL! } else { describe $chan hands $2- a bunny with a waffle balanced on its head, courtesy of $nick } } --------------- more fun: on *:TEXT:!kitten*:#:{ if ($2 == $null) }{ describe $chan gets scratched all over the face becouse THEY DIDN'T SAY A NICK TO GIVE THE KITTEN TOO FOOL! } else { describe 13$chan gives $2 a cute little pink kitten, $2 smiles big. $chan quickly grabs a shotgun. 4$chan hates cute pink kittens } } ------------------------------------------- Half Operator+ Commands ---------------------------------- !v NICK... Command for Voice (Up to 10 nicks): on *:TEXT:!v *:#:{ if ($nick isop $chan) || ($nick ishop $chan) { /mode $chan +vvvvvvvvvv $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 } } --------------- !k Nick Reason..Kick the nickname for Reason: on *:TEXT:!k *:#:{ if ($nick isop $chan) || ($nick ishop $chan) { inc %kcount | kick #pc-hq $2 Reason: $3- - N00B5 H4X0R3D: ( %kcount ) } } --------------- Unban a host by the nickname: on *:text:!ub*:#:{ if ($nick isop $chan) || ($nick ishop $chan) { mode $chan -b $address($2,2) | notice $nick The user $2 with the host $address($2,2) has been unbanned. If no message appeard then the user was not banned already. } else { notice $nick You cannot use this command! } } !tb Nick Time Reason..TimeBan Nick for TimeInMinutes Reason: on *:text:!tb*:#:{ if ($2 isop $chan) || ($2 ishop $chan) { notice $nick I have been forbidden to use this command on Operators and Half-Operators! halt } else { if ($nick isop $chan) || ($nick ishop $chan) { inc %kcount /ban -ku $+ $calc( $3 * 60 ) $chan $2 2 7 Reason: $4- 1- 11 $3 Minute Ban 1- 12Noobs Pwnt: 1(4 %kcount 1) } } } --------------- Mute/DeMute Channel: on *:text:!mute:#:{ if ($nick isop $chan) || ($nick ishop $chan) { mode $chan +m } } on *:text:!demute:#:{ if ($nick isop $chan) || ($nick ishop $chan) { mode $chan -m } } --------------- TimedMute: on *:text:!tmute*:#:{ if ($nick isop $chan) || ($nick ishop $chan) { mode $chan +m /timer 1 $calc($2 * 60) /mode $chan -m } } --------------- Channel Bans (Ban/Unban): on *:text:!cban*:#:{ if ($nick isop $chan) || ($nick ishop $chan) { mode $chan +b ~c: $+ $2 } } on *:text:!cuban*:#:{ if ($nick isop $chan) || ($nick ishop $chan) { mode $chan -b ~c: $+ $2 } } --------------- !ns Nick..Silences the nick's host so they cannot talk, but still join/part/quit (Silence/DeSilence): on *:text:!ns*:#:{ if ($nick isop $chan) || ($nick ishop $chan) { mode $chan +b ~q: $+ $address($2,2) } } on *:text:!nds*:#:{ if ($nick isop $chan) || ($nick ishop $chan) { mode $chan -b ~q: $+ $address($2,2) } } --------------- ------------------------------------------ Other Features/Scripts ------------------------------------------- Saying How To Suggest World: on *:notice:sw*:?:{ if ($2 == $null) { msg #pc-hq 12To suggest a world use this command :4 "!suggest World Why"12, Dont abuse this command. } else { msg #pc-hq 4 $+ $2 $+ 12, to suggest a world use one of these commands two commands:4 "!suggest World Why"12 4"/notice PCB saw World Why" } } --------------- Redirect Confirmation IRC Nickname: on *:text:*msg nickserv confirm*:#:{ msg # 4 $nick $+ 12, please refigure that line to this: 4/msg nickserv confirm $replace($4-,".,12 -,YouAre,IAm) 12without a space in front of /msg. } --------------- Say Hi To Me: on *:TEXT:*Hi elite-bot*:#: { describe $chan waves at $nick } --------------- Huggle Me: on *:ACTION:*huggles elite-bot*:#:{ if ($nick == [-Stary-]) || ($nick == Eragonj) || ($nick == B_a__b_l_0_r) || ($nick == [Fi]Zanch) || ($nick == dragonicnoob) || ($nick == elite-sky7) || ($nick == manic_markus) || ($nick == LordYOrdy) ($nick == M-P-F) { describe $chan gets all excited and jumps up and around $nick and then huggles $nick back.} } else { describe $chan kicks $nick } --------------- } Slap Me With A Trout: on *:ACTION:*slaps elite-bot around a bit with a large trout*:#:{ describe $chan takes $nick $+ 's trout and eats it, than grabs a Lesser Demon by his tail and slams it's body against $nick $+ 's face! } } --------------- @ Kicker: on *:text:@*:#:{ if ($nick isop $chan) ($nick ishop $chan) { halt } else { kick $chan $nick 4Dont use @ commands on this channel! } } --------------- !k elite-sky7..BOOM! on *:text:!k elite-sky7*:#:{ kick $chan $nick 12D4o12n4'12t 4t12r4y 12t4o 12k4i12c4k 12E4l12i4t12e412 4y12o4u 12b4i12z4n12a4t12c4h12.4.12.4.12. } } --------------- Slap elite-sky7: on *:ACTION:*slaps elite-debby around a bit with a large trout*:#:{ describe $chan shoots $nick in the head, Dont slap my master! } --------------- Status Kick - Complaining Kick - Advertise Kick (!sk/ck/ak NICK) on *:text:!sk*:#:{ if ($nick isop #hq-staff) { kick $chan $2 4Don't ask for status. } } on *:text:!ck*:#:{ if ($nick isop #hq-staff) { kick $chan $2 4Don't complain about a world. } } on *:text:!ak*:#:{ if ($nick isop #hq-staff) { kick $chan $2 4Don't advertise. } } --------------- Join Greet: on *:join:#elite:{ notice $nick 12 Hello4 $nick $+ 12, and welcome to4 $chan $+ 12! Type 4!menu12 to view all of my command catagories, you'll find everything there. There is currently4 $nick($chan,0) 12users on4 $chan $+ 12. } --------------- I do not join other channels: on *:invite:#:{ msg $nick I do not join public channels, sorry! } --------------- !time s MINUTES - !time m SECONDS - Converts Seconds To Minutes And Minutes To Seconds: on *:text:!time*:#:{ if ($2 == s) { notice $nick Converting $3 seconds into minutes... $calc( $3 / 60 ) minutes. } else { if ($2 == m) { notice $nick Converting $3 minutes into seconds... $calc( $3 * 60 ) seconds. } } } --------------- Other PC Channel Kicker and Porn Kicker: ofn *:text:*#purepc*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } ofn *:text:*#pestcontrol*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } ofn *:TEXT:*wowomg*:#:{ kick $chan $nick 4Do NOT advertise/talk about porn in these PC Channels! } ofn *:TEXT:*tubgirl*:#:{ kick $chan $nick 4Do NOT advertise/talk about porn in these PC Channels! } ofn *:TEXT:*porn*:#:{ kick $chan $nick 4Do NOT advertise/talk about porn in these PC Channels! } onf *:TEXT:*dick*:#:{ kick $chan $nick 4Do NOT advertise/talk about porn in these PC Channels! } onf *:TEXT:*penis*:#:{ kick $chan $nick 4Do NOT advertise/talk about porn in these PC Channels! } onf *:TEXT:*boob*:#:{ kick $chan $nick 4Do NOT advertise/talk about porn in these PC Channels! } onf *:TEXT:*lemonparty*:#:{ kick $chan $nick 4Do NOT advertise/talk about porn in these PC Channels! } onf *:text:*#purepc*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } onf *:text:*#pest-hq*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } onf *:text:*#pestcontrol*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } onf *:text:*#pest*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } onf *:text:*#p3st_control*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } onf *:text:*#swiftpc*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } onf *:text:*#superpc*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } onf *:text:*#swiftpest*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } onf *:text:*#best-pc*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } onf *:text:*#pcmasters*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } onf *:text:*#smiteunit*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } onf *:text:*#pcw*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } onf *:text:*#pcchans*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } onf *:text:*#c0ntrol-the-pest*:#:{ kick $chan $nick 4No advertising other PestControl Channels! } --------------- KB For saying the world: off *:text:*:#pc-hq:{ if (%pc isin $$1-) { mode $chan +b $address($nick,2) | kick $chan $nick 4Dont say the world outloud! 3 Day Ban - Or place an appeal. } } --------------- Partall Channel Kicker: on *:text:!kn*:#: { var %regex = /#[^,]*,0/ if ($regex($1-,%regex)) kick $chan $nick 1- 12Do NOT try and make people part channels!1 - } --------------- THIS ALL GOES IN THE REMOTE SECTION! BONUS SCRIPTS: Get the channel info: (Usage: /ci Channel - There is no # in the usage!!) alias ci { cs info $chr(35) $+ $1 } A Kick-Ban with a made reason: (Usage: /ckb Nickname - Will automatically ban to #pc-hq no matter what channel used on) alias ckb { mode #pc-hq +b $address($1,2) kick #pc-hq $1 4Multiple Pest Control Channels Are Not Tollerated In PC-HQ msg #hq-staff 12The user4 $1 12has been banned in #pc-hq for multi pest-controlling. } Whois Check Is Starting (Optional): (Usage: /sc) alias sc { amsg 12A whois check is starting, all users who are in multiple pest control channels will be banned. } Whois Check Ended (Optional): (Usage: /dc # - The # is the users banned from that round) alias dc { amsg 12A whois check has just runned through;4 $1 12users found on multiple pest control channels. } MAIN WHOIS ALIASES: WIUP: This increases every time used, type /wiup to begin and then up arrow>enter and it will whois number 2, then 3, etc: alias wiup { inc %wiup 1 whois $nick(#pc-hq, $+ %wiup $+ ) echo You are about to whois number %wiup } After you reach the limit, use: alias rwiup { set %wiup 0 echo WIUP Set to 0 } WIRANDOM: Use /wirandom for a random number 1-50, and /wirandom2 for 51-100: alias wirandom { set %wirandomn $rand(1,50) whois $nick(#pc-hq, $+ %wirandomn $+ ) echo You are about to whois number %wirandomn } alias wisrandom2 { set %wirandom2n $rand(51,100) whois $nick(#pc-hq, $+ %wirandom2n $+ ) echo You are about to whois number %wirandom2n } WIST: Choose a number(/wist #): alias wist { whois $nick(#pc-hq, $+ $1 $+ ) echo You are about to whois number $1 } LARGE SCROLL CHECK WHOIS ALIASES: Please note these could get laggy. Users 1-50 (/wis1-50): alias wis1-50 { whois $nick(#pc-hq,1) whois $nick(#pc-hq,2) whois $nick(#pc-hq,3) whois $nick(#pc-hq,4) whois $nick(#pc-hq,5) whois $nick(#pc-hq,6) whois $nick(#pc-hq,7) whois $nick(#pc-hq,8) whois $nick(#pc-hq,9) whois $nick(#pc-hq,10) whois $nick(#pc-hq,11) whois $nick(#pc-hq,12) whois $nick(#pc-hq,13) whois $nick(#pc-hq,14) whois $nick(#pc-hq,15) whois $nick(#pc-hq,16) whois $nick(#pc-hq,17) whois $nick(#pc-hq,18) whois $nick(#pc-hq,19) whois $nick(#pc-hq,20) whois $nick(#pc-hq,21) whois $nick(#pc-hq,22) whois $nick(#pc-hq,23) whois $nick(#pc-hq,24) whois $nick(#pc-hq,25) whois $nick(#pc-hq,26) whois $nick(#pc-hq,27) whois $nick(#pc-hq,28) whois $nick(#pc-hq,29) whois $nick(#pc-hq,30) whois $nick(#pc-hq,31) whois $nick(#pc-hq,32) whois $nick(#pc-hq,33) whois $nick(#pc-hq,34) whois $nick(#pc-hq,35) whois $nick(#pc-hq,36) whois $nick(#pc-hq,37) whois $nick(#pc-hq,38) whois $nick(#pc-hq,39) whois $nick(#pc-hq,40) whois $nick(#pc-hq,41) whois $nick(#pc-hq,42) whois $nick(#pc-hq,43) whois $nick(#pc-hq,44) whois $nick(#pc-hq,45) whois $nick(#pc-hq,46) whois $nick(#pc-hq,47) whois $nick(#pc-hq,48) whois $nick(#pc-hq,49) whois $nick(#pc-hq,50) } Users 50-100 (/wis50-100): alias wis50-100 { whois $nick(#pc-hq,51) whois $nick(#pc-hq,52) whois $nick(#pc-hq,53) whois $nick(#pc-hq,54) whois $nick(#pc-hq,55) whois $nick(#pc-hq,56) whois $nick(#pc-hq,57) whois $nick(#pc-hq,58) whois $nick(#pc-hq,59) whois $nick(#pc-hq,60) whois $nick(#pc-hq,61) whois $nick(#pc-hq,62) whois $nick(#pc-hq,63) whois $nick(#pc-hq,64) whois $nick(#pc-hq,65) whois $nick(#pc-hq,66) whois $nick(#pc-hq,67) whois $nick(#pc-hq,18) whois $nick(#pc-hq,19) whois $nick(#pc-hq,20) whois $nick(#pc-hq,21) whois $nick(#pc-hq,22) whois $nick(#pc-hq,23) whois $nick(#pc-hq,24) whois $nick(#pc-hq,25) whois $nick(#pc-hq,26) whois $nick(#pc-hq,27) whois $nick(#pc-hq,28) whois $nick(#pc-hq,29) whois $nick(#pc-hq,30) whois $nick(#pc-hq,31) whois $nick(#pc-hq,32) whois $nick(#pc-hq,33) whois $nick(#pc-hq,34) whois $nick(#pc-hq,35) whois $nick(#pc-hq,36) whois $nick(#pc-hq,37) whois $nick(#pc-hq,38) whois $nick(#pc-hq,39) whois $nick(#pc-hq,40) whois $nick(#pc-hq,41) whois $nick(#pc-hq,42) whois $nick(#pc-hq,43) whois $nick(#pc-hq,44) whois $nick(#pc-hq,45) whois $nick(#pc-hq,46) whois $nick(#pc-hq,47) whois $nick(#pc-hq,48) whois $nick(#pc-hq,49) whois $nick(#pc-hq,50) } Users 1-75 (/wis1-75): alias wis1-75 { whois $nick(#pc-hq,1) whois $nick(#pc-hq,2) whois $nick(#pc-hq,3) whois $nick(#pc-hq,4) whois $nick(#pc-hq,5) whois $nick(#pc-hq,6) whois $nick(#pc-hq,7) whois $nick(#pc-hq,8) whois $nick(#pc-hq,9) whois $nick(#pc-hq,10) whois $nick(#pc-hq,11) whois $nick(#pc-hq,12) whois $nick(#pc-hq,13) whois $nick(#pc-hq,14) whois $nick(#pc-hq,15) whois $nick(#pc-hq,16) whois $nick(#pc-hq,17) whois $nick(#pc-hq,18) whois $nick(#pc-hq,19) whois $nick(#pc-hq,20) whois $nick(#pc-hq,21) whois $nick(#pc-hq,22) whois $nick(#pc-hq,23) whois $nick(#pc-hq,24) whois $nick(#pc-hq,25) whois $nick(#pc-hq,26) whois $nick(#pc-hq,27) whois $nick(#pc-hq,28) whois $nick(#pc-hq,29) whois $nick(#pc-hq,30) whois $nick(#pc-hq,31) whois $nick(#pc-hq,32) whois $nick(#pc-hq,33) whois $nick(#pc-hq,34) whois $nick(#pc-hq,35) whois $nick(#pc-hq,36) whois $nick(#pc-hq,37) whois $nick(#pc-hq,38) whois $nick(#pc-hq,39) whois $nick(#pc-hq,40) whois $nick(#pc-hq,41) whois $nick(#pc-hq,42) whois $nick(#pc-hq,43) whois $nick(#pc-hq,44) whois $nick(#pc-hq,45) whois $nick(#pc-hq,46) whois $nick(#pc-hq,47) whois $nick(#pc-hq,48) whois $nick(#pc-hq,49) whois $nick(#pc-hq,50) whois $nick(#pc-hq,51) whois $nick(#pc-hq,52) whois $nick(#pc-hq,53) whois $nick(#pc-hq,54) whois $nick(#pc-hq,55) whois $nick(#pc-hq,56) whois $nick(#pc-hq,57) whois $nick(#pc-hq,58) whois $nick(#pc-hq,59) whois $nick(#pc-hq,60) whois $nick(#pc-hq,61) whois $nick(#pc-hq,62) whois $nick(#pc-hq,63) whois $nick(#pc-hq,64) whois $nick(#pc-hq,65) whois $nick(#pc-hq,66) whois $nick(#pc-hq,67) whois $nick(#pc-hq,68) whois $nick(#pc-hq,69) whois $nick(#pc-hq,70) whois $nick(#pc-hq,71) whois $nick(#pc-hq,72) whois $nick(#pc-hq,73) whois $nick(#pc-hq,74) whois $nick(#pc-hq,75) } --------------------------------------------------- off $*:text:/^[!@]price(s|check)*/Si:#: { if ( !$2 ) { notice $nick 7 Sorry you must specify what to search for - 3 !price } else { /var %number 1 while ($sock(price.socket. $+ %number)) { /inc %number } if (!* iswm $1) { /set %price.displaystyle. [ $+ [ %number ] ] private } /set %price.item. [ $+ [ %number ] ] $2- /set %price.nick. [ $+ [ %number ] ] $nick /set %price.chan. [ $+ [ %number ] ] $chan /sockopen $+(price.socket.,%number) zybez.net 80 } ;Closes Else } ;Ends the !pricecheck section on *:sockopen:price.socket.*:{ sockwrite -nt $sockname GET /priceguide.php?search_terms= $+ $replace(%price.item. [ $+ [ $right($SockName,-13) ] ] ,$chr(32),$chr(43)) $+ &search_area=1&price_low=&price_high=&member=1 HTTP/1.1 sockwrite -nt $sockname Host: zybez.net sockwrite -nt $sockname $crlf $crlf } on *:sockread:price.socket.*:{ var %i $right($sockname,-13) if ($sockerr) { /notice %price.nick. [ $+ [ %i ] ]Sorry but an error occured while searching for %price.item. [ $+ [ %i ] ] | halt } else { var %temptext sockread %temptext ;Once bot gets the Item + Price which is represented my %readnextline == 2, it runs this to display the results for the user then restarts the whole proccess. if (%readnextline == 2) { /inc %price.displayed. [ $+ [ %i ] ] /var %price.displayprice $htmlfree(%temptext) /var %message 7 %price.displayitem. [ $+ [ %i ] ] - 3 %price.displayprice /unset %readnextline ; Limits how many items are displayed before it stops reading. Prevents the bot from flooding. if ( %price.displayed. [ $+ [ %i ] ] < 6 ) { if ( %price.displaystyle. [ $+ [ %i ] ] == private ) { /notice %price.nick. [ $+ [ %i ] ] %message } else { /msg %price.chan. 3 [ $+ [ %i ] ] %message } } ; Closes if statement - if ( %price.displayed. [ $+ [ %i ] ] < 6 ) else { /notice %price.nick. [ $+ [ %i ] ] 7 Sorry but your search for " 3 $+ %price.item. [ $+ [ %i ] ] $+ 7 " was not specific enough. Please narrow your searh down, ie: Rune --> Rune Platelegs | /sockclose $+(price.socket.,%i) | /unset %price.*. [ $+ [ %i ] ] } } ; Closes if statement - if (%readnextline == 2) if (%readnextline == 1) { /set %price.displayitem. [ $+ [ %i ] ] $htmlfree(%temptext) | /set %readnextline 2 } if ( * isin %temptext) { /set %readnextline 1 } if (*Your search did not * iswm %temptext) { /notice %price.nick. [ $+ [ %i ] ] 7 Sorry I did not find " 3 $+ %price.item. [ $+ [ %i ] ] $+ 7 " in the Zybez database. Please make sure you spelled everything correctly and the item you are searching for exists in Runescape. } } ; Closes else } ;Ends the sockread section on *:sockclose:price.socket.*:{ /unset %price.*. [ $+ [ $right($SockName,-13) ] ] } alias -l htmlfree { ; Cleans all html from a file var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x, ) return %x } ;Ends the html cleaner alias alias c1 { return $+( $1-,) } alias c2 { return $+( $1-,) } off *: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) == setname) && ($2) { writeini DefRSN.ini RSNs $mask($fulladdress,3) $replace($2-,$chr(32),-) .notice $nick 7You're default RSN has been set to 3 $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, ).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),