Charmander

Socks by Charmander

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