Something
public text v1 · immutableON *:TEXT:!players:*:{
/set %RSP.nick $nick
/sockopen RSPlayers runescape.com 80
}
on *:sockopen:RSPlayers:{
sockwrite -n $sockname GET /title.ws HTTP/1.1
sockwrite -n $sockname Host: runescape.com
sockwrite -n $sockname $crlf $crlf
}
on *:sockread:RSPlayers:{
if ($sockerr) {
echo -a Error.
halt
}
else {
var %temptext
sockread %temptext
if ( There are currently * people playing! iswm %temptext ) {
.notice %RSP.nick
/sockclose $sockname
}
}
}