All pastes #383309 Raw Edit

Untitled

public text v1 · immutable
·published 2007-03-06 07:30 UTC
rendered paste body
on *:TEXT:!hiscore:#:{
  write -c pointsunsorted.txt
  hsave -n triviapoints pointsunsorted.txt
  filter -ffctuen 1 32 pointsunsorted.txt pointssorted.txt
  var %this = 0, %total = 5
  while (%this < %total) {
    inc %this
    var %output = %output $hget(triviapoints,$gettok($read(pointssorted.txt,%this),1,32)).item $+ : $gettok($read(pointssorted.txt,%this),2,32)
  }
  msg $chan %output
  remove pointsunsorted.txt
  remove pointssorted.txt
}