To solve the timer issue, use a $+ to join items together:
timer $+ $nickAbout your idle script, well, the latest mIRC came with a new $nick().idle property, which returns channel idle time in seconds. Click
here for an example scripts which you can use.