Charmander

Bocks

Jun 19th, 2011
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.81 KB | None | 0 0
  1. alias bocks {
  2.   sockopen Smog www.smogon.com 80
  3.   set %move $$1-
  4. }
  5. on *:sockopen:Smog: {
  6.   sockwrite -nt Smog GET /forums/showpost.php?p=3290505&postcount=4 HTTP/1.0
  7.   sockwrite -nt Smog Host: www.smogon.com
  8.   sockwrite -nt Smog $crlf
  9. }
  10. on *:sockread:Smog: {
  11.   var %text
  12.   sockread %text
  13.   if (%found == 3) {
  14.     echo -a 09[ $+ $time $+ ] <MoveBot> %text
  15.     unset %found
  16.     unset %move
  17.     sockclose Smog
  18.   }
  19.   if (%found == 2) {
  20.     inc %found 1
  21.     echo -a 09[ $+ $time $+ ] <MoveBot> $nohtml(%text)
  22.   }
  23.   if (%found == 1) inc %found 1
  24.   if ($+(<b>,%move,$chr(58),</b>,<br />) isin %text) {
  25.     inc %found 1
  26.     echo -a 09[ $+ $time $+ ] <MoveBot> $nohtml(%text)
  27.   }
  28. }
  29. alias -l nohtml {
  30.   var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x,&nbsp;)
  31.   return %x
  32. }
Advertisement
Add Comment
Please, Sign In to add comment