Nope, not working. tried it like that but it most be more like this.
on *:text:*->*:*: { if ($nick == NickName) { set %log-chan $chan %rand $rand(1,4) | write testing1.txt .timermsg %rand /msg %log-chan $9 | unset %log-chan %rand} }
But a working script. I tried to mix it up but didnt come up with a succes.
Other suggest?