All pastes #588835 Raw Edit

Anonymous

public text v1 · immutable
#588835 ·published 2007-06-25 18:41 UTC
rendered paste body
THIS IS THE PLAYERS SCRIPT:



on $*:text:/^[!@.]players/Si:#:{ 
  sockclose players 
  set %output.players $iif($left($1,1) == @, msg $chan, notice $nick) 
  sockopen players www.o-ss.net 80 
} 
ON *:SOCKOPEN:players:{ 
  sockwrite -nt $sockname GET /parsers/players.php HTTP/1.1 
  sockwrite -nt $sockname Host: www.o-ss.net
  sockwrite -nt $sockname $crlf 
} 
ON *:SOCKREAD:players:{ 
  if ($sockerr) { 
    echo -a Error in total players on RuneScape lookup 
    sockclose $sockname 
    halt 
  } 
  else { 
    var %read
    sockread %read 
    if (*end* iswm %read) { %output.players 12RuneScape Players Online:4 $bytes($remove(%read,end),bd)
    sockclose $sockname }  
  } 
}
on *:SOCKCLOSE:players:{
  unset %output.players
}




AND THIS IS TIME:


on *:text:!time:*:{
  /notice $nick 14The time in Norway is: 4 $time 14and date is:4 $day $date
    } 
}
on *:text:@time:*:{
  /msg $chan 4 $nick 14The time in Norway is: 4 $time 14and date is:4 $day $date
    } 
}