$crlf $crlf
write BTWR.html $crlf $&
| Rank | $crlf $&
Player | $crlf $&
Records |
rec2html.stat
}
alias rec2html.stat {
var %i = 1, %l = $line(@stat,0), %c
while (%i <= %l) {
%c = $line(@stat,%i)
write BTWR.html | $+ %i $+ . | $crlf $&
) $+ $gettok(%c,1,32) $+ | $crlf $&
$+ $&
$iif($left($gettok(%c,3,32),1) == 0,$right($gettok(%c,3,32),1),$gettok(%c,3,32)) $+ |
inc %i
}
rec2html.rec
}
alias rec2html.rec {
var %i = 1, %l = $hget(recstats,0).item, %ii, %ll, %c, %count, %d
write BTWR.html | $crlf $&
$crlf
filter -ct 1 32 @stat @stat
while (%i <= %l) {
%d = $line(@stat,%i)
write BTWR.html $crlf $&
| ) $&
$+ $gettok(%d,1,32) $+($chr(40),$hget(recstats,$gettok(%d,1,32)),$chr(41)) $&
$+ | [Back $&
$+ /Top] |
|
%count = 0
if (%i == 1) {
%ii = 1
%ll = $hget(recstats,$gettok(%d,1,32))
}
else {
%ll = $calc(%ii + $hget(recstats,$gettok(%d,1,32)) - 1)
}
while (%ii <= %ll) {
%c = $line(@rec,%ii)
inc %count
write BTWR.html | $+ %count $+ . | $crlf $&
$+ $gettok(%c,1,32) $+ | $crlf $&
$+ $gettok(%c,5,32) $+ |
inc %ii
}
inc %i
}
write BTWR.html | $crlf
filter -ct 1 32 @rec @rec
write BTWR.html $crlf $&
| | $crlf $&
Map | $crlf $&
Record Holder | $crlf $&
Time |
%i = 1
%l = $line(@rec,0)
while (%i <= %l) {
%c = $line(@rec,%i)
write BTWR.html | $+ $+(%i,.) $+ | $crlf $&
) $+ $gettok(%c,1,32) $+ | $crlf $&
$+ $gettok(%c,3,32) $+ | $&
$+ $gettok(%c,5,32) $+ |
inc %i
}
%c = $calc($ticks - %recticks)
if ($len(%c) > 3) %c = $bytes(%c)
else %c = 0. $+ %c
write BTWR.html
|