its suposed to set the amount of words form $4 in dialog list 6 and the rest in dialog list 9 but my mirc freezes >.<
on *:TEXT:ondwtr*:?:{
did -a onderwereld 2 $2
did -a onderwereld 3 $3
storeondw $4-
}
alias storeondw {
if ($0 > 1) && ($1 isnum 0-10) && ($0 > $1) {
noop $regsubex($gettok($1-,$2-,32) $calc($1 + 1) ,/(?<=^| )(\S+)/g, $addlnt(6, \t))
$iif($0 > $calc($1 + 1), noop $regsubex($ [ $+ [ $calc($1 + 2) $+ - ] ],/(?<=^| )(\S+)/g, $addlnt(9, \t)))
}
$gettok($1-,$2,32)
}
alias addlnt {
did -a onderwereld $1 $replace($2-,_,$chr(32))
}