==========================!commands PM Code=============================================== on *:text:!commands:#: { msg $nick 9,1 Useful Commands... msg $nick 4 ~Voice 7 For a Voice in the channel you type it in. msg $nick 4 !Part MakBot 7 For me to part the channel you type it in. msg $nick 11,1 Fun Commands... msg $nick 4 !Coffee 7 For a nice cup of Coffee :) msg $nick 4 !Vodka 7 For a shot of Vodka :P msg $nick 8,1 RuneScape Commands... msg $nick 4 !/@Price RuneScape Item 7For the price of a RuneScape Item. Private/Public. msg $nick 4 !/@Stat RuneScape Name 7For the Stat and XP of a stat for a RuneScape Name. Private/Public. } On *:invite:#: { /msg $nick 9,1 Thank You for inviting me into your channel, $nick . Please do not abuse me or you and your channel will be blacklisted. Once again, Thank You, and enjoy my services :) msg $nick 4,1 For commands, Type: 7,1!commands.4,1 For me to part your channel, Type 7,1!part Makbot. } On *:join:#: { /msg $chan 4,1 ~!~ Welcome $nick to $chan !! We hope you enjoy your stay :) ~!~ } ====================================USEFUL COMMANDS========================================= on *:text:~Voice:#: { /mode $chan +v $nick } on *:text:!Part MakBot:#: { /part $chan 4Requested by $nick . } ================================FUN COMMANDS================================================= on *:text:!Coffee:#: { /msg $chan 7 Here, $nick, Have a nice big cup of coffee :) } on *:text:!Vodka:#: { /msg $chan 7 *** Hands $nick a shot of nummy Vodka xD *** } =========================================PRICE/STATS SCRIPTS=============================== on $*:text:/^[@!]price */Si:#: { set %target $iif($left($1,1) == @,msg $chan,notice $nick) if ($chr(124) !isin $1-) { alchscript $chan $2- } } alias alchscript { set %alchscript.item $2- set %alchscript.chan $1 sockopen alchscript zybez.net 80 } on *:sockopen:alchscript: { if (!$sockerr) { sockwrite -n alchscript GET $+(/priceguide.php?search_terms,$chr(61),$replace(%alchscript.item,$chr(32),+),&search_area=1&price_low=&price_high=&member=1) HTTP/1.1 sockwrite -n alchscript Host: $+(zybez.net,$crlf,$crlf) } } on *:sockread:alchscript: { if ($sockerr) { echo -s Error. halt } else { var %tmp sockread %tmp if ( * Search Results: Start * iswm %tmp ) { set %list on } if ( * Search Results: End * iswm %tmp ) { unset %list } if ($htmlfree(%tmp) != $null) && (%list == on) { write runetmp.txt $htmlfree(%tmp) } } if ( iswm %tmp) { sockclose alchscript var %x = 1 while (%x <= $lines(runetmp.txt)) { %target %alchscript.nick Item: $read(runetmp.txt,%x) Price: $read(runetmp.txt,$calc(%x + 1)) Category: $read(runetmp.txt,$calc(%x +2)) inc %x 3 } .remove runetmp.txt unset %alchscript.* } } alias -l htmlfree { var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x,&,$chr(9)) return %x } 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) == setname) && ($2) { writeini DefRSN.ini RSNs $mask($fulladdress,3) $replace($2-,$chr(32),-) .notice $nick You're default RSN for the host $mask($fulladdress,3) 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),