Advertisement
OrFeAsGr

PokeGen Online Players for ST3LiST v2

Dec 28th, 2016
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.31 KB | None | 0 0
  1. ON *:TEXT:!pgonline:#: {
  2.   if (!$sock(pgonline)) {
  3.     sockopen pgonline pokegen.net 80
  4.     set %pgonlinechan $chan
  5.   }
  6.   elseif ($sock(pgonline)) {
  7.     .notice $nick Please wait a sec...
  8.   }
  9. }
  10.  
  11.  
  12. ON *:SOCKOPEN:pgonline: {
  13.   sockwrite -nt $sockname GET /online.php HTTP/1.1
  14.   sockwrite -nt $sockname Host: pokegen.net
  15.   sockwrite $sockname $crlf
  16. }
  17.  
  18. ON *:SOCKREAD:pgonline: {
  19.   var %pgonline | sockread %pgonline
  20.   if (*otal users online:* iswm %pgonline) { set %pgontotal $gettok($gettok(%pgonline,4,32),1,60) }
  21.   if (*td class="pad"><a href="profile.php?id=* iswm %pgonline) {
  22.     set %pgonl $addtok(%pgonl,$+($chr(03),$iif(*pokegen bot* iswm %pgonline, $+(11,$chr(44),14), $+(00,$chr(44),14)),$gettok($gettok(%pgonline,$iif(*pokegen bot* iswm %pgonline, 4, 3),62),1,60),$chr(44),$chr(15)),32) | inc %pgonleft 1
  23.   }
  24.   if (*ago</td* iswm %pgonline) {
  25.     set %pgonl %pgonl $+ [pgonlseen] $gettok($gettok(%pgonline,2,62),1,60) $+ $chr(32))
  26.     if (%pgonleft == %pgontotal) {
  27.       if (!%pokegenadv) { set -u7200 %pokegenadv 1 | .timer 1 10 msg %pgonlinechan PokeGen Online Users Script By OrFeAsGr :.:: http://humanity.ucoz.com :.:: Need mIRC Scripts?? ;) }
  28.       sockclose $sockname
  29.       msg %pgonlinechan $replace(%pgonl,[pgonlseen],$+($chr(32),$chr(03),03,User Last Seen))
  30.       unset %pgon*
  31.     }
  32.   }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement