RuneScape Adventurer's Log Viewer
Platform: mIRC
Published May 23, 2011
Updated May 23, 2011
Alog Alias.
Uses Runescript parsers (thanks guys!)
type /alog <rsn> to use!
that's about it
:)
leave me a memo on SwiftIRC if ya want to tell me about it, or join #savage_CL on said network :P
;Alog Script
alias alog {
if ($1 != $null) {
set %name $replace($1-,$chr(32),$chr(95))
echo -a Please Wait...
sockopen alog rscript.org 80
}
else { $input(You must enter an RSN!,wo,Adventurer's Log) }
}
on *:SOCKOPEN:alog:{
sockwrite -n $sockname GET $+(/lookup.php?type=alog&user=,%name) HTTP/1.0
sockwrite -n $sockname Host: www.rscript.org $+ $crlf $+ $crlf
}
on *:SOCKREAD:alog:{
if ($sockerr) return
sockread %t
while ($sockbr) {
tokenize 32 %t
if ($left($1,9) == ACTIVITY:) { set %temp $2- | goto end }
elseif ($left($1,6) == ERROR:) { echo 9 -aei3 $2- | HALT }
else { sockread %t }
}
:end
sockclose alog
parser %temp
}
alias -l parser {
echo 13 -a Adventurer's Log data for: %name
var %data $1-
tokenize 59 %data
var %total $0
var %temp 1
while (%temp <= %total) {
tokenize 124 [ $ $+ [ %temp ] ]
var %date $+($left($2,3),$chr(32),$right($2,-3))
echo -a 4 %date $+ : 9 $1
tokenize 59 %data
inc %temp
}
unset %temp
unset %t
unset %name
echo -a DONE!
}