You cannot $read multiple lines with the $read command without using a loop.
on *:text:!turordning:#: {
if (%RPGLogging == On && $2 isnum) {
set -u60 %RPGLine $2
set -u60 %RPGChan $chan
set -u5 %RPGcnt 1
play -af2 PlayRPGLog RPGLogg.txt 1000
}
}
alias PlayRPGLog {
inc -u5 %RPGcnt
if (%RPGcnt >= %RPGLine) { play stop }
msg %RPGChan !turordningen: $1-
}
That should do it for you with the least amount of I/O work. I also made is so that the variables would unset themselves so they aren't sitting there all the time. Because of using the alias, /var wouldn't work, so using -u was the best option.